diff options
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r-- | sound/soc/codecs/wm8940.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index d2883affea3b..481a3d9cfe48 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -371,8 +371,7 @@ static int wm8940_i2s_hw_params(struct snd_pcm_substream *substream, | |||
371 | struct snd_pcm_hw_params *params, | 371 | struct snd_pcm_hw_params *params, |
372 | struct snd_soc_dai *dai) | 372 | struct snd_soc_dai *dai) |
373 | { | 373 | { |
374 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 374 | struct snd_soc_codec *codec = dai->codec; |
375 | struct snd_soc_codec *codec = rtd->codec; | ||
376 | u16 iface = snd_soc_read(codec, WM8940_IFACE) & 0xFD9F; | 375 | u16 iface = snd_soc_read(codec, WM8940_IFACE) & 0xFD9F; |
377 | u16 addcntrl = snd_soc_read(codec, WM8940_ADDCNTRL) & 0xFFF1; | 376 | u16 addcntrl = snd_soc_read(codec, WM8940_ADDCNTRL) & 0xFFF1; |
378 | u16 companding = snd_soc_read(codec, | 377 | u16 companding = snd_soc_read(codec, |