ASoC: SOF: ipc4-topology: Fix the output reference params for SRC
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 21 Aug 2023 11:36:27 +0000 (14:36 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Aug 2023 12:10:06 +0000 (13:10 +0100)
commit56ecc164040b3685f6cb36b4d513d73d0f88140b
tree5b3c0a36254c3bb8324bcbb252876f95d85035ea
parentef24388225f87f2604522fe86fafacc271ec4a29
ASoC: SOF: ipc4-topology: Fix the output reference params for SRC

For playback, the SRC sink rate must be configured based on the requested
output format which is restricted to only handle DAI's that support a
single audio format for now. For capture, the SRC module should convert
the rate to match the rate requested by the PCM hw_params.

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-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c