Lines Matching refs:from_nid
257 hda_nid_t from_nid, hda_nid_t to_nid, in get_nid_path() argument
267 if ((!from_nid || path->path[0] == from_nid) && in get_nid_path()
334 hda_nid_t from_nid, hda_nid_t to_nid) in is_reachable_path() argument
336 if (!from_nid || !to_nid) in is_reachable_path()
338 return snd_hda_get_conn_index(codec, to_nid, from_nid, true) >= 0; in is_reachable_path()
385 hda_nid_t from_nid, hda_nid_t to_nid, in __parse_nid_path() argument
399 if (conn[i] != from_nid) { in __parse_nid_path()
403 if (from_nid || in __parse_nid_path()
420 if (__parse_nid_path(codec, from_nid, conn[i], in __parse_nid_path()
454 static bool snd_hda_parse_nid_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_parse_nid_path() argument
458 if (__parse_nid_path(codec, from_nid, to_nid, anchor_nid, path, 1)) { in snd_hda_parse_nid_path()
477 snd_hda_add_new_path(struct hda_codec *codec, hda_nid_t from_nid, in snd_hda_add_new_path() argument
483 if (from_nid && to_nid && !is_reachable_path(codec, from_nid, to_nid)) in snd_hda_add_new_path()
487 path = get_nid_path(codec, from_nid, to_nid, anchor_nid); in snd_hda_add_new_path()
495 if (snd_hda_parse_nid_path(codec, from_nid, to_nid, anchor_nid, path)) in snd_hda_add_new_path()