Lines Matching refs:id
70 int id; member
122 for (p = state->map; p->id; p++) { in find_map()
123 if (p->id == unitid && in find_map()
173 for (p = state->selector_map; p->id; p++) { in check_mapped_selector_name()
174 if (p->id == unitid && index < p->count) in check_mapped_selector_name()
325 idx = snd_usb_ctrl_intf(chip) | (cval->head.id << 8); in get_ctl_value_v1()
373 idx = snd_usb_ctrl_intf(chip) | (cval->head.id << 8); in get_ctl_value_v2()
497 idx = snd_usb_ctrl_intf(chip) | (cval->head.id << 8); in snd_usb_mixer_set_ctl_value()
600 while (snd_ctl_find_id(mixer->chip->card, &kctl->id)) in snd_usb_mixer_add_control()
601 kctl->id.index++; in snd_usb_mixer_add_control()
608 list->next_id_elem = mixer->id_elems[list->id]; in snd_usb_mixer_add_control()
609 mixer->id_elems[list->id] = list; in snd_usb_mixer_add_control()
687 return sprintf(name, "Unit %d", iterm->id); in get_term_name()
720 static int __check_input_term(struct mixer_build *state, int id, in __check_input_term() argument
730 if (test_and_set_bit(id, state->termbitmap)) in __check_input_term()
733 p1 = find_audio_control_unit(state, id); in __check_input_term()
738 term->id = id; in __check_input_term()
759 term->id = id; in __check_input_term()
769 id = d->bSourceID; in __check_input_term()
788 term->id = id; in __check_input_term()
808 id = d->baSourceID[0]; in __check_input_term()
820 term->id = id; in __check_input_term()
832 static int check_input_term(struct mixer_build *state, int id, in check_input_term() argument
837 return __check_input_term(state, id, term); in check_input_term()
887 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
893 if (strcmp(kctl->id.name, "Effect Volume") == 0 || in volume_control_quirks()
894 strcmp(kctl->id.name, "Effect Feedback Volume") == 0) { in volume_control_quirks()
899 if (strstr(kctl->id.name, "Effect Return") != NULL) { in volume_control_quirks()
905 if ((strstr(kctl->id.name, "Playback Volume") != NULL) || in volume_control_quirks()
906 (strstr(kctl->id.name, "Effect Send") != NULL)) { in volume_control_quirks()
915 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
923 if (strcmp(kctl->id.name, "Effect Volume") == 0 || in volume_control_quirks()
924 strcmp(kctl->id.name, "Effect Feedback Volume") == 0) { in volume_control_quirks()
934 if (!strcmp(kctl->id.name, "PCM Playback Volume")) { in volume_control_quirks()
950 if (!strcmp(kctl->id.name, "PCM Playback Volume") && in volume_control_quirks()
959 if (!strcmp(kctl->id.name, "Mic Capture Volume")) { in volume_control_quirks()
983 if (!strcmp(kctl->id.name, "Mic Capture Volume")) { in volume_control_quirks()
1021 cval->head.id, snd_usb_ctrl_intf(cval->head.mixer->chip), in get_min_max_with_quirks()
1022 cval->control, cval->head.id); in get_min_max_with_quirks()
1130 &kcontrol->id); in mixer_ctl_feature_info()
1239 return strlcat(kctl->id.name, str, sizeof(kctl->id.name)); in append_ctl_name()
1255 if (strcmp("Speaker", kctl->id.name)) in check_no_speaker_on_headset()
1267 strlcpy(kctl->id.name, "Headphone", sizeof(kctl->id.name)); in check_no_speaker_on_headset()
1338 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in build_feature_ctl()
1342 kctl->id.name, sizeof(kctl->id.name)); in build_feature_ctl()
1356 len = get_term_name(state, iterm, kctl->id.name, in build_feature_ctl()
1357 sizeof(kctl->id.name), 1); in build_feature_ctl()
1360 kctl->id.name, in build_feature_ctl()
1361 sizeof(kctl->id.name), 1); in build_feature_ctl()
1363 snprintf(kctl->id.name, sizeof(kctl->id.name), in build_feature_ctl()
1386 strlcpy(kctl->id.name, audio_feature_info[control-1].name, in build_feature_ctl()
1387 sizeof(kctl->id.name)); in build_feature_ctl()
1418 cval->head.id, kctl->id.name, cval->channels, in build_feature_ctl()
1423 cval->head.id, kctl->id.name, cval->channels, in build_feature_ctl()
1484 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit()
1487 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit()
1699 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in build_mixer_unit_ctl()
1701 len = get_term_name(state, iterm, kctl->id.name, in build_mixer_unit_ctl()
1702 sizeof(kctl->id.name), 0); in build_mixer_unit_ctl()
1704 len = sprintf(kctl->id.name, "Mixer Source %d", in_ch + 1); in build_mixer_unit_ctl()
1708 cval->head.id, kctl->id.name, cval->channels, cval->min, cval->max); in build_mixer_unit_ctl()
1997 if (check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name))) { in build_audio_procunit()
2000 strlcpy(kctl->id.name, info->name, sizeof(kctl->id.name)); in build_audio_procunit()
2006 kctl->id.name, in build_audio_procunit()
2007 sizeof(kctl->id.name)); in build_audio_procunit()
2009 strlcpy(kctl->id.name, name, sizeof(kctl->id.name)); in build_audio_procunit()
2016 cval->head.id, kctl->id.name, cval->channels, in build_audio_procunit()
2219 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in parse_audio_selector_unit()
2226 kctl->id.name, in parse_audio_selector_unit()
2227 sizeof(kctl->id.name)); in parse_audio_selector_unit()
2231 kctl->id.name, sizeof(kctl->id.name), 0); in parse_audio_selector_unit()
2234 strlcpy(kctl->id.name, "USB", sizeof(kctl->id.name)); in parse_audio_selector_unit()
2246 cval->head.id, kctl->id.name, desc->bNrInPins); in parse_audio_selector_unit()
2341 for (map = usbmix_ctl_maps; map->id; map++) { in snd_usb_mixer_controls()
2342 if (map->id == state.chip->usb_id) { in snd_usb_mixer_controls()
2361 state.oterm.id = desc->bTerminalID; in snd_usb_mixer_controls()
2374 state.oterm.id = desc->bTerminalID; in snd_usb_mixer_controls()
2400 &list->kctl->id); in snd_usb_mixer_notify_id()
2410 "channels=%i, type=\"%s\"\n", cval->head.id, in snd_usb_mixer_dump_cval()
2434 snd_iprintf(buffer, " Unit: %i\n", list->id); in snd_usb_mixer_proc_read()
2438 list->kctl->id.name, in snd_usb_mixer_proc_read()
2439 list->kctl->id.index); in snd_usb_mixer_proc_read()
2488 &info->head.kctl->id); in snd_usb_mixer_interrupt_v2()
2726 int id, err; in snd_usb_mixer_resume() local
2730 for (id = 0; id < MAX_ID_ELEMS; id++) { in snd_usb_mixer_resume()
2731 for (list = mixer->id_elems[id]; list; in snd_usb_mixer_resume()
2751 list->id = unitid; in snd_usb_mixer_elem_init_std()