Home
last modified time | relevance | path

Searched refs:alts (Results 1 – 15 of 15) sorted by relevance

/sound/usb/
Dimplicit.c85 const struct usb_host_interface *alts) in add_implicit_fb_sync_ep() argument
89 if (!alts) { in add_implicit_fb_sync_ep()
93 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep()
98 fmt->sync_altsetting = alts->desc.bAlternateSetting; in add_implicit_fb_sync_ep()
115 struct usb_host_interface *alts; in add_generic_uac2_implicit_fb() local
118 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb()
119 if (!alts) in add_generic_uac2_implicit_fb()
121 if (alts->desc.bInterfaceClass != USB_CLASS_AUDIO || in add_generic_uac2_implicit_fb()
122 alts->desc.bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING || in add_generic_uac2_implicit_fb()
123 alts->desc.bInterfaceProtocol != UAC_VERSION_2 || in add_generic_uac2_implicit_fb()
[all …]
Dstream.c574 struct usb_host_interface *alts, in parse_uac_endpoint_attributes() argument
580 struct usb_interface_descriptor *altsd = get_iface_desc(alts); in parse_uac_endpoint_attributes()
583 …csep = snd_usb_find_desc(alts->endpoint[0].extra, alts->endpoint[0].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
587 …csep = snd_usb_find_desc(alts->endpoint[1].extra, alts->endpoint[1].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
595 csep = snd_usb_find_desc(alts->extra, alts->extralen, NULL, USB_DT_CS_ENDPOINT); in parse_uac_endpoint_attributes()
676 struct usb_host_interface *alts, in audio_format_alloc_init() argument
689 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()
691 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in audio_format_alloc_init()
693 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in audio_format_alloc_init()
[all …]
Dquirks.c94 struct usb_host_interface *alts; in create_standard_audio_quirk() local
98 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
99 altsd = get_iface_desc(alts); in create_standard_audio_quirk()
154 struct usb_host_interface *alts; in create_fixed_stream_quirk() local
183 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
184 altsd = get_iface_desc(alts); in create_fixed_stream_quirk()
193 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in create_fixed_stream_quirk()
195 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, fp->ep_idx)->wMaxPacketSize); in create_fixed_stream_quirk()
219 struct usb_host_interface *alts; in create_auto_pcm_quirk() local
235 alts = &iface->altsetting[1]; in create_auto_pcm_quirk()
[all …]
Dhelper.c107 struct usb_host_interface *alts) in snd_usb_parse_datainterval() argument
114 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()
Dformat.c310 struct usb_host_interface *alts; in focusrite_valid_sample_rate() local
318 alts = &iface->altsetting[fp->altset_idx]; in focusrite_valid_sample_rate()
319 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, in focusrite_valid_sample_rate()
473 struct usb_host_interface *alts; in validate_sample_rate_table_v2v3() local
486 alts = snd_usb_get_host_interface(chip, fp->iface, fp->altsetting); in validate_sample_rate_table_v2v3()
487 if (!alts) in validate_sample_rate_table_v2v3()
492 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3()
496 alts->extra, alts->extralen, NULL, UAC_AS_GENERAL); in validate_sample_rate_table_v2v3()
Dpcm.c318 struct usb_host_interface *alts; in snd_usb_audioformat_set_sync_ep() local
327 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting); in snd_usb_audioformat_set_sync_ep()
328 if (!alts) in snd_usb_audioformat_set_sync_ep()
330 altsd = get_iface_desc(alts); in snd_usb_audioformat_set_sync_ep()
332 err = snd_usb_parse_implicit_fb_quirk(chip, fmt, alts); in snd_usb_audioformat_set_sync_ep()
343 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_audioformat_set_sync_ep()
350 sync_attr = get_endpoint(alts, 1)->bmAttributes; in snd_usb_audioformat_set_sync_ep()
363 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_audioformat_set_sync_ep()
364 get_endpoint(alts, 1)->bSynchAddress != 0)) { in snd_usb_audioformat_set_sync_ep()
368 get_endpoint(alts, 1)->bmAttributes, in snd_usb_audioformat_set_sync_ep()
[all …]
Dcard.c194 struct usb_host_interface *alts; in snd_usb_create_stream() local
204 alts = &iface->altsetting[0]; in snd_usb_create_stream()
205 altsd = get_iface_desc(alts); in snd_usb_create_stream()
220 alts = &iface->altsetting[0]; in snd_usb_create_stream()
221 altsd = get_iface_desc(alts); in snd_usb_create_stream()
827 struct usb_host_interface *alts; in usb_audio_probe() local
831 alts = &intf->altsetting[0]; in usb_audio_probe()
832 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
922 chip->ctrl_intf = alts; in usb_audio_probe()
Dimplicit.h7 struct usb_host_interface *alts);
Dhelper.h15 struct usb_host_interface *alts);
Dusbaudio.h235 struct usb_host_interface *alts,
Dcard.h222 struct usb_host_interface *alts,
Dendpoint.c707 struct usb_host_interface *alts; in endpoint_set_syncinterval() local
710 alts = snd_usb_get_host_interface(chip, ep->iface, ep->altsetting); in endpoint_set_syncinterval()
711 if (!alts) in endpoint_set_syncinterval()
714 desc = get_endpoint(alts, ep->ep_idx); in endpoint_set_syncinterval()
Dmixer.c3077 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd() local
3102 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd()
3103 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd()
3109 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd()
3110 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
Dmixer_quirks.c1641 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local
1660 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get()
1661 if (get_iface_desc(alts)->bNumEndpoints < 1) { in snd_microii_spdif_default_get()
1665 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
/sound/usb/misc/
Dua101.c457 struct usb_host_interface *alts; in enable_iso_interface() local
459 alts = ua->intf[intf_index]->cur_altsetting; in enable_iso_interface()
460 if (alts->desc.bAlternateSetting != 1) { in enable_iso_interface()
462 alts->desc.bInterfaceNumber, 1); in enable_iso_interface()
475 struct usb_host_interface *alts; in disable_iso_interface() local
480 alts = ua->intf[intf_index]->cur_altsetting; in disable_iso_interface()
481 if (alts->desc.bAlternateSetting != 0) { in disable_iso_interface()
483 alts->desc.bInterfaceNumber, 0); in disable_iso_interface()