This was the last forgotten path. Now it's parsed via the same path
parser.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
if (spec->autocfg.dig_in_pin) {
dig_nid = codec->start_nid;
for (i = 0; i < codec->num_nodes; i++, dig_nid++) {
+ struct nid_path *path;
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;
- if (err >= 0) {
+ path = add_new_nid_path(codec, spec->autocfg.dig_in_pin,
+ dig_nid, 2);
+ if (path) {
+ path->active = true;
spec->dig_in_nid = dig_nid;
break;
}