Lines Matching defs:alts
334 struct usb_host_interface *alts;
343 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting);
344 if (!alts)
346 altsd = get_iface_desc(alts);
348 err = snd_usb_parse_implicit_fb_quirk(chip, fmt, alts);
359 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN);
366 sync_attr = get_endpoint(alts, 1)->bmAttributes;
379 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
380 get_endpoint(alts, 1)->bSynchAddress != 0)) {
384 get_endpoint(alts, 1)->bmAttributes,
385 get_endpoint(alts, 1)->bLength,
386 get_endpoint(alts, 1)->bSynchAddress);
391 ep = get_endpoint(alts, 1)->bEndpointAddress;
392 if (get_endpoint(alts, 0)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
393 get_endpoint(alts, 0)->bSynchAddress != 0 &&
394 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) ||
395 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) {
399 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress);