diff options
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index d32d554f5b34..118b0034ba23 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -1866,7 +1866,7 @@ static int cp_event(struct snd_soc_dapm_widget *w, | |||
1866 | static int hp_event(struct snd_soc_dapm_widget *w, | 1866 | static int hp_event(struct snd_soc_dapm_widget *w, |
1867 | struct snd_kcontrol *kcontrol, int event) | 1867 | struct snd_kcontrol *kcontrol, int event) |
1868 | { | 1868 | { |
1869 | struct snd_soc_codec *codec = w->codec; | 1869 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
1870 | int timeout; | 1870 | int timeout; |
1871 | int reg; | 1871 | int reg; |
1872 | int expected = (WM8962_DCS_STARTUP_DONE_HP1L | | 1872 | int expected = (WM8962_DCS_STARTUP_DONE_HP1L | |
@@ -1960,7 +1960,7 @@ static int hp_event(struct snd_soc_dapm_widget *w, | |||
1960 | static int out_pga_event(struct snd_soc_dapm_widget *w, | 1960 | static int out_pga_event(struct snd_soc_dapm_widget *w, |
1961 | struct snd_kcontrol *kcontrol, int event) | 1961 | struct snd_kcontrol *kcontrol, int event) |
1962 | { | 1962 | { |
1963 | struct snd_soc_codec *codec = w->codec; | 1963 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
1964 | int reg; | 1964 | int reg; |
1965 | 1965 | ||
1966 | switch (w->shift) { | 1966 | switch (w->shift) { |
@@ -1993,7 +1993,7 @@ static int out_pga_event(struct snd_soc_dapm_widget *w, | |||
1993 | static int dsp2_event(struct snd_soc_dapm_widget *w, | 1993 | static int dsp2_event(struct snd_soc_dapm_widget *w, |
1994 | struct snd_kcontrol *kcontrol, int event) | 1994 | struct snd_kcontrol *kcontrol, int event) |
1995 | { | 1995 | { |
1996 | struct snd_soc_codec *codec = w->codec; | 1996 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
1997 | struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec); | 1997 | struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec); |
1998 | 1998 | ||
1999 | switch (event) { | 1999 | switch (event) { |