Lines Matching refs:term

776 			      struct usb_audio_term *term);
779 struct usb_audio_term *term, in parse_term_uac1_iterm_unit() argument
784 term->type = le16_to_cpu(d->wTerminalType); in parse_term_uac1_iterm_unit()
785 term->channels = d->bNrChannels; in parse_term_uac1_iterm_unit()
786 term->chconfig = le16_to_cpu(d->wChannelConfig); in parse_term_uac1_iterm_unit()
787 term->name = d->iTerminal; in parse_term_uac1_iterm_unit()
792 struct usb_audio_term *term, in parse_term_uac2_iterm_unit() argument
799 err = __check_input_term(state, d->bCSourceID, term); in parse_term_uac2_iterm_unit()
806 term->id = id; in parse_term_uac2_iterm_unit()
807 term->type = le16_to_cpu(d->wTerminalType); in parse_term_uac2_iterm_unit()
808 term->channels = d->bNrChannels; in parse_term_uac2_iterm_unit()
809 term->chconfig = le32_to_cpu(d->bmChannelConfig); in parse_term_uac2_iterm_unit()
810 term->name = d->iTerminal; in parse_term_uac2_iterm_unit()
815 struct usb_audio_term *term, in parse_term_uac3_iterm_unit() argument
822 err = __check_input_term(state, d->bCSourceID, term); in parse_term_uac3_iterm_unit()
829 term->id = id; in parse_term_uac3_iterm_unit()
830 term->type = le16_to_cpu(d->wTerminalType); in parse_term_uac3_iterm_unit()
835 term->channels = err; in parse_term_uac3_iterm_unit()
838 term->chconfig = 0; in parse_term_uac3_iterm_unit()
840 term->name = le16_to_cpu(d->wTerminalDescrStr); in parse_term_uac3_iterm_unit()
845 struct usb_audio_term *term, in parse_term_mixer_unit() argument
856 term->type = UAC3_MIXER_UNIT << 16; /* virtual type */ in parse_term_mixer_unit()
857 term->channels = err; in parse_term_mixer_unit()
859 term->chconfig = uac_mixer_unit_wChannelConfig(d, protocol); in parse_term_mixer_unit()
860 term->name = uac_mixer_unit_iMixer(d); in parse_term_mixer_unit()
866 struct usb_audio_term *term, in parse_term_selector_unit() argument
873 err = __check_input_term(state, d->baSourceID[0], term); in parse_term_selector_unit()
876 term->type = UAC3_SELECTOR_UNIT << 16; /* virtual type */ in parse_term_selector_unit()
877 term->id = id; in parse_term_selector_unit()
879 term->name = uac_selector_unit_iSelector(d); in parse_term_selector_unit()
884 struct usb_audio_term *term, in parse_term_proc_unit() argument
893 err = __check_input_term(state, d->baSourceID[0], term); in parse_term_proc_unit()
898 term->type = vtype << 16; /* virtual type */ in parse_term_proc_unit()
899 term->id = id; in parse_term_proc_unit()
904 if (!term->channels) { in parse_term_proc_unit()
905 term->channels = uac_processing_unit_bNrChannels(d); in parse_term_proc_unit()
906 term->chconfig = uac_processing_unit_wChannelConfig(d, protocol); in parse_term_proc_unit()
908 term->name = uac_processing_unit_iProcessing(d, protocol); in parse_term_proc_unit()
913 struct usb_audio_term *term, in parse_term_effect_unit() argument
919 err = __check_input_term(state, d->bSourceID, term); in parse_term_effect_unit()
922 term->type = UAC3_EFFECT_UNIT << 16; /* virtual type */ in parse_term_effect_unit()
923 term->id = id; in parse_term_effect_unit()
928 struct usb_audio_term *term, in parse_term_uac2_clock_source() argument
933 term->type = UAC3_CLOCK_SOURCE << 16; /* virtual type */ in parse_term_uac2_clock_source()
934 term->id = id; in parse_term_uac2_clock_source()
935 term->name = d->iClockSource; in parse_term_uac2_clock_source()
940 struct usb_audio_term *term, in parse_term_uac3_clock_source() argument
945 term->type = UAC3_CLOCK_SOURCE << 16; /* virtual type */ in parse_term_uac3_clock_source()
946 term->id = id; in parse_term_uac3_clock_source()
947 term->name = le16_to_cpu(d->wClockSourceStr); in parse_term_uac3_clock_source()
958 struct usb_audio_term *term) in __check_input_term() argument
976 term->id = id; in __check_input_term()
989 return parse_term_uac1_iterm_unit(state, term, p1, id); in __check_input_term()
991 return parse_term_uac2_iterm_unit(state, term, p1, id); in __check_input_term()
993 return parse_term_uac3_iterm_unit(state, term, p1, id); in __check_input_term()
997 return parse_term_mixer_unit(state, term, p1, id); in __check_input_term()
1003 return parse_term_selector_unit(state, term, p1, id); in __check_input_term()
1007 return parse_term_proc_unit(state, term, p1, id, in __check_input_term()
1011 return parse_term_effect_unit(state, term, p1, id); in __check_input_term()
1015 return parse_term_proc_unit(state, term, p1, id, in __check_input_term()
1018 return parse_term_uac2_clock_source(state, term, p1, id); in __check_input_term()
1020 return parse_term_uac3_clock_source(state, term, p1, id); in __check_input_term()
1030 struct usb_audio_term *term) in check_input_term() argument
1032 memset(term, 0, sizeof(*term)); in check_input_term()
1034 return __check_input_term(state, id, term); in check_input_term()
1842 struct usb_audio_term *term, in get_connector_control_name() argument
1845 int name_len = get_term_name(mixer->chip, term, name, name_size, 0); in get_connector_control_name()
1873 struct usb_audio_term *term, bool is_input) in build_connector_control() argument
1879 map = find_map(imap, term->id, 0); in build_connector_control()
1886 snd_usb_mixer_elem_init_std(&cval->head, mixer, term->id); in build_connector_control()
1920 get_connector_control_name(mixer, term, is_input, kctl->id.name, in build_connector_control()