Unverified Commit a70eb708 authored by Fred Oh's avatar Fred Oh Committed by Mark Brown
Browse files

ASoC: SOF: ops: modify the signature of stall op

parent e3a85dbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -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 */