Commit b69ce01a authored by Herton Ronaldo Krzesinski's avatar Herton Ronaldo Krzesinski Committed by Jaroslav Kysela

ALSA: hda - Fix ALC662 DAC mixer mutes also for auto config model

In previous change "[ALSA] hda-codec - Fix ALC662 DAC mixer mutes", I
missed to fix the mixer mute switches also for the auto config model of
ALC662. Now mute for mixer items "Front", "Surround", "Center" and "LFE"
when available will work too with "auto" model.
Signed-off-by: default avatarHerton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 9c95c43d
...@@ -15973,15 +15973,15 @@ static int alc662_auto_create_multi_out_ctls(struct alc_spec *spec, ...@@ -15973,15 +15973,15 @@ static int alc662_auto_create_multi_out_ctls(struct alc_spec *spec,
HDA_OUTPUT)); HDA_OUTPUT));
if (err < 0) if (err < 0)
return err; return err;
err = add_control(spec, ALC_CTL_BIND_MUTE, err = add_control(spec, ALC_CTL_WIDGET_MUTE,
"Center Playback Switch", "Center Playback Switch",
HDA_COMPOSE_AMP_VAL(nid, 1, 2, HDA_COMPOSE_AMP_VAL(0x0e, 1, 0,
HDA_INPUT)); HDA_INPUT));
if (err < 0) if (err < 0)
return err; return err;
err = add_control(spec, ALC_CTL_BIND_MUTE, err = add_control(spec, ALC_CTL_WIDGET_MUTE,
"LFE Playback Switch", "LFE Playback Switch",
HDA_COMPOSE_AMP_VAL(nid, 2, 2, HDA_COMPOSE_AMP_VAL(0x0e, 2, 0,
HDA_INPUT)); HDA_INPUT));
if (err < 0) if (err < 0)
return err; return err;
...@@ -15993,9 +15993,9 @@ static int alc662_auto_create_multi_out_ctls(struct alc_spec *spec, ...@@ -15993,9 +15993,9 @@ static int alc662_auto_create_multi_out_ctls(struct alc_spec *spec,
if (err < 0) if (err < 0)
return err; return err;
sprintf(name, "%s Playback Switch", chname[i]); sprintf(name, "%s Playback Switch", chname[i]);
err = add_control(spec, ALC_CTL_BIND_MUTE, name, err = add_control(spec, ALC_CTL_WIDGET_MUTE, name,
HDA_COMPOSE_AMP_VAL(nid, 3, 2, HDA_COMPOSE_AMP_VAL(alc880_idx_to_mixer(i),
HDA_INPUT)); 3, 0, HDA_INPUT));
if (err < 0) if (err < 0)
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment