Skip to content
Unverified Commit 294833fc authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Mark Brown
Browse files

ASoC: wm8940: Rewrite code to set proper clocks



This patch enables support for internal wm8940's PLL and proper
divider to set proper value for 256x fs clock.

This approach is more flexible and replaces hardcoded clock
values and makes the codec work with the simple-card driver.
Card drivers calling set_pll() and set_clkdiv() directly are
unaffected.

For the reference - code in this commit is based on:
51b2bb3f
("ASoC: wm8974: configure pll and mclk divider automatically")

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221216094624.3849278-2-lukma@denx.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5dc5e76b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment