]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl-asoc-card: Get "extal" clock rate by clk_get_rate
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 10 Aug 2020 08:11:43 +0000 (16:11 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 18 Aug 2020 13:52:46 +0000 (14:52 +0100)
commit2e43aadd06acdea73d02304ec2ce1564557c7852
treec6fcafec6e57aedec63d1cdd6bf458a3a0e9966d
parent99e5b3e1997dce3228b9c77325fc7fb80ec46321
ASoC: fsl-asoc-card: Get "extal" clock rate by clk_get_rate

On some platform(.e.g. i.MX8QM MEK), the "extal" clock is different
with the mclk of codec, then the clock rate is also different.
So it is better to get clock rate of "extal" rate by clk_get_rate,
don't reuse the clock rate of mclk.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/1597047103-6863-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c