ASoC: Fix a bug in WM8962 DSP_A and DSP_B settings
authorSusan Gao <sgao@opensource.wolfsonmicro.com>
Thu, 29 Sep 2011 10:08:18 +0000 (11:08 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 29 Sep 2011 10:13:53 +0000 (11:13 +0100)
Signed-off-by: Susan Gao <sgao@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmico.com>
Cc: stable@kernel.org
sound/soc/codecs/wm8962.c

index bc6bdde3019f8d8205ed599e0a0110f5b523abe5..74ebbfa89a3074633938e289bd6d29f00c8d0f8d 100644 (file)
@@ -3223,9 +3223,9 @@ static int wm8962_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
        int aif0 = 0;
 
        switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
-       case SND_SOC_DAIFMT_DSP_A:
-               aif0 |= WM8962_LRCLK_INV;
        case SND_SOC_DAIFMT_DSP_B:
+               aif0 |= WM8962_LRCLK_INV | 3;
+       case SND_SOC_DAIFMT_DSP_A:
                aif0 |= 3;
 
                switch (fmt & SND_SOC_DAIFMT_INV_MASK) {