diff options
Diffstat (limited to 'sound/soc/codecs/wm8728.c')
-rw-r--r-- | sound/soc/codecs/wm8728.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index fc3d59e49084..1467f97dce21 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c | |||
@@ -88,8 +88,7 @@ static int wm8728_hw_params(struct snd_pcm_substream *substream, | |||
88 | struct snd_pcm_hw_params *params, | 88 | struct snd_pcm_hw_params *params, |
89 | struct snd_soc_dai *dai) | 89 | struct snd_soc_dai *dai) |
90 | { | 90 | { |
91 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 91 | struct snd_soc_codec *codec = dai->codec; |
92 | struct snd_soc_codec *codec = rtd->codec; | ||
93 | u16 dac = snd_soc_read(codec, WM8728_DACCTL); | 92 | u16 dac = snd_soc_read(codec, WM8728_DACCTL); |
94 | 93 | ||
95 | dac &= ~0x18; | 94 | dac &= ~0x18; |