summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Luczak <luczak.jacek@gmail.com>2008-05-03 18:41:23 +0200
committerTakashi Iwai <tiwai@suse.de>2008-05-05 14:12:08 +0200
commit564c5bead424fa798dfbd5fe382b4e0b7ea483fb (patch)
tree382f9759cde417e372bc2e1598cb910041ec8f16
parent20686c24377246d9eb57782551b25ff19df09873 (diff)
downloadblackbird-op-linux-564c5bead424fa798dfbd5fe382b4e0b7ea483fb.tar.gz
blackbird-op-linux-564c5bead424fa798dfbd5fe382b4e0b7ea483fb.zip
[ALSA] Revert migration to alc_set_pin_output() in alc861_auto_set_output_and_unmute()
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>
-rw-r--r--sound/pci/hda/patch_realtek.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index d9783a4263e0..6d4df45e81e0 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -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)
OpenPOWER on IntegriCloud