Lines Matching refs:paths
52 snd_array_init(&spec->paths, sizeof(struct nid_path), 8); in snd_hda_gen_spec_init()
104 snd_array_free(&spec->paths); in snd_hda_gen_spec_free()
266 for (i = 0; i < spec->paths.used; i++) { in get_nid_path()
267 struct nid_path *path = snd_array_elem(&spec->paths, i); in get_nid_path()
309 struct nid_path *array = spec->paths.list; in snd_hda_get_path_idx()
312 if (!spec->paths.used) in snd_hda_get_path_idx()
315 if (idx < 0 || idx >= spec->paths.used) in snd_hda_get_path_idx()
331 if (idx <= 0 || idx > spec->paths.used) in snd_hda_get_path_from_idx()
333 return snd_array_elem(&spec->paths, idx - 1); in snd_hda_get_path_from_idx()
343 for (i = 0; i < spec->paths.used; i++) { in is_dac_already_used()
344 struct nid_path *path = snd_array_elem(&spec->paths, i); in is_dac_already_used()
370 for (i = 0; i < spec->paths.used; i++) { in is_ctl_used()
371 struct nid_path *path = snd_array_elem(&spec->paths, i); in is_ctl_used()
511 path = snd_array_new(&spec->paths); in snd_hda_add_new_path()
518 spec->paths.used--; in snd_hda_add_new_path()
660 for (n = 0; n < spec->paths.used; n++) { in is_active_nid()
661 struct nid_path *path = snd_array_elem(&spec->paths, n); in is_active_nid()
1553 spec->paths.used -= spec->multi_ios - old_pins; in fill_multi_ios()
1711 snd_array_free(&spec->paths); in fill_and_eval_dacs()
2132 const int *paths, const char *pfx) in create_extra_outs() argument
2151 err = create_extra_out(codec, paths[i], name, idx); in create_extra_outs()
2447 const int *paths) in update_output_paths() argument
2454 path = snd_hda_get_path_from_idx(codec, paths[i]); in update_output_paths()
3993 for (n = 0; n < spec->paths.used; n++) { in set_path_power()
3994 path = snd_array_elem(&spec->paths, n); in set_path_power()
4145 path = snd_array_new(&spec->paths); in add_fake_paths()
4200 path = snd_array_new(&spec->paths); in snd_hda_gen_fix_pin_power()
4238 int *paths, bool mute) in do_automute() argument
4257 path = snd_hda_get_path_from_idx(codec, paths[i]); in do_automute()
4305 int *paths; in snd_hda_gen_update_outputs() local
4313 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4315 paths = spec->hp_paths; in snd_hda_gen_update_outputs()
4317 spec->autocfg.hp_pins, paths, spec->master_mute); in snd_hda_gen_update_outputs()
4326 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4328 paths = spec->speaker_paths; in snd_hda_gen_update_outputs()
4330 spec->autocfg.speaker_pins, paths, on); in snd_hda_gen_update_outputs()
4343 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4345 spec->autocfg.line_out_pins, paths, on); in snd_hda_gen_update_outputs()
5668 static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) in __init_extra_out() argument
5673 set_output_and_unmute(codec, paths[i]); in __init_extra_out()