24 Jun
2009
24 Jun
'09
11:30 p.m.
At Wed, 24 Jun 2009 16:33:26 -0300, Emilio López wrote:
Well, I finally got it to work. I had to triplicate the "spec->autocfg.hp_pins", I don't know why, but it made it work.
Hmm, does the patch below help?
Takashi
--- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3345331..12cc340 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1401,6 +1401,7 @@ static void alc_automute_amp(struct hda_codec *codec) nid = spec->autocfg.hp_pins[i]; if (!nid) break; + snd_hda_codec_read(codec, nid, 0, AC_VERB_SET_PIN_SENSE, 0); val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PIN_SENSE, 0); if (val & AC_PINSENSE_PRESENCE) {