|
@@ -877,7 +877,8 @@ static const char *hp_mux_text[] = {
|
|
|
static int wm8994_put_hp_enum(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_dapm_widget *w = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_dapm_widget *w = wlist->widgets[0];
|
|
|
struct snd_soc_codec *codec = w->codec;
|
|
|
int ret;
|
|
|
|
|
@@ -1004,7 +1005,8 @@ SOC_DAPM_SINGLE("AIF1.1 Switch", WM8994_DAC2_RIGHT_MIXER_ROUTING,
|
|
|
static int wm8994_put_class_w(struct snd_kcontrol *kcontrol,
|
|
|
struct snd_ctl_elem_value *ucontrol)
|
|
|
{
|
|
|
- struct snd_soc_dapm_widget *w = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol);
|
|
|
+ struct snd_soc_dapm_widget *w = wlist->widgets[0];
|
|
|
struct snd_soc_codec *codec = w->codec;
|
|
|
int ret;
|
|
|
|