]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8974: configure pll and mclk divider automatically
authorMans Rullgard <mans@mansr.com>
Mon, 25 Jan 2016 12:36:43 +0000 (12:36 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 Jan 2016 15:50:05 +0000 (15:50 +0000)
commitb28172b0de69a4e0002cb04ac371bc1d9867c1e1
tree109b339a097cc34446f01b63119fbce9c5906450
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
ASoC: wm8974: configure pll and mclk divider automatically

This adds a set_sysclk() DAI op so the card driver can set the
input clock frequency.  If this is done, the pll and mclk divider
are configured to produce the required 256x fs clock when the
sample rate is set by hw_params().

These additions make the codec work with the simple-card driver.
Card drivers calling set_pll() and set_clkdiv() directly are
unaffected.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8974.c