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()
1651 struct usb_audio_term *iterm, in __build_feature_ctl() argument
1737 if (iterm) in __build_feature_ctl()
1738 len = get_term_name(mixer->chip, iterm, in __build_feature_ctl()
1823 struct usb_audio_term *iterm, int unitid, in build_feature_ctl() argument
1830 iterm, &state->oterm, unitid, nameid, readonly_mask); in build_feature_ctl()
1989 struct usb_audio_term iterm; in parse_audio_feature_unit() local
2018 err = check_input_term(state, hdr->bSourceID, &iterm); in parse_audio_feature_unit()
2062 &iterm, unitid, 0); in parse_audio_feature_unit()
2065 &iterm, unitid, 0); in parse_audio_feature_unit()
2100 &iterm, unitid, ch_read_only); in parse_audio_feature_unit()
2103 &iterm, unitid, in parse_audio_feature_unit()
2150 int unitid, struct usb_audio_term *iterm) in build_mixer_unit_ctl() argument
2190 len = get_term_name(state->chip, iterm, kctl->id.name, in build_mixer_unit_ctl()
2204 struct usb_audio_term iterm; in parse_audio_input_terminal() local
2221 check_input_term(state, term_id, &iterm); in parse_audio_input_terminal()
2224 if ((iterm.type & 0xff00) != 0x0100 && in parse_audio_input_terminal()
2226 build_connector_control(state->mixer, state->map, &iterm, true); in parse_audio_input_terminal()
2238 struct usb_audio_term iterm; in parse_audio_mixer_unit() local
2262 err = check_input_term(state, desc->baSourceID[pin], &iterm); in parse_audio_mixer_unit()
2265 num_ins += iterm.channels; in parse_audio_mixer_unit()
2283 unitid, &iterm); in parse_audio_mixer_unit()
2783 struct usb_audio_term iterm; in parse_audio_selector_unit() local
2791 if (! len && check_input_term(state, desc->baSourceID[i], &iterm) >= 0) in parse_audio_selector_unit()
2792 len = get_term_name(state->chip, &iterm, namelist[i], in parse_audio_selector_unit()
3186 struct usb_audio_term iterm, oterm; in snd_usb_mixer_controls_badd() local
3189 memset(&iterm, 0, sizeof(iterm)); in snd_usb_mixer_controls_badd()
3190 iterm.id = UAC3_BADD_IT_ID4; in snd_usb_mixer_controls_badd()
3191 iterm.type = UAC_BIDIR_TERMINAL_HEADSET; in snd_usb_mixer_controls_badd()
3192 build_connector_control(mixer, map->map, &iterm, true); in snd_usb_mixer_controls_badd()