diff options
Diffstat (limited to 'sound/soc/codecs/wm_hubs.c')
-rw-r--r-- | sound/soc/codecs/wm_hubs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 374537d5e179..8366e19657a7 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c | |||
@@ -500,7 +500,7 @@ SOC_SINGLE_TLV("LINEOUT2 Volume", WM8993_LINE_OUTPUTS_VOLUME, 0, 1, 1, | |||
500 | static int hp_supply_event(struct snd_soc_dapm_widget *w, | 500 | static int hp_supply_event(struct snd_soc_dapm_widget *w, |
501 | struct snd_kcontrol *kcontrol, int event) | 501 | struct snd_kcontrol *kcontrol, int event) |
502 | { | 502 | { |
503 | struct snd_soc_codec *codec = w->codec; | 503 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
504 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); | 504 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); |
505 | 505 | ||
506 | switch (event) { | 506 | switch (event) { |
@@ -542,7 +542,7 @@ static int hp_supply_event(struct snd_soc_dapm_widget *w, | |||
542 | static int hp_event(struct snd_soc_dapm_widget *w, | 542 | static int hp_event(struct snd_soc_dapm_widget *w, |
543 | struct snd_kcontrol *kcontrol, int event) | 543 | struct snd_kcontrol *kcontrol, int event) |
544 | { | 544 | { |
545 | struct snd_soc_codec *codec = w->codec; | 545 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
546 | unsigned int reg = snd_soc_read(codec, WM8993_ANALOGUE_HP_0); | 546 | unsigned int reg = snd_soc_read(codec, WM8993_ANALOGUE_HP_0); |
547 | 547 | ||
548 | switch (event) { | 548 | switch (event) { |
@@ -594,7 +594,7 @@ static int hp_event(struct snd_soc_dapm_widget *w, | |||
594 | static int earpiece_event(struct snd_soc_dapm_widget *w, | 594 | static int earpiece_event(struct snd_soc_dapm_widget *w, |
595 | struct snd_kcontrol *control, int event) | 595 | struct snd_kcontrol *control, int event) |
596 | { | 596 | { |
597 | struct snd_soc_codec *codec = w->codec; | 597 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
598 | u16 reg = snd_soc_read(codec, WM8993_ANTIPOP1) & ~WM8993_HPOUT2_IN_ENA; | 598 | u16 reg = snd_soc_read(codec, WM8993_ANTIPOP1) & ~WM8993_HPOUT2_IN_ENA; |
599 | 599 | ||
600 | switch (event) { | 600 | switch (event) { |
@@ -619,7 +619,7 @@ static int earpiece_event(struct snd_soc_dapm_widget *w, | |||
619 | static int lineout_event(struct snd_soc_dapm_widget *w, | 619 | static int lineout_event(struct snd_soc_dapm_widget *w, |
620 | struct snd_kcontrol *control, int event) | 620 | struct snd_kcontrol *control, int event) |
621 | { | 621 | { |
622 | struct snd_soc_codec *codec = w->codec; | 622 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
623 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); | 623 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); |
624 | bool *flag; | 624 | bool *flag; |
625 | 625 | ||
@@ -649,7 +649,7 @@ static int lineout_event(struct snd_soc_dapm_widget *w, | |||
649 | static int micbias_event(struct snd_soc_dapm_widget *w, | 649 | static int micbias_event(struct snd_soc_dapm_widget *w, |
650 | struct snd_kcontrol *kcontrol, int event) | 650 | struct snd_kcontrol *kcontrol, int event) |
651 | { | 651 | { |
652 | struct snd_soc_codec *codec = w->codec; | 652 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
653 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); | 653 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); |
654 | 654 | ||
655 | switch (w->shift) { | 655 | switch (w->shift) { |