/sound/usb/ |
D | implicit.c | 84 const struct usb_host_interface *alts) in add_implicit_fb_sync_ep() argument 88 if (!alts) { in add_implicit_fb_sync_ep() 92 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep() 97 fmt->sync_altsetting = alts->desc.bAlternateSetting; in add_implicit_fb_sync_ep() 114 struct usb_host_interface *alts; in add_generic_uac2_implicit_fb() local 117 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb() 118 if (!alts) in add_generic_uac2_implicit_fb() 120 if (alts->desc.bInterfaceClass != USB_CLASS_AUDIO || in add_generic_uac2_implicit_fb() 121 alts->desc.bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING || in add_generic_uac2_implicit_fb() 122 alts->desc.bInterfaceProtocol != UAC_VERSION_2 || in add_generic_uac2_implicit_fb() [all …]
|
D | stream.c | 574 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 …]
|
D | quirks.c | 94 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 …]
|
D | helper.c | 107 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()
|
D | format.c | 310 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()
|
D | pcm.c | 297 struct usb_host_interface *alts; in snd_usb_audioformat_set_sync_ep() local 306 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting); in snd_usb_audioformat_set_sync_ep() 307 if (!alts) in snd_usb_audioformat_set_sync_ep() 309 altsd = get_iface_desc(alts); in snd_usb_audioformat_set_sync_ep() 311 err = snd_usb_parse_implicit_fb_quirk(chip, fmt, alts); in snd_usb_audioformat_set_sync_ep() 322 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_audioformat_set_sync_ep() 329 sync_attr = get_endpoint(alts, 1)->bmAttributes; in snd_usb_audioformat_set_sync_ep() 342 (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_audioformat_set_sync_ep() 343 get_endpoint(alts, 1)->bSynchAddress != 0)) { in snd_usb_audioformat_set_sync_ep() 347 get_endpoint(alts, 1)->bmAttributes, in snd_usb_audioformat_set_sync_ep() [all …]
|
D | card.c | 144 struct usb_host_interface *alts; in snd_usb_create_stream() local 154 alts = &iface->altsetting[0]; in snd_usb_create_stream() 155 altsd = get_iface_desc(alts); in snd_usb_create_stream() 170 alts = &iface->altsetting[0]; in snd_usb_create_stream() 171 altsd = get_iface_desc(alts); in snd_usb_create_stream() 776 struct usb_host_interface *alts; in usb_audio_probe() local 780 alts = &intf->altsetting[0]; in usb_audio_probe() 781 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe() 873 chip->ctrl_intf = alts; in usb_audio_probe()
|
D | implicit.h | 7 struct usb_host_interface *alts);
|
D | helper.h | 15 struct usb_host_interface *alts);
|
D | endpoint.c | 679 struct usb_host_interface *alts; in endpoint_set_syncinterval() local 682 alts = snd_usb_get_host_interface(chip, ep->iface, ep->altsetting); in endpoint_set_syncinterval() 683 if (!alts) in endpoint_set_syncinterval() 686 desc = get_endpoint(alts, ep->ep_idx); in endpoint_set_syncinterval()
|
D | mixer.c | 3039 struct usb_host_interface *alts; in snd_usb_mixer_controls_badd() local 3064 alts = &iface->altsetting[1]; in snd_usb_mixer_controls_badd() 3065 altsd = get_iface_desc(alts); in snd_usb_mixer_controls_badd() 3071 dir_in = (get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_mixer_controls_badd() 3072 maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in snd_usb_mixer_controls_badd()
|
D | mixer_quirks.c | 1640 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local 1659 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get() 1660 if (get_iface_desc(alts)->bNumEndpoints < 1) { in snd_microii_spdif_default_get() 1664 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
|
/sound/usb/misc/ |
D | ua101.c | 457 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()
|