[alsa-devel] Regarding Sound on Acer Aspire 6935G
Emilio López
buhitoescolar at gmail.com
Wed Jun 24 23:45:03 CEST 2009
2009/6/24 Takashi Iwai <tiwai at suse.de>:
> 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?
Yes! Now, with just one "spec->autocfg.hp_pins", it works fine :) I
guess you can include the patch now
.
>
>
> 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