Lines Matching refs:alts
316 struct usb_host_interface *alts;
325 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting);
326 if (!alts)
328 altsd = get_iface_desc(alts);
330 err = snd_usb_parse_implicit_fb_quirk(chip, fmt, alts);
341 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN);
348 sync_attr = get_endpoint(alts, 1)->bmAttributes;
361 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
362 get_endpoint(alts, 1)->bSynchAddress != 0)) {
366 get_endpoint(alts, 1)->bmAttributes,
367 get_endpoint(alts, 1)->bLength,
368 get_endpoint(alts, 1)->bSynchAddress);
373 ep = get_endpoint(alts, 1)->bEndpointAddress;
374 if (get_endpoint(alts, 0)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
375 get_endpoint(alts, 0)->bSynchAddress != 0 &&
376 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) ||
377 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) {
381 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress);