Skip to content

Commit

Permalink
ALSA: HDA: patch_analog: Fix SPDIF output on AD1989B
Browse files Browse the repository at this point in the history
The SPDIF pins for AD1989 are not enabled by default. Set OUT bit so that they
actually work. Also initialize the HDMI SPDIF at the same time.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Robin H. Johnson authored and Jaroslav Kysela committed Sep 23, 2008
1 parent 2a9c781 commit e8bfc6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/pci/hda/patch_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -2249,8 +2249,12 @@ static struct hda_verb ad1988_spdif_init_verbs[] = {

/* AD1989 has no ADC -> SPDIF route */
static struct hda_verb ad1989_spdif_init_verbs[] = {
/* SPDIF out pin */
/* SPDIF-1 out pin */
{0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
{0x1b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE | 0x27}, /* 0dB */
/* SPDIF-2/HDMI out pin */
{0x1d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
{0x1d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE | 0x27}, /* 0dB */
{ }
};

Expand Down

0 comments on commit e8bfc6c

Please sign in to comment.