]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: fsl_sai: add xlate_tdm_slot_mask() callback
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 28 Mar 2025 08:57:42 +0000 (16:57 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:23:27 +0000 (23:23 +0100)
commit4fe9d03b48cce3edb679ce1f404f19d242537a66
treee9fa24073c3f0d33cd7cef4986a316591ada754d
parent78b3bcfd5697f486946f559f56dbf78c30e22f27
ASoC: fsl_sai: add xlate_tdm_slot_mask() callback

With DPCM case, for example ASRC->SAI->AMIX, the SAI can be codec dai
device in backend, but __soc_pcm_hw_params() will get the tdm_mask
for channel constraint, tdm_mask is set by snd_soc_dai_set_tdm_slot()
from slot number, but SAI supports flexible channel number with fixed slot
number, so add an empty xlate_tdm_slot_mask() callback to avoid the
channel constraint in __soc_pcm_hw_params().

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