aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8711.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r--sound/soc/codecs/wm8711.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c
index 8d0347cf0e9a..076bdb9930a1 100644
--- a/sound/soc/codecs/wm8711.c
+++ b/sound/soc/codecs/wm8711.c
@@ -151,7 +151,7 @@ static int wm8711_hw_params(struct snd_pcm_substream *substream,
151{ 151{
152 struct snd_soc_codec *codec = dai->codec; 152 struct snd_soc_codec *codec = dai->codec;
153 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); 153 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec);
154 u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0xfffc; 154 u16 iface = snd_soc_read(codec, WM8711_IFACE) & 0xfff3;
155 int i = get_coeff(wm8711->sysclk, params_rate(params)); 155 int i = get_coeff(wm8711->sysclk, params_rate(params));
156 u16 srate = (coeff_div[i].sr << 2) | 156 u16 srate = (coeff_div[i].sr << 2) |
157 (coeff_div[i].bosr << 1) | coeff_div[i].usb; 157 (coeff_div[i].bosr << 1) | coeff_div[i].usb;
@@ -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) {