Skip to contentSkip to conversation

fix the bug for WM8962 DSP_A and DSP_B settings

PATCH In review Susan Gao 2 participants 2 messages Sep 28, 2011 – Sep 29, 2011

Subsystems (3)
lore
Share & tools
lore

Susan Gao

author
#0 lore raw

PATCH 1/1 fix the bug for WM8962 DSP_A and DSP_B settings

---
 sound/soc/codecs/wm8962.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8962.c +0 -0
index 117349b..49ea487 100644
@@ -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

#1 lore raw
Quoted 1 line · Susan Gao

Applied, though there were a couple of issues - I'm not entirely sure what's going on here but I had to apply this by hand. There was a word wrapping issue but I fixed that and there was still an issue so I ended up hand applying. Please also remember to include the relevant prefix in the commit log (ASoC: for audio drivers).