diff options
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 8f7530fc7644..b0e6b8b47fa9 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -18997,6 +18997,8 @@ static inline hda_nid_t alc662_mix_to_dac(hda_nid_t nid) | |||
18997 | return 0x02; | 18997 | return 0x02; |
18998 | else if (nid >= 0x0c && nid <= 0x0e) | 18998 | else if (nid >= 0x0c && nid <= 0x0e) |
18999 | return nid - 0x0c + 0x02; | 18999 | return nid - 0x0c + 0x02; |
19000 | else if (nid == 0x26) /* ALC887-VD has this DAC too */ | ||
19001 | return 0x25; | ||
19000 | else | 19002 | else |
19001 | return 0; | 19003 | return 0; |
19002 | } | 19004 | } |
@@ -19005,7 +19007,7 @@ static inline hda_nid_t alc662_mix_to_dac(hda_nid_t nid) | |||
19005 | static hda_nid_t alc662_dac_to_mix(struct hda_codec *codec, hda_nid_t pin, | 19007 | static hda_nid_t alc662_dac_to_mix(struct hda_codec *codec, hda_nid_t pin, |
19006 | hda_nid_t dac) | 19008 | hda_nid_t dac) |
19007 | { | 19009 | { |
19008 | hda_nid_t mix[4]; | 19010 | hda_nid_t mix[5]; |
19009 | int i, num; | 19011 | int i, num; |
19010 | 19012 | ||
19011 | num = snd_hda_get_connections(codec, pin, mix, ARRAY_SIZE(mix)); | 19013 | num = snd_hda_get_connections(codec, pin, mix, ARRAY_SIZE(mix)); |