summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8962.c
diff options
context:
space:
mode:
authorSusan Gao <sgao@opensource.wolfsonmicro.com>2011-09-29 14:08:18 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-29 14:13:53 +0400
commitfbc7c62a3ff831aef24894b7982cd1adb2b7e070 (patch)
treece75f6e9f3f3dd299568b4a3aa8fa4e4ce9e43f0 /sound/soc/codecs/wm8962.c
parentc29429f3b72fe0b593f674378e99f22d5f8bea1f (diff)
downloadlinux-fbc7c62a3ff831aef24894b7982cd1adb2b7e070.tar.xz
ASoC: Fix a bug in WM8962 DSP_A and DSP_B settings
Signed-off-by: Susan Gao <sgao@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmico.com> Cc: stable@kernel.org
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r--sound/soc/codecs/wm8962.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index bc6bdde3019f..74ebbfa89a30 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -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) {