]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
ASoC: SOF: ops: modify the signature of stall op
authorFred Oh <fred.oh@linux.intel.com>
Fri, 27 Nov 2020 16:40:21 +0000 (18:40 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 27 Nov 2020 17:23:06 +0000 (17:23 +0000)
Modify the signature of stall op to specify core_mask to stall cores.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20201127164022.2498406-5-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ops.h
sound/soc/sof/sof-priv.h

index 77a6ac157d3774dc9179fea802fd7c392418be77..95e748b36903a0084e92769681d50204342449e9 100644 (file)
@@ -48,10 +48,10 @@ static inline int snd_sof_dsp_run(struct snd_sof_dev *sdev)
        return sof_ops(sdev)->run(sdev);
 }
 
-static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev)
+static inline int snd_sof_dsp_stall(struct snd_sof_dev *sdev, unsigned int core_mask)
 {
        if (sof_ops(sdev)->stall)
-               return sof_ops(sdev)->stall(sdev);
+               return sof_ops(sdev)->stall(sdev, core_mask);
 
        return 0;
 }
index 32d6ceb41fdd5e06e8b53f978eefe14da7766195..9ba3e3ceed0120635d8ad0f4b14c01eab3ca2536 100644 (file)
@@ -101,7 +101,7 @@ struct snd_sof_dsp_ops {
 
        /* DSP core boot / reset */
        int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
-       int (*stall)(struct snd_sof_dev *sof_dev); /* optional */
+       int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
        int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
        int (*core_power_up)(struct snd_sof_dev *sof_dev,
                             unsigned int core_mask); /* optional */