ASoC: SOF: ipc4-topology: update pipeline_params in process prepare
authorLibin Yang <libin.yang@intel.com>
Thu, 16 Mar 2023 15:11:37 +0000 (17:11 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Mar 2023 13:05:59 +0000 (13:05 +0000)
commit811a742f2d4d1b0aee686bc2f4282b51534898a2
tree65f40f7131d176d472bb038b679bb6947499252e
parent648fea12847695d60ddeebea86597114885ee76e
ASoC: SOF: ipc4-topology: update pipeline_params in process prepare

Some modules may modify the audio format during processing. So, update the
pipeline params based on pin 0's output format during process prepare.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Co-developed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230316151137.7598-7-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c