ASoC: Only update SYSCLK_ENA when pausing WM8915 SYSCLK
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Jun 2011 16:13:57 +0000 (17:13 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Jun 2011 11:46:33 +0000 (12:46 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/codecs/wm8915.c

index a0b1a7278284ee7419ce662d0ba913391556b02e..28fbf072b9c0209fef4dc4c7554e0b5d02b01990 100644 (file)
@@ -1839,7 +1839,7 @@ static int wm8915_set_sysclk(struct snd_soc_dai *dai,
        int old;
 
        /* Disable SYSCLK while we reconfigure */
-       old = snd_soc_read(codec, WM8915_AIF_CLOCKING_1);
+       old = snd_soc_read(codec, WM8915_AIF_CLOCKING_1) & WM8915_SYSCLK_ENA;
        snd_soc_update_bits(codec, WM8915_AIF_CLOCKING_1,
                            WM8915_SYSCLK_ENA, 0);