summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-04-21 17:29:01 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-04-21 17:29:01 (GMT)
commit7add84aa779b4f7ca39484a82a11e01d7acd4dca (patch)
treefb3d0bc1b38a8612719f983ff545aa03b54725d1 /sound/soc
parentee839a2127a4f74505c5597966919ca57413f4de (diff)
downloadlinux-7add84aa779b4f7ca39484a82a11e01d7acd4dca.tar.xz
ASoC: Allow unspecified source when stopping WM8994 FLLs
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8994.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index eefa242..cdfbfb6 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2853,6 +2853,11 @@ static int wm8994_set_fll(struct snd_soc_dai *dai, int id, int src,
}
switch (src) {
+ case 0:
+ /* Allow no source specification when stopping */
+ if (freq_out)
+ return -EINVAL;
+ break;
case WM8994_FLL_SRC_MCLK1:
case WM8994_FLL_SRC_MCLK2:
case WM8994_FLL_SRC_LRCLK: