]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl-asoc-card: enable dpcm_merged_chan flag for ASRC frontend
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 29 Apr 2026 10:00:23 +0000 (18:00 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 30 Apr 2026 12:07:55 +0000 (21:07 +0900)
commit3b9c088aeabf6f1d0e92baa4359fc166fbb0050e
tree9457e267bccb83ae055a87d09bc72c7d4926ffdc
parent254f49634ee16a731174d2ae34bc50bd5f45e731
ASoC: fsl-asoc-card: enable dpcm_merged_chan flag for ASRC frontend

When using ASRC in DPCM mode, the backend DAI (codec) may have channel
constraints that differ from the frontend. For example, the ASRC can
support 1-8 channels, but the codec might only support stereo (2 channels).

Without dpcm_merged_chan, userspace can open the frontend with unsupported
channel counts, leading to errors when the backend is configured.

Enable dpcm_merged_chan to merge backend channel constraints to the
frontend, ensuring userspace only sees valid channel configurations.

This fixes issues where applications attempt to use channel counts
that the backend codec doesn't support.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260429100028.2739711-2-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c