diff options
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 0ffccc178957..a5697c3b30b8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2972,8 +2972,12 @@ static bool alc_auto_is_dac_reachable(struct hda_codec *codec, | |||
2972 | 2972 | ||
2973 | static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) | 2973 | static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) |
2974 | { | 2974 | { |
2975 | struct alc_spec *spec = codec->spec; | ||
2975 | hda_nid_t sel = alc_go_down_to_selector(codec, pin); | 2976 | hda_nid_t sel = alc_go_down_to_selector(codec, pin); |
2976 | if (snd_hda_get_conn_list(codec, sel, NULL) == 1) | 2977 | hda_nid_t srcs[5]; |
2978 | int num = snd_hda_get_connections(codec, sel, srcs, | ||
2979 | ARRAY_SIZE(srcs)); | ||
2980 | if (num == 1 || (num == 2 && srcs[1] == spec->mixer_nid)) | ||
2977 | return alc_auto_look_for_dac(codec, pin); | 2981 | return alc_auto_look_for_dac(codec, pin); |
2978 | return 0; | 2982 | return 0; |
2979 | } | 2983 | } |