diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-01-20 02:35:06 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-01-20 02:35:06 -0500 |
commit | dc99be47667c56046555e89e62f1ac17fa06329a (patch) | |
tree | f00b0bf3c62d5f4c798c66053351132e84cc012f | |
parent | 3fb4a508b8e7957aa899f32cd6d9d462e102c7ca (diff) |
ALSA: hda - Fix HP T5735 automute
This patch fixes the aut-mute setup on HP T5735 with ALC262 codec.
Instead of wrong amp, use pin control toggling for muting the speaker now.
Tested-by: Lee Trager <lee.trager@hp.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 6ae610c0111..d00e6d1da08 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -10382,7 +10382,7 @@ static void alc262_hp_t5735_setup(struct hda_codec *codec) | |||
10382 | struct alc_spec *spec = codec->spec; | 10382 | struct alc_spec *spec = codec->spec; |
10383 | 10383 | ||
10384 | spec->autocfg.hp_pins[0] = 0x15; | 10384 | spec->autocfg.hp_pins[0] = 0x15; |
10385 | spec->autocfg.speaker_pins[0] = 0x0c; /* HACK: not actually a pin */ | 10385 | spec->autocfg.speaker_pins[0] = 0x14; |
10386 | } | 10386 | } |
10387 | 10387 | ||
10388 | static struct snd_kcontrol_new alc262_hp_t5735_mixer[] = { | 10388 | static struct snd_kcontrol_new alc262_hp_t5735_mixer[] = { |
@@ -11793,9 +11793,9 @@ static struct alc_config_preset alc262_presets[] = { | |||
11793 | .num_channel_mode = ARRAY_SIZE(alc262_modes), | 11793 | .num_channel_mode = ARRAY_SIZE(alc262_modes), |
11794 | .channel_mode = alc262_modes, | 11794 | .channel_mode = alc262_modes, |
11795 | .input_mux = &alc262_capture_source, | 11795 | .input_mux = &alc262_capture_source, |
11796 | .unsol_event = alc_automute_amp_unsol_event, | 11796 | .unsol_event = alc_sku_unsol_event, |
11797 | .setup = alc262_hp_t5735_setup, | 11797 | .setup = alc262_hp_t5735_setup, |
11798 | .init_hook = alc_automute_amp, | 11798 | .init_hook = alc_inithook, |
11799 | }, | 11799 | }, |
11800 | [ALC262_HP_RP5700] = { | 11800 | [ALC262_HP_RP5700] = { |
11801 | .mixers = { alc262_hp_rp5700_mixer }, | 11801 | .mixers = { alc262_hp_rp5700_mixer }, |