Lines Matching refs:path
251 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained() argument
253 return find_idx_in_nid_list(nid, path->path, path->depth) >= 0; in is_nid_contained()
261 struct nid_path *path; in get_nid_path() local
264 snd_array_for_each(&spec->paths, i, path) { in get_nid_path()
265 if (path->depth <= 0) in get_nid_path()
267 if ((!from_nid || path->path[0] == from_nid) && in get_nid_path()
268 (!to_nid || path->path[path->depth - 1] == to_nid)) { in get_nid_path()
270 (anchor_nid > 0 && is_nid_contained(path, anchor_nid)) || in get_nid_path()
271 (anchor_nid < 0 && !is_nid_contained(path, anchor_nid))) in get_nid_path()
272 return path; in get_nid_path()
287 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx() argument
295 idx = path - array; in snd_hda_get_path_idx()
322 const struct nid_path *path; in is_dac_already_used() local
325 snd_array_for_each(&spec->paths, i, path) { in is_dac_already_used()
326 if (path->path[0] == nid) in is_dac_already_used()
348 const struct nid_path *path; in is_ctl_used() local
352 snd_array_for_each(&spec->paths, i, path) { in is_ctl_used()
353 if ((path->ctls[type] & AMP_VAL_COMPARE_MASK) == val) in is_ctl_used()
368 const char *pfx, struct nid_path *path) in print_nid_path() argument
375 for (i = 0; i < path->depth; i++) in print_nid_path()
378 path->path[i]); in print_nid_path()
380 codec_dbg(codec, "%s path: depth=%d '%s'\n", pfx, path->depth, buf); in print_nid_path()
386 int anchor_nid, struct nid_path *path, in __parse_nid_path() argument
421 anchor_nid, path, depth + 1)) in __parse_nid_path()
427 path->path[path->depth] = conn[i]; in __parse_nid_path()
428 path->idx[path->depth + 1] = i; in __parse_nid_path()
430 path->multi[path->depth + 1] = 1; in __parse_nid_path()
431 path->depth++; in __parse_nid_path()
456 struct nid_path *path) 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()
459 path->path[path->depth] = to_nid; in snd_hda_parse_nid_path()
460 path->depth++; in snd_hda_parse_nid_path()
481 struct nid_path *path; in snd_hda_add_new_path() local
487 path = get_nid_path(codec, from_nid, to_nid, anchor_nid); in snd_hda_add_new_path()
488 if (path) in snd_hda_add_new_path()
489 return path; in snd_hda_add_new_path()
491 path = snd_array_new(&spec->paths); in snd_hda_add_new_path()
492 if (!path) in snd_hda_add_new_path()
494 memset(path, 0, sizeof(*path)); 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()
496 return path; in snd_hda_add_new_path()
506 struct nid_path *path = snd_hda_get_path_from_idx(codec, idx); in invalidate_nid_path() local
507 if (!path) in invalidate_nid_path()
509 memset(path, 0, sizeof(*path)); in invalidate_nid_path()
566 struct nid_path *path) in look_for_out_mute_nid() argument
570 for (i = path->depth - 1; i >= 0; i--) { in look_for_out_mute_nid()
571 if (nid_has_mute(codec, path->path[i], HDA_OUTPUT)) in look_for_out_mute_nid()
572 return path->path[i]; in look_for_out_mute_nid()
573 if (i != path->depth - 1 && i != 0 && in look_for_out_mute_nid()
574 nid_has_mute(codec, path->path[i], HDA_INPUT)) in look_for_out_mute_nid()
575 return path->path[i]; in look_for_out_mute_nid()
582 struct nid_path *path) in look_for_out_vol_nid() argument
587 for (i = path->depth - 1; i >= 0; i--) { in look_for_out_vol_nid()
588 hda_nid_t nid = path->path[i]; in look_for_out_vol_nid()
602 static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_in() argument
604 hda_nid_t nid = path->path[idx]; in has_amp_in()
616 static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) in has_amp_out() argument
618 hda_nid_t nid = path->path[idx]; in has_amp_out()
635 const struct nid_path *path; in is_active_nid() local
641 snd_array_for_each(&spec->paths, n, path) { in is_active_nid()
642 if (!path->active) in is_active_nid()
645 if (!path->stream_enabled) in is_active_nid()
648 if (!(path->pin_enabled || path->pin_fixed) && in is_active_nid()
652 for (i = 0; i < path->depth; i++) { in is_active_nid()
653 if (path->path[i] == nid) { in is_active_nid()
655 path->idx[i] == idx) in is_active_nid()
774 static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, in activate_amp_out() argument
777 hda_nid_t nid = path->path[i]; in activate_amp_out()
782 static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, in activate_amp_in() argument
789 hda_nid_t nid = path->path[i]; in activate_amp_in()
800 idx = path->idx[i]; in activate_amp_in()
824 struct nid_path *path, in path_power_update() argument
830 for (i = 0; i < path->depth; i++) { in path_power_update()
831 nid = path->path[i]; in path_power_update()
879 void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, in snd_hda_activate_path() argument
885 path->active = enable; in snd_hda_activate_path()
889 path_power_update(codec, path, codec->power_save_node); in snd_hda_activate_path()
891 for (i = path->depth - 1; i >= 0; i--) { in snd_hda_activate_path()
892 hda_nid_t nid = path->path[i]; in snd_hda_activate_path()
894 if (enable && path->multi[i]) in snd_hda_activate_path()
897 path->idx[i]); in snd_hda_activate_path()
898 if (has_amp_in(codec, path, i)) in snd_hda_activate_path()
899 activate_amp_in(codec, path, i, enable, add_aamix); in snd_hda_activate_path()
900 if (has_amp_out(codec, path, i)) in snd_hda_activate_path()
901 activate_amp_out(codec, path, i, enable); in snd_hda_activate_path()
907 static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) in path_power_down_sync() argument
911 if (!(spec->power_down_unused || codec->power_save_node) || path->active) in path_power_down_sync()
913 sync_power_state_change(codec, path_power_update(codec, path, true)); in path_power_down_sync()
935 struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); in resume_path_from_idx() local
936 if (path) in resume_path_from_idx()
937 snd_hda_activate_path(codec, path, path->active, false); in resume_path_from_idx()
1021 unsigned int chs, struct nid_path *path) in add_vol_ctl() argument
1024 if (!path) in add_vol_ctl()
1026 val = path->ctls[NID_PATH_VOL_CTL]; in add_vol_ctl()
1034 static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, in get_default_ch_nums() argument
1038 if (path) { in get_default_ch_nums()
1039 hda_nid_t nid = get_amp_nid_(path->ctls[type]); in get_default_ch_nums()
1047 struct nid_path *path) in add_stereo_vol() argument
1049 int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); in add_stereo_vol()
1050 return add_vol_ctl(codec, pfx, cidx, chs, path); in add_stereo_vol()
1057 unsigned int chs, struct nid_path *path) in add_sw_ctl() argument
1062 if (!path) in add_sw_ctl()
1064 val = path->ctls[NID_PATH_MUTE_CTL]; in add_sw_ctl()
1080 int cidx, struct nid_path *path) in add_stereo_sw() argument
1082 int chs = get_default_ch_nums(codec, path, NID_PATH_MUTE_CTL); in add_stereo_sw()
1083 return add_sw_ctl(codec, pfx, cidx, chs, path); in add_stereo_sw()
1158 struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); in path_has_mixer() local
1159 return path && path->ctls[ctl_type]; in path_has_mixer()
1285 static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) in assign_out_path_ctls() argument
1292 if (!path) in assign_out_path_ctls()
1295 if (path->ctls[NID_PATH_VOL_CTL] || in assign_out_path_ctls()
1296 path->ctls[NID_PATH_MUTE_CTL]) in assign_out_path_ctls()
1299 nid = look_for_out_vol_nid(codec, path); in assign_out_path_ctls()
1307 path->ctls[NID_PATH_VOL_CTL] = val; in assign_out_path_ctls()
1310 nid = look_for_out_mute_nid(codec, path); in assign_out_path_ctls()
1321 path->ctls[NID_PATH_MUTE_CTL] = val; in assign_out_path_ctls()
1383 struct nid_path *path; in try_assign_dacs() local
1387 path = snd_hda_get_path_from_idx(codec, path_idx[i]); in try_assign_dacs()
1388 if (path) { in try_assign_dacs()
1389 badness += assign_out_path_ctls(codec, path); in try_assign_dacs()
1441 path = snd_hda_add_new_path(codec, dac, pin, -spec->mixer_nid); in try_assign_dacs()
1442 if (!path && !i && spec->mixer_nid) { in try_assign_dacs()
1444 path = snd_hda_add_new_path(codec, dac, pin, 0); in try_assign_dacs()
1446 if (!path) { in try_assign_dacs()
1451 path->active = true; in try_assign_dacs()
1452 path_idx[i] = snd_hda_get_path_idx(codec, path); in try_assign_dacs()
1453 badness += assign_out_path_ctls(codec, path); in try_assign_dacs()
1537 struct nid_path *path; in fill_multi_ios() local
1571 path = snd_hda_add_new_path(codec, dac, nid, in fill_multi_ios()
1573 if (!path) { in fill_multi_ios()
1581 snd_hda_get_path_idx(codec, path); in fill_multi_ios()
1605 path = snd_hda_get_path_from_idx(codec, spec->out_paths[cfg->line_outs + i]); in fill_multi_ios()
1606 badness += assign_out_path_ctls(codec, path); in fill_multi_ios()
1620 struct nid_path *path; in map_singles() local
1627 path = snd_hda_add_new_path(codec, dac, pins[i], in map_singles()
1629 if (!path && !i && spec->mixer_nid) in map_singles()
1630 path = snd_hda_add_new_path(codec, dac, pins[i], 0); in map_singles()
1631 if (path) { in map_singles()
1635 path->active = true; in map_singles()
1636 path_idx[i] = snd_hda_get_path_idx(codec, path); in map_singles()
1652 struct nid_path *path; in check_aamix_out_path() local
1655 path = snd_hda_get_path_from_idx(codec, path_idx); in check_aamix_out_path()
1656 if (!path || !path->depth || in check_aamix_out_path()
1657 is_nid_contained(path, spec->mixer_nid)) in check_aamix_out_path()
1659 path_dac = path->path[0]; in check_aamix_out_path()
1661 pin = path->path[path->depth - 1]; in check_aamix_out_path()
1662 path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid); in check_aamix_out_path()
1663 if (!path) { in check_aamix_out_path()
1673 path = snd_hda_add_new_path(codec, dac, pin, in check_aamix_out_path()
1676 if (!path) in check_aamix_out_path()
1679 path->active = false; /* unused as default */ in check_aamix_out_path()
1680 path->pin_fixed = true; /* static route */ in check_aamix_out_path()
1681 return snd_hda_get_path_idx(codec, path); in check_aamix_out_path()
1689 struct nid_path *path; in indep_hp_possible() local
1696 path = snd_hda_get_path_from_idx(codec, idx); in indep_hp_possible()
1697 if (!path) in indep_hp_possible()
1701 if (!spec->mixer_nid || !is_nid_contained(path, spec->mixer_nid)) in indep_hp_possible()
1708 path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); in indep_hp_possible()
1709 if (path && is_nid_contained(path, spec->mixer_nid)) in indep_hp_possible()
1713 path = snd_hda_get_path_from_idx(codec, spec->speaker_paths[i]); in indep_hp_possible()
1714 if (path && is_nid_contained(path, spec->mixer_nid)) in indep_hp_possible()
1727 struct nid_path *path; in refill_shared_dacs() local
1733 path = snd_hda_get_path_from_idx(codec, path_idx[i]); in refill_shared_dacs()
1734 if (!path) in refill_shared_dacs()
1736 dacs[i] = path->path[0]; in refill_shared_dacs()
1907 struct nid_path *path; in print_nid_path_idx() local
1909 path = snd_hda_get_path_from_idx(codec, idx); in print_nid_path_idx()
1910 if (path) in print_nid_path_idx()
1911 print_nid_path(codec, pfx, path); in print_nid_path_idx()
2071 struct nid_path *path; in parse_output_paths() local
2072 path = snd_hda_get_path_from_idx(codec, spec->out_paths[0]); in parse_output_paths()
2073 if (path) in parse_output_paths()
2074 spec->vmaster_nid = look_for_out_vol_nid(codec, path); in parse_output_paths()
2119 struct nid_path *path; in create_multi_out_ctls() local
2121 path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); in create_multi_out_ctls()
2122 if (!path) in create_multi_out_ctls()
2128 err = add_vol_ctl(codec, "Center", 0, 1, path); in create_multi_out_ctls()
2131 err = add_vol_ctl(codec, "LFE", 0, 2, path); in create_multi_out_ctls()
2135 err = add_stereo_vol(codec, name, index, path); in create_multi_out_ctls()
2142 err = add_sw_ctl(codec, "Center", 0, 1, path); in create_multi_out_ctls()
2145 err = add_sw_ctl(codec, "LFE", 0, 2, path); in create_multi_out_ctls()
2149 err = add_stereo_sw(codec, name, index, path); in create_multi_out_ctls()
2160 struct nid_path *path; in create_extra_out() local
2163 path = snd_hda_get_path_from_idx(codec, path_idx); in create_extra_out()
2164 if (!path) in create_extra_out()
2166 err = add_stereo_vol(codec, pfx, cidx, path); in create_extra_out()
2169 err = add_stereo_sw(codec, pfx, cidx, path); in create_extra_out()
2378 struct nid_path *path; in set_multi_io() local
2380 path = get_multiio_path(codec, idx); in set_multi_io()
2381 if (!path) in set_multi_io()
2384 if (path->active == output) in set_multi_io()
2389 snd_hda_activate_path(codec, path, true, aamix_default(spec)); in set_multi_io()
2393 snd_hda_activate_path(codec, path, false, aamix_default(spec)); in set_multi_io()
2395 path_power_down_sync(codec, path); in set_multi_io()
2476 mix_path->path[0] != spec->alt_dac_nid) in update_aamix_paths()
2495 struct nid_path *path; in update_output_paths() local
2499 path = snd_hda_get_path_from_idx(codec, paths[i]); in update_output_paths()
2500 if (path) in update_output_paths()
2501 snd_hda_activate_path(codec, path, path->active, in update_output_paths()
3098 struct nid_path *path; in new_analog_input() local
3105 path = snd_hda_add_new_path(codec, pin, mix_nid, 0); in new_analog_input()
3106 if (!path) in new_analog_input()
3108 print_nid_path(codec, "loopback", path); in new_analog_input()
3109 spec->loopback_paths[input_idx] = snd_hda_get_path_idx(codec, path); in new_analog_input()
3111 idx = path->idx[path->depth - 1]; in new_analog_input()
3116 path->ctls[NID_PATH_VOL_CTL] = mix_val; in new_analog_input()
3123 path->ctls[NID_PATH_MUTE_CTL] = mute_val; in new_analog_input()
3126 path->active = true; in new_analog_input()
3127 path->stream_enabled = true; /* no DAC/ADC involved */ in new_analog_input()
3134 path = snd_hda_add_new_path(codec, spec->mixer_nid, in new_analog_input()
3136 if (path) { in new_analog_input()
3137 print_nid_path(codec, "loopback-merge", path); in new_analog_input()
3138 path->active = true; in new_analog_input()
3139 path->pin_fixed = true; /* static route */ in new_analog_input()
3140 path->stream_enabled = true; /* no DAC/ADC involved */ in new_analog_input()
3142 snd_hda_get_path_idx(codec, path); in new_analog_input()
3265 struct nid_path *path; in parse_capture_source() local
3270 path = snd_hda_add_new_path(codec, pin, adc, anchor); in parse_capture_source()
3271 if (!path) in parse_capture_source()
3273 print_nid_path(codec, "input", path); in parse_capture_source()
3275 snd_hda_get_path_idx(codec, path); in parse_capture_source()
3473 struct nid_path *path; in cap_put_caller() local
3480 path = get_input_path(codec, adc_idx, i); in cap_put_caller()
3481 if (!path || !path->ctls[type]) in cap_put_caller()
3483 kcontrol->private_value = path->ctls[type]; in cap_put_caller()
3544 static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) in parse_capvol_in_path() argument
3549 path->ctls[NID_PATH_VOL_CTL] = path->ctls[NID_PATH_MUTE_CTL] = 0; in parse_capvol_in_path()
3551 if (depth >= path->depth) in parse_capvol_in_path()
3553 i = path->depth - depth - 1; in parse_capvol_in_path()
3554 nid = path->path[i]; in parse_capvol_in_path()
3555 if (!path->ctls[NID_PATH_VOL_CTL]) { in parse_capvol_in_path()
3557 path->ctls[NID_PATH_VOL_CTL] = in parse_capvol_in_path()
3560 int idx = path->idx[i]; in parse_capvol_in_path()
3563 path->ctls[NID_PATH_VOL_CTL] = in parse_capvol_in_path()
3567 if (!path->ctls[NID_PATH_MUTE_CTL]) { in parse_capvol_in_path()
3569 path->ctls[NID_PATH_MUTE_CTL] = in parse_capvol_in_path()
3572 int idx = path->idx[i]; in parse_capvol_in_path()
3575 path->ctls[NID_PATH_MUTE_CTL] = in parse_capvol_in_path()
3718 struct nid_path *path; in get_first_cap_ctl() local
3722 path = get_input_path(codec, 0, idx); in get_first_cap_ctl()
3723 if (!path) in get_first_cap_ctl()
3725 ctl = path->ctls[type]; in get_first_cap_ctl()
3729 path = get_input_path(codec, 0, i); in get_first_cap_ctl()
3730 if (path && path->ctls[type] == ctl) in get_first_cap_ctl()
3795 struct nid_path *path; in create_capture_mixers() local
3796 path = get_input_path(codec, n, i); in create_capture_mixers()
3797 if (!path) in create_capture_mixers()
3799 parse_capvol_in_path(codec, path); in create_capture_mixers()
3801 vol = path->ctls[NID_PATH_VOL_CTL]; in create_capture_mixers()
3802 else if (vol != path->ctls[NID_PATH_VOL_CTL]) { in create_capture_mixers()
3805 path->ctls[NID_PATH_VOL_CTL], HDA_INPUT)) in create_capture_mixers()
3809 sw = path->ctls[NID_PATH_MUTE_CTL]; in create_capture_mixers()
3810 else if (sw != path->ctls[NID_PATH_MUTE_CTL]) { in create_capture_mixers()
3813 path->ctls[NID_PATH_MUTE_CTL], HDA_INPUT)) in create_capture_mixers()
3858 struct nid_path *path) in look_for_boost_amp() argument
3865 if (depth >= path->depth - 1) in look_for_boost_amp()
3867 nid = path->path[depth]; in look_for_boost_amp()
3872 path->idx[depth])) { in look_for_boost_amp()
3873 val = HDA_COMPOSE_AMP_VAL(nid, 3, path->idx[depth], in look_for_boost_amp()
3893 struct nid_path *path; in parse_mic_boost() local
3906 path = get_input_path(codec, 0, i); in parse_mic_boost()
3907 if (!path) in parse_mic_boost()
3910 val = look_for_boost_amp(codec, path); in parse_mic_boost()
3921 path->ctls[NID_PATH_BOOST_CTL] = val; in parse_mic_boost()
4027 struct nid_path *path; in parse_digital() local
4038 path = snd_hda_add_new_path(codec, dig_nid, pin, 0); in parse_digital()
4039 if (!path) in parse_digital()
4041 print_nid_path(codec, "digout", path); in parse_digital()
4042 path->active = true; in parse_digital()
4043 path->pin_fixed = true; /* no jack detection */ in parse_digital()
4044 spec->digout_paths[i] = snd_hda_get_path_idx(codec, path); in parse_digital()
4066 path = snd_hda_add_new_path(codec, pin, dig_nid, 0); in parse_digital()
4067 if (path) { in parse_digital()
4068 print_nid_path(codec, "digin", path); in parse_digital()
4069 path->active = true; in parse_digital()
4070 path->pin_fixed = true; /* no jack */ in parse_digital()
4072 spec->digin_path = snd_hda_get_path_idx(codec, path); in parse_digital()
4093 struct nid_path *old_path, *path; in mux_select() local
4118 path = get_input_path(codec, adc_idx, idx); in mux_select()
4119 if (!path) in mux_select()
4121 if (path->active) in mux_select()
4123 snd_hda_activate_path(codec, path, true, false); in mux_select()
4140 struct nid_path *path; in set_path_power() local
4143 snd_array_for_each(&spec->paths, n, path) { in set_path_power()
4144 if (!path->depth) in set_path_power()
4146 if (path->path[0] == nid || in set_path_power()
4147 path->path[path->depth - 1] == nid) { in set_path_power()
4148 bool pin_old = path->pin_enabled; in set_path_power()
4149 bool stream_old = path->stream_enabled; in set_path_power()
4152 path->pin_enabled = pin_state; in set_path_power()
4154 path->stream_enabled = stream_state; in set_path_power()
4155 if ((!path->pin_fixed && path->pin_enabled != pin_old) in set_path_power()
4156 || path->stream_enabled != stream_old) { in set_path_power()
4157 last = path_power_update(codec, path, true); in set_path_power()
4288 struct nid_path *path; in add_fake_paths() local
4296 path = snd_array_new(&spec->paths); in add_fake_paths()
4297 if (!path) in add_fake_paths()
4299 memset(path, 0, sizeof(*path)); in add_fake_paths()
4300 path->depth = 2; in add_fake_paths()
4301 path->path[0] = nid; in add_fake_paths()
4302 path->path[1] = pins[i]; in add_fake_paths()
4303 path->active = true; in add_fake_paths()
4349 struct nid_path *path; in snd_hda_gen_fix_pin_power() local
4351 path = snd_array_new(&spec->paths); in snd_hda_gen_fix_pin_power()
4352 if (!path) in snd_hda_gen_fix_pin_power()
4354 memset(path, 0, sizeof(*path)); in snd_hda_gen_fix_pin_power()
4355 path->depth = 1; in snd_hda_gen_fix_pin_power()
4356 path->path[0] = pin; in snd_hda_gen_fix_pin_power()
4357 path->active = true; in snd_hda_gen_fix_pin_power()
4358 path->pin_fixed = true; in snd_hda_gen_fix_pin_power()
4359 path->stream_enabled = true; in snd_hda_gen_fix_pin_power()
4405 struct nid_path *path; in do_automute() local
4408 path = snd_hda_get_path_from_idx(codec, paths[i]); in do_automute()
4409 if (!path) in do_automute()
4411 mute_nid = get_amp_nid_(path->ctls[NID_PATH_MUTE_CTL]); in do_automute()
4992 const struct nid_path *path; in snd_hda_gen_shutup_speakers() local
5009 path = snd_hda_get_path_from_idx(codec, paths[i]); in snd_hda_gen_shutup_speakers()
5010 if (!path) in snd_hda_gen_shutup_speakers()
5012 for (p = 0; p < path->depth; p++) in snd_hda_gen_shutup_speakers()
5013 if (force_mute_output_path(codec, path->path[p])) in snd_hda_gen_shutup_speakers()
5862 struct nid_path *path; in set_output_and_unmute() local
5865 path = snd_hda_get_path_from_idx(codec, path_idx); in set_output_and_unmute()
5866 if (!path || !path->depth) in set_output_and_unmute()
5868 pin = path->path[path->depth - 1]; in set_output_and_unmute()
5870 snd_hda_activate_path(codec, path, path->active, in set_output_and_unmute()
5872 set_pin_eapd(codec, pin, path->active); in set_output_and_unmute()
5914 struct nid_path *path; in init_multi_io() local
5915 path = get_multiio_path(codec, i); in init_multi_io()
5916 if (!path) in init_multi_io()
5921 snd_hda_activate_path(codec, path, path->active, in init_multi_io()
5970 struct nid_path *path; in init_input_src() local
5980 path = get_input_path(codec, c, i); in init_input_src()
5981 if (path) { in init_input_src()
5982 bool active = path->active; in init_input_src()
5985 snd_hda_activate_path(codec, path, active, false); in init_input_src()