[alsa-devel] [PATCH] fix the bug for WM8962 DSP_A and DSP_B settings
Susan Gao
sgao at opensource.wolfsonmicro.com
Wed Sep 28 20:28:00 CEST 2011
Signed-off-by: Susan Gao <sgao at opensource.wolfsonmicro.com>
---
sound/soc/codecs/wm8962.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 117349b..49ea487 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3030,8 +3030,7 @@ static int wm8962_set_dai_fmt(struct snd_soc_dai
*dai, unsigned int fmt)
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_A:
- aif0 |= WM8962_LRCLK_INV;
- case SND_SOC_DAIFMT_DSP_B:
aif0 |= 3;
+ case SND_SOC_DAIFMT_DSP_B:
+ aif0 |= 3 | WM8962_LRCLK_INV;
switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
case SND_SOC_DAIFMT_NB_NF:
--
1.7.1
More information about the Alsa-devel
mailing list