diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-10-28 03:17:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-31 08:38:28 -0400 |
commit | d558cfc30064a97c2c65dbd2b3a4f5a1dea7ec1b (patch) | |
tree | 42a25e99424a82dbe830e9616a6e9325740ebfc2 /sound | |
parent | 04c57163c8edfbc50e022737014069998ba4fc5f (diff) |
ASoC: Leave input audio data bit length settings untouched in wm8711_set_dai_fmt
Current implementation in wm8711_set_dai_fmt always clear BIT[3:2]
(the Input Audio Data Bit Length Select) of WM8711_IFACE(07h) register.
Input Audio Data Bit Length Select bits are set by wm8711_hw_params,
we should leave BIT[3:2] untouched in wm8711_set_dai_fmt.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8711.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index 8ba49d867ac7..076bdb9930a1 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c | |||
@@ -232,7 +232,7 @@ static int wm8711_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
232 | unsigned int fmt) | 232 | unsigned int fmt) |
233 | { | 233 | { |
234 | struct snd_soc_codec *codec = codec_dai->codec; | 234 | struct snd_soc_codec *codec = codec_dai->codec; |
235 | u16 iface = 0; | 235 | u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0x000c; |
236 | 236 | ||
237 | /* set master/slave audio interface */ | 237 | /* set master/slave audio interface */ |
238 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { | 238 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |