aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8904.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2019-11-08 21:31:52 +0100
committerMark Brown <broonie@kernel.org>2019-11-11 19:42:56 +0000
commit13409d27cb39fb1dfcb28418a9bc3d26907e1dbc (patch)
treed6413acb85d3dd3d2487b17eb2ec65debd2f7bd4 /sound/soc/codecs/wm8904.h
parentASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint (diff)
downloadlinux-dev-13409d27cb39fb1dfcb28418a9bc3d26907e1dbc.tar.xz
linux-dev-13409d27cb39fb1dfcb28418a9bc3d26907e1dbc.zip
ASoC: wm8904: configure sysclk/FLL automatically
This adds a new mode WM8904_CLK_AUTO which automatically enables the FLL if a frequency different than the MCLK is set. These additions make the codec work with the simple-card driver in general and especially in systems where the MCLK doesn't match the required clock. Signed-off-by: Michael Walle <michael@walle.cc> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20191108203152.19098-1-michael@walle.cc Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8904.h')
-rw-r--r--sound/soc/codecs/wm8904.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8904.h b/sound/soc/codecs/wm8904.h
index c1bca52f9927..de6340446b1f 100644
--- a/sound/soc/codecs/wm8904.h
+++ b/sound/soc/codecs/wm8904.h
@@ -10,6 +10,7 @@
#ifndef _WM8904_H
#define _WM8904_H
+#define WM8904_CLK_AUTO 0
#define WM8904_CLK_MCLK 1
#define WM8904_CLK_FLL 2