Lines Matching refs:iterm
658 static int get_term_name(struct snd_usb_audio *chip, struct usb_audio_term *iterm, in get_term_name() argument
664 if (iterm->name) { in get_term_name()
665 len = snd_usb_copy_string_desc(chip, iterm->name, in get_term_name()
672 if (iterm->type >> 16) { in get_term_name()
675 switch (iterm->type >> 16) { in get_term_name()
689 return sprintf(name, "Unit %d", iterm->id); in get_term_name()
693 switch (iterm->type & 0xff00) { in get_term_name()
709 if (names->type == iterm->type) { in get_term_name()
1653 struct usb_audio_term *iterm, in __build_feature_ctl() argument
1739 if (iterm) in __build_feature_ctl()
1740 len = get_term_name(mixer->chip, iterm, in __build_feature_ctl()
1825 struct usb_audio_term *iterm, int unitid, in build_feature_ctl() argument
1832 iterm, &state->oterm, unitid, nameid, readonly_mask); in build_feature_ctl()
1989 struct usb_audio_term iterm; in parse_audio_feature_unit() local
2025 err = check_input_term(state, hdr->bSourceID, &iterm); in parse_audio_feature_unit()
2069 &iterm, unitid, 0); in parse_audio_feature_unit()
2072 &iterm, unitid, 0); in parse_audio_feature_unit()
2107 &iterm, unitid, ch_read_only); in parse_audio_feature_unit()
2110 &iterm, unitid, in parse_audio_feature_unit()
2157 int unitid, struct usb_audio_term *iterm) in build_mixer_unit_ctl() argument
2197 len = get_term_name(state->chip, iterm, kctl->id.name, in build_mixer_unit_ctl()
2212 struct usb_audio_term iterm; in parse_audio_input_terminal() local
2229 check_input_term(state, term_id, &iterm); in parse_audio_input_terminal()
2232 if ((iterm.type & 0xff00) != 0x0100 && in parse_audio_input_terminal()
2234 build_connector_control(state->mixer, state->map, &iterm, true); in parse_audio_input_terminal()
2246 struct usb_audio_term iterm; in parse_audio_mixer_unit() local
2270 err = check_input_term(state, desc->baSourceID[pin], &iterm); in parse_audio_mixer_unit()
2273 num_ins += iterm.channels; in parse_audio_mixer_unit()
2291 unitid, &iterm); in parse_audio_mixer_unit()
2795 struct usb_audio_term iterm; in parse_audio_selector_unit() local
2803 if (! len && check_input_term(state, desc->baSourceID[i], &iterm) >= 0) in parse_audio_selector_unit()
2804 len = get_term_name(state->chip, &iterm, namelist[i], in parse_audio_selector_unit()
3198 struct usb_audio_term iterm, oterm; in snd_usb_mixer_controls_badd() local
3201 memset(&iterm, 0, sizeof(iterm)); in snd_usb_mixer_controls_badd()
3202 iterm.id = UAC3_BADD_IT_ID4; in snd_usb_mixer_controls_badd()
3203 iterm.type = UAC_BIDIR_TERMINAL_HEADSET; in snd_usb_mixer_controls_badd()
3204 build_connector_control(mixer, map->map, &iterm, true); in snd_usb_mixer_controls_badd()