Lines Matching refs:alts
452 struct usb_host_interface *alts, in snd_usb_add_endpoint() argument
458 if (WARN_ON(!alts)) in snd_usb_add_endpoint()
465 ep->iface == alts->desc.bInterfaceNumber && in snd_usb_add_endpoint()
466 ep->altsetting == alts->desc.bAlternateSetting) { in snd_usb_add_endpoint()
487 ep->iface = alts->desc.bInterfaceNumber; in snd_usb_add_endpoint()
488 ep->altsetting = alts->desc.bAlternateSetting; in snd_usb_add_endpoint()
498 if (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_add_endpoint()
499 get_endpoint(alts, 1)->bRefresh >= 1 && in snd_usb_add_endpoint()
500 get_endpoint(alts, 1)->bRefresh <= 9) in snd_usb_add_endpoint()
501 ep->syncinterval = get_endpoint(alts, 1)->bRefresh; in snd_usb_add_endpoint()
504 else if (get_endpoint(alts, 1)->bInterval >= 1 && in snd_usb_add_endpoint()
505 get_endpoint(alts, 1)->bInterval <= 16) in snd_usb_add_endpoint()
506 ep->syncinterval = get_endpoint(alts, 1)->bInterval - 1; in snd_usb_add_endpoint()
510 ep->syncmaxsize = le16_to_cpu(get_endpoint(alts, 1)->wMaxPacketSize); in snd_usb_add_endpoint()