Skip to content

Commit dd75980

Browse files
dbalutabroonie
authored andcommitted
ASoC: SOF: Add .prepare/.complete callbacks
Use SOF defined callbacks (snd_sof_prepare/snd_sof_complete) in order to update internal SOF system suspend target. Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Paul Olaru <paul.olaru@nxp.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20200924151518.15841-3-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4fefc39 commit dd75980

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎sound/soc/sof/sof-of-dev.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ static struct sof_dev_desc sof_of_imx8mp_desc = {
4646
#endif
4747

4848
static const struct dev_pm_ops sof_of_pm = {
49+
.prepare = snd_sof_prepare,
50+
.complete = snd_sof_complete,
4951
SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume)
5052
SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
5153
NULL)

0 commit comments

Comments
 (0)