]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-card: Fix mclk calculation issue for akcodec
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 4 Jan 2022 10:40:34 +0000 (18:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jan 2022 13:55:44 +0000 (13:55 +0000)
commited9a1e408e322f17ded939137c22654027e44550
treec2df94c3367f105d89f4c669034023686c56a263
parentfa37c67bb0dc3a92e22c3dc6d71992317387bb9d
ASoC: imx-card: Fix mclk calculation issue for akcodec

Transfer the refined slots and slot_width to akcodec_get_mclk_rate()
for mclk calculation, otherwise the mclk frequency does not match
with the slots and slot_width for S16_LE format, because the default
slot_width is 32.

Fixes: 32569b1134f1 ("ASoC: imx-card: Add imx-card machine driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1641292835-19085-3-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-card.c