From: Mark Brown Date: Wed, 21 Apr 2010 17:29:01 +0000 (+0900) Subject: ASoC: Allow unspecified source when stopping WM8994 FLLs X-Git-Tag: MMI-PSA29.97-13-9~23168^2~7^2~46 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7add84aa779b4f7ca39484a82a11e01d7acd4dca;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Allow unspecified source when stopping WM8994 FLLs Signed-off-by: Mark Brown --- 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, } 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: