Lines Matching refs:alts
142 struct usb_host_interface *alts,
150 if (get_iface_desc(alts)->bNumEndpoints < 1)
152 ep = get_endpoint(alts, 0)->bEndpointAddress;
169 struct usb_host_interface *alts,
194 struct usb_host_interface *alts,
204 return init_pitch_v1(chip, iface, alts, fmt);
207 return init_pitch_v2(chip, iface, alts, fmt);
289 struct usb_host_interface **alts,
299 *alts = &iface->altsetting[altsetting];
300 altsd = get_iface_desc(*alts);
307 epd = get_endpoint(*alts, 0);
324 struct usb_host_interface *alts;
397 &alts, &ep) >= 0) {
410 alts = &iface->altsetting[1];
414 alts, ep, !subs->direction,
429 struct usb_host_interface *alts,
484 if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_ISOC ||
485 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
486 get_endpoint(alts, 1)->bSynchAddress != 0)) {
490 get_endpoint(alts, 1)->bmAttributes,
491 get_endpoint(alts, 1)->bLength,
492 get_endpoint(alts, 1)->bSynchAddress);
497 ep = get_endpoint(alts, 1)->bEndpointAddress;
498 if (get_endpoint(alts, 0)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
499 get_endpoint(alts, 0)->bSynchAddress != 0 &&
500 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) ||
501 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) {
505 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress);
511 implicit_fb = (get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_USAGE_MASK)
515 alts, ep, !subs->direction,
539 struct usb_host_interface *alts;
547 alts = usb_altnum_to_altsetting(iface, fmt->altsetting);
548 if (WARN_ON(!alts))
550 altsd = get_iface_desc(alts);
574 if (iface->cur_altsetting != alts) {
594 alts, fmt->endpoint, subs->direction,
600 err = set_sync_endpoint(subs, fmt, dev, alts, altsd);
604 err = snd_usb_init_pitch(subs->stream->chip, fmt->iface, alts, fmt);
907 struct usb_host_interface *alts;
935 alts = &iface->altsetting[subs->cur_audiofmt->altset_idx];
938 alts,