]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/soc/codecs/wm8994.c
ASoC: Allow unspecified source when stopping WM8994 FLLs
[mirror_ubuntu-bionic-kernel.git] / sound / soc / codecs / wm8994.c
index eefa2427b10202cf270180ed111be3b740bb6d68..cdfbfb633f30af488bd35c02dea430664969f563 100644 (file)
@@ -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: