Home
last modified time | relevance | path

Searched refs:get_endpoint (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/sound/usb/
Dhelper.c114 if (get_endpoint(alts, 0)->bInterval >= 1 && in snd_usb_parse_datainterval()
115 get_endpoint(alts, 0)->bInterval <= 4) in snd_usb_parse_datainterval()
116 return get_endpoint(alts, 0)->bInterval - 1; in snd_usb_parse_datainterval()
Dpcm.c152 ep = get_endpoint(alts, 0)->bEndpointAddress; in init_pitch_v1()
307 epd = get_endpoint(*alts, 0); in search_roland_implicit_fb()
484 if ((get_endpoint(alts, 1)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != USB_ENDPOINT_XFER_ISOC || in set_sync_endpoint()
485 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in set_sync_endpoint()
486 get_endpoint(alts, 1)->bSynchAddress != 0)) { in set_sync_endpoint()
490 get_endpoint(alts, 1)->bmAttributes, in set_sync_endpoint()
491 get_endpoint(alts, 1)->bLength, in set_sync_endpoint()
492 get_endpoint(alts, 1)->bSynchAddress); in set_sync_endpoint()
497 ep = get_endpoint(alts, 1)->bEndpointAddress; in set_sync_endpoint()
498 if (get_endpoint(alts, 0)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in set_sync_endpoint()
[all …]
Dstream.c689 fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; in audio_format_alloc_init()
690 fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; in audio_format_alloc_init()
693 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init()
884 le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_get_audioformat_uac3()
1122 le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == 0) in __snd_usb_parse_audio_interface()
1125 if ((get_endpoint(alts, 0)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != in __snd_usb_parse_audio_interface()
1129 stream = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN) ? in __snd_usb_parse_audio_interface()
1167 le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == in __snd_usb_parse_audio_interface()
Dendpoint.c508 if (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_add_endpoint()
509 get_endpoint(alts, 1)->bRefresh >= 1 && in snd_usb_add_endpoint()
510 get_endpoint(alts, 1)->bRefresh <= 9) in snd_usb_add_endpoint()
511 ep->syncinterval = get_endpoint(alts, 1)->bRefresh; in snd_usb_add_endpoint()
514 else if (get_endpoint(alts, 1)->bInterval >= 1 && in snd_usb_add_endpoint()
515 get_endpoint(alts, 1)->bInterval <= 16) in snd_usb_add_endpoint()
516 ep->syncinterval = get_endpoint(alts, 1)->bInterval - 1; in snd_usb_add_endpoint()
520 ep->syncmaxsize = le16_to_cpu(get_endpoint(alts, 1)->wMaxPacketSize); in snd_usb_add_endpoint()
Dhelper.h22 #define get_endpoint(alt,ep) (&(alt)->endpoint[ep].desc) macro
Dmidi.c2002 !((get_endpoint(hostif, 0)->bmAttributes & in snd_usbmidi_switch_roland_altsetting()
2004 (get_endpoint(hostif, 1)->bmAttributes & in snd_usbmidi_switch_roland_altsetting()
2044 epd = get_endpoint(hostif, i); in snd_usbmidi_detect_endpoints()
2198 epd = get_endpoint(hostif, 0); in snd_usbmidi_create_endpoints_midiman()
2203 epd = get_endpoint(hostif, 2); in snd_usbmidi_create_endpoints_midiman()
2209 epd = get_endpoint(hostif, 4); in snd_usbmidi_create_endpoints_midiman()
2218 ep_info.out_ep = get_endpoint(hostif, 2)->bEndpointAddress & in snd_usbmidi_create_endpoints_midiman()
2227 ep_info.in_ep = get_endpoint(hostif, 0)->bEndpointAddress & in snd_usbmidi_create_endpoints_midiman()
2229 ep_info.in_interval = get_endpoint(hostif, 0)->bInterval; in snd_usbmidi_create_endpoints_midiman()
2237 ep_info.out_ep = get_endpoint(hostif, 4)->bEndpointAddress & in snd_usbmidi_create_endpoints_midiman()
Dquirks.c182 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_fixed_stream_quirk()
221 epd = get_endpoint(alts, 0); in create_auto_pcm_quirk()
336 epd = get_endpoint(alts, 0); in create_auto_midi_quirk()
469 fp->endpoint = get_endpoint(alts, 0)->bEndpointAddress; in create_uaxx_quirk()
470 fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; in create_uaxx_quirk()
472 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_uaxx_quirk()
Dclock.c511 ep = get_endpoint(alts, 0)->bEndpointAddress; in set_sample_rate_v1()
Dmixer.c3026 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd()
3027 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
3455 ep = get_endpoint(mixer->hostif, 0); in snd_usb_mixer_status_create()
Dmixer_quirks.c1523 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()