ASoC: Intel: avs: Split pcm pages freeing operation from hw_free()
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 27 Oct 2022 12:46:54 +0000 (14:46 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2022 12:04:31 +0000 (13:04 +0100)
commit0abfc84ba22aca05a5268128f719386648351020
treea3ffa46de04e09d074bc9195cd821e59f694c51b
parentce992ff38e1ed495be202c22d065b42c942e0475
ASoC: Intel: avs: Split pcm pages freeing operation from hw_free()

Prepare for introduction of PCM power management support. As freeing
pages during the suspend operation is not desired, separate
snd_pcm_lib_free_pages() from existing avs_dai_fe_hw_free() so that
majority of the code found within it can be reused for standard and PM
flows both.

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