diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-04-21 13:29:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-04-21 13:29:01 -0400 |
commit | 7add84aa779b4f7ca39484a82a11e01d7acd4dca (patch) | |
tree | fb3d0bc1b38a8612719f983ff545aa03b54725d1 /sound/soc/codecs/wm8994.c | |
parent | ee839a2127a4f74505c5597966919ca57413f4de (diff) |
ASoC: Allow unspecified source when stopping WM8994 FLLs
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index eefa2427b102..cdfbfb633f30 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, | |||
2853 | } | 2853 | } |
2854 | 2854 | ||
2855 | switch (src) { | 2855 | switch (src) { |
2856 | case 0: | ||
2857 | /* Allow no source specification when stopping */ | ||
2858 | if (freq_out) | ||
2859 | return -EINVAL; | ||
2860 | break; | ||
2856 | case WM8994_FLL_SRC_MCLK1: | 2861 | case WM8994_FLL_SRC_MCLK1: |
2857 | case WM8994_FLL_SRC_MCLK2: | 2862 | case WM8994_FLL_SRC_MCLK2: |
2858 | case WM8994_FLL_SRC_LRCLK: | 2863 | case WM8994_FLL_SRC_LRCLK: |