aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-12-03 05:04:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-12 01:36:26 -0500
commit1687164fceb6412a3c9a1f10b1e9b619e4cf75dc (patch)
treefaf1304e916e52cf81686461fc39da1965ea3475
parentdd7933f8de8cd877ae203a5e5608ac483ab21314 (diff)
ASoC: wm8731: fix dsp mode configuration
commit b4af6ef99a60c5b56df137d7accd81ba1ee1254e upstream. 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 <voice.shen@atmel.com> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--sound/soc/codecs/wm8731.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 5276062d6c79..10d492b6a5b4 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -407,10 +407,10 @@ static int wm8731_set_dai_fmt(struct snd_soc_dai *codec_dai,
407 iface |= 0x0001; 407 iface |= 0x0001;
408 break; 408 break;
409 case SND_SOC_DAIFMT_DSP_A: 409 case SND_SOC_DAIFMT_DSP_A:
410 iface |= 0x0003; 410 iface |= 0x0013;
411 break; 411 break;
412 case SND_SOC_DAIFMT_DSP_B: 412 case SND_SOC_DAIFMT_DSP_B:
413 iface |= 0x0013; 413 iface |= 0x0003;
414 break; 414 break;
415 default: 415 default:
416 return -EINVAL; 416 return -EINVAL;