Skip to content

Commit e939195

Browse files
AxelLingregkh
authored andcommitted
ASoC: Leave input audio data bit length settings untouched in wm8711_set_dai_fmt
commit d558cfc upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 55c618c commit e939195

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/codecs/wm8711.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static int wm8711_set_dai_fmt(struct snd_soc_dai *codec_dai,
231231
unsigned int fmt)
232232
{
233233
struct snd_soc_codec *codec = codec_dai->codec;
234-
u16 iface = 0;
234+
u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0x000c;
235235

236236
/* set master/slave audio interface */
237237
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {

0 commit comments

Comments
 (0)