summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorSusan Gao <sgao@opensource.wolfsonmicro.com>2011-09-29 11:08:18 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-29 11:13:53 +0100
commitfbc7c62a3ff831aef24894b7982cd1adb2b7e070 (patch)
treece75f6e9f3f3dd299568b4a3aa8fa4e4ce9e43f0 /sound/soc/codecs
parentc29429f3b72fe0b593f674378e99f22d5f8bea1f (diff)
downloadblackbird-op-linux-fbc7c62a3ff831aef24894b7982cd1adb2b7e070.tar.gz
blackbird-op-linux-fbc7c62a3ff831aef24894b7982cd1adb2b7e070.zip
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')
-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) {
OpenPOWER on IntegriCloud