ASoC: fsl_asrc_dma: get codec or cpu dai from backend
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 19 Mar 2025 03:35:04 +0000 (11:35 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:18:18 +0000 (23:18 +0100)
commitef5c23ae9ab380fa756f257411024a9b4518d1b9
treeb9dd1e8c524a238dabe8da5b7e57d22b1c300a2b
parenta31a4934b31faea76e735bab17e63d02fcd8e029
ASoC: fsl_asrc_dma: get codec or cpu dai from backend

With audio graph card, original cpu dai is changed to codec device in
backend, so if cpu dai is dummy device in backend, get the codec dai
device, which is the real hardware device connected.

The specific case is ASRC->SAI->AMIX->CODEC.

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