Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210999
b: refs/heads/master
c: 01fdf18
h: refs/heads/master
i:
  210997: 013f6ee
  210995: f0182bb
  210991: 0e783a3
v: v3
  • Loading branch information
Takashi Iwai committed Sep 24, 2010
1 parent 1fa9fc7 commit bac3267
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f9f1ee9d1412d45a22bfd69dfd4d4324b506e9e
refs/heads/master: 01fdf1801e349302fce5d9865470a7100a2d9b74
22 changes: 16 additions & 6 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1594,12 +1594,22 @@ static void alc_auto_parse_digital(struct hda_codec *codec)
}

if (spec->autocfg.dig_in_pin) {
hda_nid_t dig_nid;
err = snd_hda_get_connections(codec,
spec->autocfg.dig_in_pin,
&dig_nid, 1);
if (err > 0)
spec->dig_in_nid = dig_nid;
dig_nid = codec->start_nid;
for (i = 0; i < codec->num_nodes; i++, dig_nid++) {
unsigned int wcaps = get_wcaps(codec, dig_nid);
if (get_wcaps_type(wcaps) != AC_WID_AUD_IN)
continue;
if (!(wcaps & AC_WCAP_DIGITAL))
continue;
if (!(wcaps & AC_WCAP_CONN_LIST))
continue;
err = get_connection_index(codec, dig_nid,
spec->autocfg.dig_in_pin);
if (err >= 0) {
spec->dig_in_nid = dig_nid;
break;
}
}
}
}

Expand Down

0 comments on commit bac3267

Please sign in to comment.