From: Bo Shen Date: Tue, 3 Dec 2013 10:04:54 +0000 (+0800) Subject: ASoC: wm8731: fix dsp mode configuration X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~9656^2~1^2^8 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b4af6ef99a60c5b56df137d7accd81ba1ee1254e;hp=6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae;p=mirror_ubuntu-zesty-kernel.git ASoC: wm8731: fix dsp mode configuration According to WM8731 "PD, Rev 4.9 October 2012" datasheet, when it works in DSP mode A, LRP = 1, while works in DSP mode B, LRP = 0. So, fix LRP for DSP mode as the datesheet specification. Signed-off-by: Bo Shen Acked-by: Charles Keepax Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 456bb8c6d759..bc7472c968e3 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -447,10 +447,10 @@ static int wm8731_set_dai_fmt(struct snd_soc_dai *codec_dai, iface |= 0x0001; break; case SND_SOC_DAIFMT_DSP_A: - iface |= 0x0003; + iface |= 0x0013; break; case SND_SOC_DAIFMT_DSP_B: - iface |= 0x0013; + iface |= 0x0003; break; default: return -EINVAL;