]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-card: Fix DSD/PDM mclk frequency
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 6 Jul 2022 09:42:55 +0000 (17:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:05 +0000 (14:24 +0200)
commitfb677617f43eb54836a7e3ed148c891d705e9527
treeca6dfd21e5d15ae10683b4d5c71cbec99f05cd4e
parentaf74cc087dbe06c8b0af0c27ec99b1c3c0cd151e
ASoC: imx-card: Fix DSD/PDM mclk frequency

[ Upstream commit 95c3c4178c711ce30890417bb91a6136a92f561a ]

The DSD/PDM rate not only DSD64/128/256/512, which are the
multiple rate of 44.1kHz,  but also support the multiple
rate of 8kHz, so can't force all mclk frequency to be
22579200Hz, need to assign the frequency according to
rate.

Fixes: 53eb042a8665 ("ASoC: imx-card: Add imx-card machine driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1657100575-8261-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/imx-card.c