Skip to content

Commit 4fefc39

Browse files
dbalutabroonie
authored andcommitted
ASoC: SOF: Activate runtime PM with SOF OF device
SOF boots the DSP at probe and keeps it up all the time. With this change, after booting if no one is using the DSP the SOF core will turn off the DSP to save power. 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-2-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bbd59df commit 4fefc39

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ static void sof_of_probe_complete(struct device *dev)
5656
/* allow runtime_pm */
5757
pm_runtime_set_autosuspend_delay(dev, SND_SOF_SUSPEND_DELAY_MS);
5858
pm_runtime_use_autosuspend(dev);
59+
pm_runtime_set_active(dev);
5960
pm_runtime_enable(dev);
61+
62+
pm_runtime_mark_last_busy(dev);
63+
pm_runtime_put_autosuspend(dev);
6064
}
6165

6266
static int sof_of_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)