Lines Matching refs:nums
241 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() argument
244 for (i = 0; i < nums; i++) in find_idx_in_nid_list()
390 int i, nums; in __parse_nid_path() local
397 nums = snd_hda_get_conn_list(codec, to_nid, &conn); in __parse_nid_path()
398 for (i = 0; i < nums; i++) { in __parse_nid_path()
414 for (i = 0; i < nums; i++) { in __parse_nid_path()
429 if (nums > 1 && get_wcaps_type(get_wcaps(codec, to_nid)) != AC_WID_AUD_MIX) in __parse_nid_path()
787 int n, nums, idx; in activate_amp_in() local
791 nums = snd_hda_get_conn_list(codec, nid, &conn); in activate_amp_in()
792 if (nums < 0) in activate_amp_in()
797 nums = 1; in activate_amp_in()
802 for (n = 0; n < nums; n++) in activate_amp_in()
808 for (n = 0; n < nums; n++) { in activate_amp_in()
1070 int nums = snd_hda_get_num_conns(codec, nid); in add_sw_ctl() local
1071 if (nums > 1) { in add_sw_ctl()
1073 val |= nums << 19; in add_sw_ctl()
3162 int nums = 0; in fill_adc_nids() local
3170 adc_nids[nums] = nid; in fill_adc_nids()
3171 if (++nums >= max_nums) in fill_adc_nids()
3174 spec->num_adc_nids = nums; in fill_adc_nids()
3177 spec->num_all_adcs = nums; in fill_adc_nids()
3178 memcpy(spec->all_adcs, spec->adc_nids, nums * sizeof(hda_nid_t)); in fill_adc_nids()
3180 return nums; in fill_adc_nids()
3191 int i, n, nums; in check_dyn_adc_switch() local
3193 nums = 0; in check_dyn_adc_switch()
3202 nums++; in check_dyn_adc_switch()
3219 } else if (nums != spec->num_adc_nids) { in check_dyn_adc_switch()
3221 nums = 0; in check_dyn_adc_switch()
3225 if (n != nums) { in check_dyn_adc_switch()
3226 spec->adc_nids[nums] = spec->adc_nids[n]; in check_dyn_adc_switch()
3229 spec->input_paths[i][nums]); in check_dyn_adc_switch()
3230 spec->input_paths[i][nums] = in check_dyn_adc_switch()
3235 nums++; in check_dyn_adc_switch()
3237 spec->num_adc_nids = nums; in check_dyn_adc_switch()
3770 int i, n, nums, err; in create_capture_mixers() local
3773 nums = 1; in create_capture_mixers()
3775 nums = spec->num_adc_nids; in create_capture_mixers()
3780 name = nums > 1 ? "Input Source" : "Capture Source"; in create_capture_mixers()
3784 knew->count = nums; in create_capture_mixers()
3787 for (n = 0; n < nums; n++) { in create_capture_mixers()
4029 int i, nums; in parse_digital() local
4033 nums = 0; in parse_digital()
4047 if (!nums) { in parse_digital()
4052 if (nums >= ARRAY_SIZE(spec->follower_dig_outs) - 1) in parse_digital()
4054 spec->follower_dig_outs[nums - 1] = dig_nid; in parse_digital()
4056 nums++; in parse_digital()
4928 int i, nums; in mute_all_mixer_nid() local
4932 nums = snd_hda_get_conn_list(codec, mix, &conn); in mute_all_mixer_nid()
4934 for (i = 0; i < nums; i++) { in mute_all_mixer_nid()
5911 int i, c, nums; in init_input_src() local
5914 nums = 1; in init_input_src()
5916 nums = spec->num_adc_nids; in init_input_src()
5918 for (c = 0; c < nums; c++) { in init_input_src()