From: Susan Gao Date: Thu, 29 Sep 2011 10:08:18 +0000 (+0100) Subject: ASoC: Fix a bug in WM8962 DSP_A and DSP_B settings X-Git-Tag: v3.0.9~157 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=54a8a620cee91954666080a5525d7f43cad0a693;p=karo-tx-linux.git ASoC: Fix a bug in WM8962 DSP_A and DSP_B settings commit fbc7c62a3ff831aef24894b7982cd1adb2b7e070 upstream. Signed-off-by: Susan Gao Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index b9c0fbebd51e..6bc72a7b6b9e 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3028,9 +3028,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) {