ASoC: SOF: ipc4-topology: Improve readability of sof_ipc4_prepare_dai_copier()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 30 May 2024 11:19:17 +0000 (14:19 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 30 May 2024 11:33:31 +0000 (12:33 +0100)
commit2fcad03eaba1b86e6b829f73a9e75e681b7f3106
treed7f2a1a9f46ddafdcfffaf76fd171005c0945521
parent3b64fd2f83f203f5a34faed3dadf6464313f827d
ASoC: SOF: ipc4-topology: Improve readability of sof_ipc4_prepare_dai_copier()

Remove the duplicated code paths to check for single bit depth and to
update the params with storing the parameters needed by the function and
have a single code section.

No functional change but the code is easier to follow.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@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: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://msgid.link/r/20240530111918.21974-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c