OSDN Git Service

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)
commit51b2bb3f2568e6d9d81a001d38b8d70c2ba4af99
tree109b339a097cc34446f01b63119fbce9c5906450
parent92e963f50fc74041b5e9e744c330dca48e04f08d
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