Skip to content

Commit e8bfc6c

Browse files
robbat2perexg
authored andcommitted
ALSA: HDA: patch_analog: Fix SPDIF output on AD1989B
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>
1 parent 2a9c781 commit e8bfc6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sound/pci/hda/patch_analog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,8 +2249,12 @@ static struct hda_verb ad1988_spdif_init_verbs[] = {
22492249

22502250
/* AD1989 has no ADC -> SPDIF route */
22512251
static struct hda_verb ad1989_spdif_init_verbs[] = {
2252-
/* SPDIF out pin */
2252+
/* SPDIF-1 out pin */
2253+
{0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
22532254
{0x1b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE | 0x27}, /* 0dB */
2255+
/* SPDIF-2/HDMI out pin */
2256+
{0x1d, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
2257+
{0x1d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE | 0x27}, /* 0dB */
22542258
{ }
22552259
};
22562260

0 commit comments

Comments
 (0)