ASoC: SOF: add runtime idle callback
Add ability to implement a SOF device level runtime idle callback. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20190702132428.13129-3-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -134,6 +134,14 @@ static inline int snd_sof_dsp_runtime_suspend(struct snd_sof_dev *sdev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int snd_sof_dsp_runtime_idle(struct snd_sof_dev *sdev)
|
||||
{
|
||||
if (sof_ops(sdev)->runtime_idle)
|
||||
return sof_ops(sdev)->runtime_idle(sdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int snd_sof_dsp_hw_params_upon_resume(struct snd_sof_dev *sdev)
|
||||
{
|
||||
if (sof_ops(sdev)->set_hw_params_upon_resume)
|
||||
|
Reference in New Issue
Block a user