ASoC: mediatek: mt8188: DPCM used FE and BE merged parameters
authorTrevor Wu <trevor.wu@mediatek.com>
Thu, 6 Jul 2023 06:41:23 +0000 (14:41 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jul 2023 16:40:19 +0000 (17:40 +0100)
commit30019d220cf9ec4df4e5f5d9082baf5519516018
treedca0b0a39702b18217052a4647b12dd20e03847a
parent4edc07fc7fe1a9eec1a4ebc518d2dec222382f43
ASoC: mediatek: mt8188: DPCM used FE and BE merged parameters

To ensure that DPCM takes into account the backend hardware limitations
when user space queries the hw_params of a device, we need to add
dpcm_merged_format, dpcm_merged_chan, and dpcm_merged_rate to the FE
dai_links.

This patch includes only stereo FE dai_links, since multi-channel FEs
may be reserved for specific purposes. Therefore, it may not be
appropriate to consider BE conditions.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20230706064123.29790-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8188/mt8188-mt6359.c