Home
last modified time | relevance | path

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

/sound/usb/
Dquirks.c114 struct usb_host_interface *alts; in create_standard_audio_quirk() local
121 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
122 altsd = get_iface_desc(alts); in create_standard_audio_quirk()
143 struct usb_host_interface *alts; in create_fixed_stream_quirk() local
177 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk()
178 altsd = get_iface_desc(alts); in create_fixed_stream_quirk()
187 fp->datainterval = snd_usb_parse_datainterval(chip, alts); in create_fixed_stream_quirk()
189 fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); in create_fixed_stream_quirk()
191 snd_usb_init_pitch(chip, fp->iface, alts, fp); in create_fixed_stream_quirk()
192 snd_usb_init_sample_rate(chip, fp->iface, alts, fp, fp->rate_max); in create_fixed_stream_quirk()
[all …]
Dstream.c398 struct usb_host_interface *alts, in parse_uac_endpoint_attributes() argument
404 struct usb_interface_descriptor *altsd = get_iface_desc(alts); in parse_uac_endpoint_attributes()
407 …csep = snd_usb_find_desc(alts->endpoint[0].extra, alts->endpoint[0].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
411 …csep = snd_usb_find_desc(alts->endpoint[1].extra, alts->endpoint[1].extralen, NULL, USB_DT_CS_ENDP… in parse_uac_endpoint_attributes()
419 csep = snd_usb_find_desc(alts->extra, alts->extralen, NULL, USB_DT_CS_ENDPOINT); in parse_uac_endpoint_attributes()
484 struct usb_host_interface *alts; in snd_usb_parse_audio_interface() local
508 alts = &iface->altsetting[i]; in snd_usb_parse_audio_interface()
509 altsd = get_iface_desc(alts); in snd_usb_parse_audio_interface()
517 le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize) == 0) in snd_usb_parse_audio_interface()
520 if ((get_endpoint(alts, 0)->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) != in snd_usb_parse_audio_interface()
[all …]
Dpcm.c154 struct usb_host_interface *alts, in init_pitch_v1() argument
162 if (get_iface_desc(alts)->bNumEndpoints < 1) in init_pitch_v1()
164 ep = get_endpoint(alts, 0)->bEndpointAddress; in init_pitch_v1()
180 struct usb_host_interface *alts, in init_pitch_v2() argument
204 struct usb_host_interface *alts, in snd_usb_init_pitch() argument
214 return init_pitch_v1(chip, iface, alts, fmt); in snd_usb_init_pitch()
217 return init_pitch_v2(chip, iface, alts, fmt); in snd_usb_init_pitch()
289 struct usb_host_interface **alts, in search_roland_implicit_fb() argument
299 *alts = &iface->altsetting[altsetting]; in search_roland_implicit_fb()
300 altsd = get_iface_desc(*alts); in search_roland_implicit_fb()
[all …]
Dhelper.c117 struct usb_host_interface *alts) in snd_usb_parse_datainterval() argument
124 if (get_endpoint(alts, 0)->bInterval >= 1 && in snd_usb_parse_datainterval()
125 get_endpoint(alts, 0)->bInterval <= 4) in snd_usb_parse_datainterval()
126 return get_endpoint(alts, 0)->bInterval - 1; in snd_usb_parse_datainterval()
Dclock.c283 struct usb_host_interface *alts, in set_sample_rate_v1() argument
291 if (get_iface_desc(alts)->bNumEndpoints < 1) in set_sample_rate_v1()
293 ep = get_endpoint(alts, 0)->bEndpointAddress; in set_sample_rate_v1()
360 struct usb_host_interface *alts, in set_sample_rate_v2() argument
424 struct usb_host_interface *alts, in snd_usb_init_sample_rate() argument
430 return set_sample_rate_v1(chip, iface, alts, fmt, rate); in snd_usb_init_sample_rate()
433 return set_sample_rate_v2(chip, iface, alts, fmt, rate); in snd_usb_init_sample_rate()
Dendpoint.c452 struct usb_host_interface *alts, in snd_usb_add_endpoint() argument
458 if (WARN_ON(!alts)) in snd_usb_add_endpoint()
465 ep->iface == alts->desc.bInterfaceNumber && in snd_usb_add_endpoint()
466 ep->altsetting == alts->desc.bAlternateSetting) { in snd_usb_add_endpoint()
487 ep->iface = alts->desc.bInterfaceNumber; in snd_usb_add_endpoint()
488 ep->altsetting = alts->desc.bAlternateSetting; in snd_usb_add_endpoint()
498 if (get_endpoint(alts, 1)->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE && in snd_usb_add_endpoint()
499 get_endpoint(alts, 1)->bRefresh >= 1 && in snd_usb_add_endpoint()
500 get_endpoint(alts, 1)->bRefresh <= 9) in snd_usb_add_endpoint()
501 ep->syncinterval = get_endpoint(alts, 1)->bRefresh; in snd_usb_add_endpoint()
[all …]
Dcard.c138 struct usb_host_interface *alts; in snd_usb_create_stream() local
148 alts = &iface->altsetting[0]; in snd_usb_create_stream()
149 altsd = get_iface_desc(alts); in snd_usb_create_stream()
164 alts = &iface->altsetting[0]; in snd_usb_create_stream()
165 altsd = get_iface_desc(alts); in snd_usb_create_stream()
547 struct usb_host_interface *alts; in usb_audio_probe() local
551 alts = &intf->altsetting[0]; in usb_audio_probe()
552 ifnum = get_iface_desc(alts)->bInterfaceNumber; in usb_audio_probe()
612 chip->ctrl_intf = alts; in usb_audio_probe()
Dclock.h6 struct usb_host_interface *alts,
Dpcm.h11 struct usb_host_interface *alts,
Dendpoint.h9 struct usb_host_interface *alts,
Dhelper.h15 struct usb_host_interface *alts);
Dmixer_quirks.c1508 struct usb_host_interface *alts; in snd_microii_spdif_default_get() local
1525 alts = &iface->altsetting[1]; in snd_microii_spdif_default_get()
1526 if (get_iface_desc(alts)->bNumEndpoints < 1) in snd_microii_spdif_default_get()
1528 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
/sound/usb/misc/
Dua101.c468 struct usb_host_interface *alts; in enable_iso_interface() local
470 alts = ua->intf[intf_index]->cur_altsetting; in enable_iso_interface()
471 if (alts->desc.bAlternateSetting != 1) { in enable_iso_interface()
473 alts->desc.bInterfaceNumber, 1); in enable_iso_interface()
486 struct usb_host_interface *alts; in disable_iso_interface() local
491 alts = ua->intf[intf_index]->cur_altsetting; in disable_iso_interface()
492 if (alts->desc.bAlternateSetting != 0) { in disable_iso_interface()
494 alts->desc.bInterfaceNumber, 0); in disable_iso_interface()