Skip to content

Commit 9cae0c6

Browse files
robbat2perexg
authored andcommitted
ALSA: HDA: patch_analog: Implement multiple outputs for AD1988
Implement the slave_dig_outs for AD1989 cards. Untested due to lack of hardware. 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 0481f45 commit 9cae0c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sound/pci/hda/patch_analog.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1826,9 +1826,14 @@ static hda_nid_t ad1988_capsrc_nids[3] = {
18261826
0x0c, 0x0d, 0x0e
18271827
};
18281828

1829-
#define AD1988_SPDIF_OUT 0x02
1829+
#define AD1988_SPDIF_OUT 0x02
1830+
#define AD1988_SPDIF_OUT_HDMI 0x0b
18301831
#define AD1988_SPDIF_IN 0x07
18311832

1833+
static hda_nid_t ad1989b_slave_dig_outs[2] = {
1834+
AD1988_SPDIF_OUT, AD1988_SPDIF_OUT_HDMI
1835+
};
1836+
18321837
static struct hda_input_mux ad1988_6stack_capture_source = {
18331838
.num_items = 5,
18341839
.items = {
@@ -2143,6 +2148,7 @@ static struct snd_kcontrol_new ad1988_spdif_in_mixers[] = {
21432148

21442149
static struct snd_kcontrol_new ad1989_spdif_out_mixers[] = {
21452150
HDA_CODEC_VOLUME("IEC958 Playback Volume", 0x1b, 0x0, HDA_OUTPUT),
2151+
HDA_CODEC_VOLUME("HDMI Playback Volume", 0x1d, 0x0, HDA_OUTPUT),
21462152
{ } /* end */
21472153
};
21482154

@@ -2985,6 +2991,7 @@ static int patch_ad1988(struct hda_codec *codec)
29852991
ad1989_spdif_out_mixers;
29862992
spec->init_verbs[spec->num_init_verbs++] =
29872993
ad1989_spdif_init_verbs;
2994+
codec->slave_dig_outs = ad1989b_slave_dig_outs;
29882995
} else {
29892996
spec->mixers[spec->num_mixers++] =
29902997
ad1988_spdif_out_mixers;

0 commit comments

Comments
 (0)