Lines Matching refs:name
74 int name; member
133 if (!p || !p->name) in check_mapped_name()
137 return strlcpy(buf, p->name, buflen); in check_mapped_name()
148 if (!p || p->name || p->dB) in check_ignored_ctl()
612 char *name; member
654 unsigned char *name, int maxlen, int term_only) in get_term_name() argument
658 if (iterm->name) in get_term_name()
659 return snd_usb_copy_string_desc(state, iterm->name, in get_term_name()
660 name, maxlen); in get_term_name()
668 strcpy(name, "Selector"); in get_term_name()
671 strcpy(name, "Process Unit"); in get_term_name()
674 strcpy(name, "Ext Unit"); in get_term_name()
677 strcpy(name, "Mixer"); in get_term_name()
680 return sprintf(name, "Unit %d", iterm->id); in get_term_name()
686 strcpy(name, "PCM"); in get_term_name()
689 strcpy(name, "Mic"); in get_term_name()
692 strcpy(name, "Headset"); in get_term_name()
695 strcpy(name, "Phone"); in get_term_name()
701 strcpy(name, names->name); in get_term_name()
702 return strlen(names->name); in get_term_name()
730 term->name = d->iTerminal; in check_input_term()
747 term->name = d->iTerminal; in check_input_term()
761 term->name = uac_mixer_unit_iMixer(d); in check_input_term()
773 term->name = uac_selector_unit_iSelector(d); in check_input_term()
798 term->name = uac_processing_unit_iProcessing(d, state->mixer->protocol); in check_input_term()
805 term->name = d->iClockSource; in check_input_term()
821 const char *name; member
862 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
868 if (strcmp(kctl->id.name, "Effect Volume") == 0 || in volume_control_quirks()
869 strcmp(kctl->id.name, "Effect Feedback Volume") == 0) { in volume_control_quirks()
874 if (strstr(kctl->id.name, "Effect Return") != NULL) { in volume_control_quirks()
880 if ((strstr(kctl->id.name, "Playback Volume") != NULL) || in volume_control_quirks()
881 (strstr(kctl->id.name, "Effect Send") != NULL)) { in volume_control_quirks()
890 if (strcmp(kctl->id.name, "Effect Duration") == 0) { in volume_control_quirks()
898 if (strcmp(kctl->id.name, "Effect Volume") == 0 || in volume_control_quirks()
899 strcmp(kctl->id.name, "Effect Feedback Volume") == 0) { in volume_control_quirks()
917 if (!strcmp(kctl->id.name, "PCM Playback Volume") && in volume_control_quirks()
926 if (!strcmp(kctl->id.name, "Mic Capture Volume")) { in volume_control_quirks()
950 if (!strcmp(kctl->id.name, "Mic Capture Volume")) { in volume_control_quirks()
1178 .name = "", /* will be filled later manually */
1187 .name = "", /* will be filled later manually */
1204 return strlcat(kctl->id.name, str, sizeof(kctl->id.name)); in append_ctl_name()
1220 if (strcmp("Speaker", kctl->id.name)) in check_no_speaker_on_headset()
1232 strlcpy(kctl->id.name, "Headphone", sizeof(kctl->id.name)); in check_no_speaker_on_headset()
1303 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in build_feature_ctl()
1307 kctl->id.name, sizeof(kctl->id.name)); in build_feature_ctl()
1321 len = get_term_name(state, iterm, kctl->id.name, in build_feature_ctl()
1322 sizeof(kctl->id.name), 1); in build_feature_ctl()
1325 kctl->id.name, in build_feature_ctl()
1326 sizeof(kctl->id.name), 1); in build_feature_ctl()
1328 snprintf(kctl->id.name, sizeof(kctl->id.name), in build_feature_ctl()
1351 strlcpy(kctl->id.name, audio_feature_info[control-1].name, in build_feature_ctl()
1352 sizeof(kctl->id.name)); in build_feature_ctl()
1383 cval->head.id, kctl->id.name, cval->channels, in build_feature_ctl()
1388 cval->head.id, kctl->id.name, cval->channels, in build_feature_ctl()
1399 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; in parse_clock_source_unit() local
1447 name, sizeof(name)); in parse_clock_source_unit()
1449 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit()
1450 "%s Validity", name); in parse_clock_source_unit()
1452 snprintf(kctl->id.name, sizeof(kctl->id.name), in parse_clock_source_unit()
1664 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in build_mixer_unit_ctl()
1666 len = get_term_name(state, iterm, kctl->id.name, in build_mixer_unit_ctl()
1667 sizeof(kctl->id.name), 0); in build_mixer_unit_ctl()
1669 len = sprintf(kctl->id.name, "Mixer Source %d", in_ch + 1); in build_mixer_unit_ctl()
1673 cval->head.id, kctl->id.name, cval->channels, cval->min, cval->max); in build_mixer_unit_ctl()
1772 .name = "", /* will be filled later */
1790 char *name; member
1874 char *name) in build_audio_procunit() argument
1894 usb_audio_err(state->chip, "invalid %s descriptor (id %d)\n", name, unitid); in build_audio_procunit()
1955 if (check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name))) { in build_audio_procunit()
1957 } else if (info->name) { in build_audio_procunit()
1958 strlcpy(kctl->id.name, info->name, sizeof(kctl->id.name)); in build_audio_procunit()
1964 kctl->id.name, in build_audio_procunit()
1965 sizeof(kctl->id.name)); in build_audio_procunit()
1967 strlcpy(kctl->id.name, name, sizeof(kctl->id.name)); in build_audio_procunit()
1974 cval->head.id, kctl->id.name, cval->channels, in build_audio_procunit()
2060 .name = "", /* will be filled later */
2175 len = check_mapped_name(map, kctl->id.name, sizeof(kctl->id.name)); in parse_audio_selector_unit()
2182 kctl->id.name, in parse_audio_selector_unit()
2183 sizeof(kctl->id.name)); in parse_audio_selector_unit()
2187 kctl->id.name, sizeof(kctl->id.name), 0); in parse_audio_selector_unit()
2190 strlcpy(kctl->id.name, "USB", sizeof(kctl->id.name)); in parse_audio_selector_unit()
2202 cval->head.id, kctl->id.name, desc->bNrInPins); in parse_audio_selector_unit()
2319 state.oterm.name = desc->iTerminal; in snd_usb_mixer_controls()
2332 state.oterm.name = desc->iTerminal; in snd_usb_mixer_controls()
2394 list->kctl->id.name, in snd_usb_mixer_proc_read()