]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] Revert migration to alc_set_pin_output() in alc861_auto_set_output_and_unmute()
authorJacek Luczak <luczak.jacek@gmail.com>
Sat, 3 May 2008 16:41:23 +0000 (18:41 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 May 2008 12:12:08 +0000 (14:12 +0200)
Change done by:
        commit f6c7e5461e9046445d50c5c7a9a4587824239623
        [ALSA] hda-codec - Fix auto-configuration of Realtek codecs
broke sound on ALC861 Analog.

Signed-off-by: Jacek Luczak <luczak.jacek@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index d9783a4263e0bee2a8ae47e01eb7e063e7dea51b..6d4df45e81e033372354d1275a1681bea4e46b73 100644 (file)
@@ -11902,7 +11902,10 @@ static void alc861_auto_set_output_and_unmute(struct hda_codec *codec,
                                              hda_nid_t nid,
                                              int pin_type, int dac_idx)
 {
-       alc_set_pin_output(codec, nid, pin_type);
+       snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
+                           pin_type);
+       snd_hda_codec_write(codec, dac_idx, 0, AC_VERB_SET_AMP_GAIN_MUTE,
+                           AMP_OUT_UNMUTE);
 }
 
 static void alc861_auto_init_multi_out(struct hda_codec *codec)