diff options
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r-- | sound/soc/codecs/wm8711.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index a537e4af6ae..1dae5c4d993 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c | |||
@@ -150,7 +150,7 @@ static int wm8711_hw_params(struct snd_pcm_substream *substream, | |||
150 | { | 150 | { |
151 | struct snd_soc_codec *codec = dai->codec; | 151 | struct snd_soc_codec *codec = dai->codec; |
152 | struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); | 152 | struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); |
153 | u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0xfffc; | 153 | u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0xfff3; |
154 | int i = get_coeff(wm8711->sysclk, params_rate(params)); | 154 | int i = get_coeff(wm8711->sysclk, params_rate(params)); |
155 | u16 srate = (coeff_div[i].sr << 2) | | 155 | u16 srate = (coeff_div[i].sr << 2) | |
156 | (coeff_div[i].bosr << 1) | coeff_div[i].usb; | 156 | (coeff_div[i].bosr << 1) | coeff_div[i].usb; |
@@ -231,7 +231,7 @@ static int wm8711_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
231 | unsigned int fmt) | 231 | unsigned int fmt) |
232 | { | 232 | { |
233 | struct snd_soc_codec *codec = codec_dai->codec; | 233 | struct snd_soc_codec *codec = codec_dai->codec; |
234 | u16 iface = 0; | 234 | u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0x000c; |
235 | 235 | ||
236 | /* set master/slave audio interface */ | 236 | /* set master/slave audio interface */ |
237 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { | 237 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |