提交 df1d1fb0 编写于 作者: T Takashi Iwai

ALSA: hda/realtek - Parse digital input path

This was the last forgotten path.  Now it's parsed via the same path
parser.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 965ccebc
...@@ -1402,14 +1402,16 @@ static void alc_auto_parse_digital(struct hda_codec *codec) ...@@ -1402,14 +1402,16 @@ static void alc_auto_parse_digital(struct hda_codec *codec)
if (spec->autocfg.dig_in_pin) { if (spec->autocfg.dig_in_pin) {
dig_nid = codec->start_nid; dig_nid = codec->start_nid;
for (i = 0; i < codec->num_nodes; i++, dig_nid++) { for (i = 0; i < codec->num_nodes; i++, dig_nid++) {
struct nid_path *path;
unsigned int wcaps = get_wcaps(codec, dig_nid); unsigned int wcaps = get_wcaps(codec, dig_nid);
if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) if (get_wcaps_type(wcaps) != AC_WID_AUD_IN)
continue; continue;
if (!(wcaps & AC_WCAP_DIGITAL)) if (!(wcaps & AC_WCAP_DIGITAL))
continue; continue;
if (!(wcaps & AC_WCAP_CONN_LIST)) path = add_new_nid_path(codec, spec->autocfg.dig_in_pin,
continue; dig_nid, 2);
if (err >= 0) { if (path) {
path->active = true;
spec->dig_in_nid = dig_nid; spec->dig_in_nid = dig_nid;
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册