diff options
Diffstat (limited to 'sound/soc/codecs/wm8978.c')
-rw-r--r-- | sound/soc/codecs/wm8978.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c index 72d5fdcd3cc2..a5be3adecf75 100644 --- a/sound/soc/codecs/wm8978.c +++ b/sound/soc/codecs/wm8978.c | |||
@@ -723,8 +723,7 @@ static int wm8978_hw_params(struct snd_pcm_substream *substream, | |||
723 | struct snd_pcm_hw_params *params, | 723 | struct snd_pcm_hw_params *params, |
724 | struct snd_soc_dai *dai) | 724 | struct snd_soc_dai *dai) |
725 | { | 725 | { |
726 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 726 | struct snd_soc_codec *codec = dai->codec; |
727 | struct snd_soc_codec *codec = rtd->codec; | ||
728 | struct wm8978_priv *wm8978 = snd_soc_codec_get_drvdata(codec); | 727 | struct wm8978_priv *wm8978 = snd_soc_codec_get_drvdata(codec); |
729 | /* Word length mask = 0x60 */ | 728 | /* Word length mask = 0x60 */ |
730 | u16 iface_ctl = snd_soc_read(codec, WM8978_AUDIO_INTERFACE) & ~0x60; | 729 | u16 iface_ctl = snd_soc_read(codec, WM8978_AUDIO_INTERFACE) & ~0x60; |