File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1091,6 +1091,7 @@ static int via_mux_enum_put(struct snd_kcontrol *kcontrol,
1091
1091
struct hda_codec * codec = snd_kcontrol_chip (kcontrol );
1092
1092
struct via_spec * spec = codec -> spec ;
1093
1093
unsigned int adc_idx = snd_ctl_get_ioffidx (kcontrol , & ucontrol -> id );
1094
+ int ret ;
1094
1095
1095
1096
if (!spec -> mux_nids [adc_idx ])
1096
1097
return - EINVAL ;
@@ -1099,12 +1100,14 @@ static int via_mux_enum_put(struct snd_kcontrol *kcontrol,
1099
1100
AC_VERB_GET_POWER_STATE , 0x00 ) != AC_PWRST_D0 )
1100
1101
snd_hda_codec_write (codec , spec -> mux_nids [adc_idx ], 0 ,
1101
1102
AC_VERB_SET_POWER_STATE , AC_PWRST_D0 );
1102
- /* update jack power state */
1103
- set_jack_power_state (codec );
1104
1103
1105
- return snd_hda_input_mux_put (codec , spec -> input_mux , ucontrol ,
1104
+ ret = snd_hda_input_mux_put (codec , spec -> input_mux , ucontrol ,
1106
1105
spec -> mux_nids [adc_idx ],
1107
1106
& spec -> cur_mux [adc_idx ]);
1107
+ /* update jack power state */
1108
+ set_jack_power_state (codec );
1109
+
1110
+ return ret ;
1108
1111
}
1109
1112
1110
1113
static int via_independent_hp_info (struct snd_kcontrol * kcontrol ,
You can’t perform that action at this time.
0 commit comments