]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l42: Set correct SRC MCLK
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 15 Oct 2021 13:36:16 +0000 (14:36 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 15 Oct 2021 15:14:20 +0000 (16:14 +0100)
commitfcf5ea45927c490d6cdcfffcac9667be6faa9c0a
tree356e66d37442d1a91e56a798f8646df28da768d4
parent520fbbedbb32b456c955409e7364b16a516debb0
ASoC: cs42l42: Set correct SRC MCLK

According to the datasheet the SRC MCLK must be as near as possible to
(125 * sample rate). This means it should be ~6MHz for rates up to 48k
and ~12MHz for rates above that. As per datasheet table 4-21.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211015133619.4698-14-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h