When wm8904 work in DSP mode B, we still need to configure it to work in DSP mode. Or else, it will work in Right Justified mode. Signed-off-by: Bo Shen <voice.shen@xxxxxxxxx> --- sound/soc/codecs/wm8904.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 3938fb1..53bbfac 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -1444,7 +1444,7 @@ static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { case SND_SOC_DAIFMT_DSP_B: - aif1 |= WM8904_AIF_LRCLK_INV; + aif1 |= 0x3 | WM8904_AIF_LRCLK_INV; case SND_SOC_DAIFMT_DSP_A: aif1 |= 0x3; break; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-sound" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: [PATCH] ASoC: wm8904: fix DSP mode B configuration
- From: Mark Brown
- Re: [PATCH] ASoC: wm8904: fix DSP mode B configuration
- From: Charles Keepax
- Re: [PATCH] ASoC: wm8904: fix DSP mode B configuration
- Prev by Date: Re: [Patch v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
- Next by Date: [RESEND PATCH v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
- Previous by thread: [PATCH 0/2] ASoC: sam9x5_wm8731: fix left right channel swap issue
- Next by thread: Re: [PATCH] ASoC: wm8904: fix DSP mode B configuration
- Index(es):
![]() |