Lines Matching defs:term
632 static int check_input_term(struct mixer_build *state, int id, struct usb_audio_term *term)
637 memset(term, 0, sizeof(*term));
640 term->id = id;
645 term->type = le16_to_cpu(d->wTerminalType);
646 term->channels = d->bNrChannels;
647 term->chconfig = le16_to_cpu(d->wChannelConfig);
648 term->name = d->iTerminal;
651 term->type = le16_to_cpu(d->wTerminalType);
652 term->channels = d->bNrChannels;
653 term->chconfig = le32_to_cpu(d->bmChannelConfig);
654 term->name = d->iTerminal;
657 err = check_input_term(state, d->bCSourceID, term);
670 term->type = d->bDescriptorSubtype << 16; /* virtual type */
671 term->channels = uac_mixer_unit_bNrChannels(d);
672 term->chconfig = uac_mixer_unit_wChannelConfig(d, state->mixer->protocol);
673 term->name = uac_mixer_unit_iMixer(d);
680 if (check_input_term(state, d->baSourceID[0], term) < 0)
682 term->type = d->bDescriptorSubtype << 16; /* virtual type */
683 term->id = id;
684 term->name = uac_selector_unit_iSelector(d);
694 term->type = d->bDescriptorSubtype << 16; /* virtual type */
695 term->channels = uac_processing_unit_bNrChannels(d);
696 term->chconfig = uac_processing_unit_wChannelConfig(d, state->mixer->protocol);
697 term->name = uac_processing_unit_iProcessing(d, state->mixer->protocol);
702 term->type = d->bDescriptorSubtype << 16; /* virtual type */
703 term->id = id;
704 term->name = d->iClockSource;