ASoC: compress: Add pm_runtime support
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 17 Dec 2019 09:58:50 +0000 (10:58 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 17 Dec 2019 12:35:02 +0000 (12:35 +0000)
commit4137f4b65df7608e52f307f4aa9792b984bad7de
treea43889be4c36ad0e692973105c7383d84252f879
parentae91a189d2459644e800ceea615a9c1937ee5ae2
ASoC: compress: Add pm_runtime support

For some devices, components need to be powered-up before stream startup
sequence commences. Update soc_compr_open to provide such functionality.
Based on soc_pcm_open. Adjust soc_compr_free accordingly to power down
components once compress stream is closed.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20191217095851.19629-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c