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()
1555 spec->paths.used -= spec->multi_ios - old_pins; in fill_multi_ios()
1713 snd_array_free(&spec->paths); in fill_and_eval_dacs()
2134 const int *paths, const char *pfx) in create_extra_outs() argument
2153 err = create_extra_out(codec, paths[i], name, idx); in create_extra_outs()
2449 const int *paths) in update_output_paths() argument
2456 path = snd_hda_get_path_from_idx(codec, paths[i]); in update_output_paths()
3995 for (n = 0; n < spec->paths.used; n++) { in set_path_power()
3996 path = snd_array_elem(&spec->paths, n); in set_path_power()
4147 path = snd_array_new(&spec->paths); in add_fake_paths()
4202 path = snd_array_new(&spec->paths); in snd_hda_gen_fix_pin_power()
4240 int *paths, bool mute) in do_automute() argument
4259 path = snd_hda_get_path_from_idx(codec, paths[i]); in do_automute()
4307 int *paths; in snd_hda_gen_update_outputs() local
4315 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4317 paths = spec->hp_paths; in snd_hda_gen_update_outputs()
4319 spec->autocfg.hp_pins, paths, spec->master_mute); in snd_hda_gen_update_outputs()
4328 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4330 paths = spec->speaker_paths; in snd_hda_gen_update_outputs()
4332 spec->autocfg.speaker_pins, paths, on); in snd_hda_gen_update_outputs()
4345 paths = spec->out_paths; in snd_hda_gen_update_outputs()
4347 spec->autocfg.line_out_pins, paths, on); in snd_hda_gen_update_outputs()
5670 static void __init_extra_out(struct hda_codec *codec, int num_outs, int *paths) in __init_extra_out() argument
5675 set_output_and_unmute(codec, paths[i]); in __init_extra_out()