]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l42: Only start PLL if it is needed
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Sat, 6 Mar 2021 18:55:52 +0000 (18:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:14:30 +0000 (13:14 +0000)
commita78205975249ed9d9f0d4b7d81ebbf98755fe8b1
treed687b60e9af942f3bb0282ca15a74a13a76c8bab
parent8f9f583e90ec4713ef01772735c79074d883f955
ASoC: cs42l42: Only start PLL if it is needed

The PLL is only needed for sclk < 11289600 Hz and cs42l42_pll_config()
will not configure it for higher rates. So it must only be enabled
when it is needed.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306185553.62053-15-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c