ASoC: SOF: ipc4-topology: Fix pipeline params at the output of copier
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 21 Aug 2023 11:36:28 +0000 (14:36 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2023 12:10:07 +0000 (13:10 +0100)
commit769e8f6cd7182c95d4bd37491e13300ff067c7a7
treec5ac62c49d5a8a888ea9f1c689446e92420d3393
parent56ecc164040b3685f6cb36b4d513d73d0f88140b
ASoC: SOF: ipc4-topology: Fix pipeline params at the output of copier

When we walk the list of connected widgets from the source to the sink
to prepare all widgets, the pipeline_params must be modified to reflect
the output audio format at each widget. But, the copier only modifies
the sample format in the pipeline_params. So, fix it to also modify the
rate and channels.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230821113629.5017-4-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c