[alsa-devel] Regarding Sound on Acer Aspire 6935G

Takashi Iwai tiwai at suse.de
Wed Jun 24 23:30:11 CEST 2009


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) {


More information about the Alsa-devel mailing list