| /linux/sound/usb/ |
| H A D | quirks-table.h | 134 .altsetting = 1, 174 .altsetting = 4, 456 .altsetting = 1, 471 .altsetting = 1, 781 .altsetting = 1, 796 .altsetting = 1, 1227 .altsetting = 1, 1243 .altsetting = 1, 1278 .altsetting = 1, 1294 .altsetting = 1, [all …]
|
| H A D | format.c | 46 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 95 fp->iface, fp->altsetting); in parse_audio_format_i_type() 107 fp->iface, fp->altsetting, in parse_audio_format_i_type() 133 fp->iface, fp->altsetting, in parse_audio_format_i_type() 155 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 214 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 234 /* C-Media CM6501 mislabels its 96 kHz altsetting */ in parse_audio_format_rates_v1() 242 fp->altsetting == 5 && fp->maxpacksize == 392) in parse_audio_format_rates_v1() 255 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 280 * rates per altsetting bu 446 check_valid_altsetting_v2v3(struct snd_usb_audio * chip,int iface,int altsetting) check_valid_altsetting_v2v3() argument [all...] |
| H A D | quirks.c | 38 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk() 99 alts = &iface->altsetting[0]; in create_standard_audio_quirk() 147 * create a stream for an endpoint/altsetting without proper descriptors 179 if (fp->iface != get_iface_desc(&iface->altsetting[0])->bInterfaceNumber || in create_fixed_stream_quirk() 184 alts = &iface->altsetting[fp->altset_idx]; in create_fixed_stream_quirk() 233 /* must have a non-zero altsetting for streaming */ in create_auto_pcm_quirk() 236 alts = &iface->altsetting[1]; in create_auto_pcm_quirk() 351 alts = &iface->altsetting[0]; in create_auto_midi_quirk() 404 .altsetting = 1, in create_uaxx_quirk() 416 alts = &iface->altsetting[ in create_uaxx_quirk() [all...] |
| H A D | helper.c | 125 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) in snd_usb_get_host_interface() argument 132 return usb_altnum_to_altsetting(iface, altsetting); in snd_usb_get_host_interface() 147 host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; in snd_usb_add_ctrl_interface_link()
|
| H A D | implicit.c | 94 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep() 104 fmt->iface, fmt->altsetting, in add_implicit_fb_sync_ep() 114 unsigned int altsetting) in add_generic_uac2_implicit_fb() argument 119 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb() 469 target->altsetting == target->sync_altsetting) in snd_usb_find_implicit_fb_sync_format()
|
| H A D | card.h | 21 unsigned char altsetting; /* corresponding alternate setting */ member 75 unsigned char altsetting; /* corresponding alternate setting */ member
|
| H A D | helper.h | 18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
|
| H A D | endpoint.c | 720 alts = snd_usb_get_host_interface(chip, ep->iface, ep->altsetting); in endpoint_set_syncinterval() 800 ep->altsetting = fp->sync_altsetting; in snd_usb_endpoint_open() 804 ep->altsetting = fp->altsetting; in snd_usb_endpoint_open() 808 ep_num, ep->iface, ep->altsetting, ep->ep_idx); in snd_usb_endpoint_open() 905 int altset = set ? ep->altsetting : 0; in endpoint_set_interface() 959 ep->altsetting = 0; in snd_usb_endpoint_close() 1468 /* Need to deselect altsetting at first */ in snd_usb_endpoint_prepare()
|
| H A D | card.c | 261 alts = &iface->altsetting[0]; in snd_usb_create_stream() 277 alts = &iface->altsetting[0]; in snd_usb_create_stream() 339 host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; in snd_usb_create_streams() 866 chip->last_iface = intf->altsetting[0].desc.bInterfaceNumber; in find_last_interface() 929 alts = &intf->altsetting[0]; in usb_audio_probe()
|
| /linux/drivers/usb/serial/ |
| H A D | qcserial.c | 201 int altsetting = 0; in handle_quectel_ec20() local 224 altsetting = -1; in handle_quectel_ec20() 228 return altsetting; in handle_quectel_ec20() 238 int altsetting = -1; in qcprobe() local 266 altsetting = 1; in qcprobe() 273 altsetting = 0; in qcprobe() 291 altsetting = -1; in qcprobe() 297 altsetting = 1; in qcprobe() 301 altsetting = -1; in qcprobe() 306 altsetting = handle_quectel_ec20(dev, ifnum); in qcprobe() [all …]
|
| /linux/drivers/usb/atm/ |
| H A D | xusbatm.c | 38 static struct usb_interface *xusbatm_find_intf(struct usb_device *usb_dev, int altsetting, u8 ep) in xusbatm_find_intf() argument 45 …if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)… in xusbatm_find_intf() 53 struct usb_interface *intf, int altsetting, int claim) in xusbatm_capture_intf() argument 55 int ifnum = intf->altsetting->desc.bInterfaceNumber; in xusbatm_capture_intf() 62 ret = usb_set_interface(usb_dev, ifnum, altsetting); in xusbatm_capture_intf() 64 …usb_err(usbatm, "%s: altsetting %2d for interface %2d failed (%d)!\n", __func__, altsetting, ifnum… in xusbatm_capture_intf() 110 rx_intf->altsetting->desc.bInterfaceNumber, rx_alt, tx_alt); in xusbatm_bind() 115 rx_intf->altsetting->desc.bInterfaceNumber, in xusbatm_bind() 116 tx_intf->altsetting->desc.bInterfaceNumber); in xusbatm_bind()
|
| H A D | speedtch.c | 59 static unsigned int altsetting = 0; /* zero means: use the default */ variable 76 module_param(altsetting, uint, S_IRUGO | S_IWUSR); 77 MODULE_PARM_DESC(altsetting, 115 unsigned int altsetting; member 327 if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) { in speedtch_upload_firmware() 328 …(usbatm, "%s: setting interface to %d failed (%d)!\n", __func__, instance->params.altsetting, ret); in speedtch_upload_firmware() 770 int ifnum = intf->altsetting->desc.bInterfaceNumber; in speedtch_bind() 816 instance->params.altsetting = altsetting; in speedtch_bind() 823 if (instance->params.altsetting) in speedtch_bind() 824 if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) { in speedtch_bind() [all …]
|
| /linux/drivers/net/usb/ |
| H A D | cdc-phonet.c | 329 data = intf->altsetting->extra; in usbpn_probe() 330 len = intf->altsetting->extralen; in usbpn_probe() 344 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 && in usbpn_probe() 345 data_intf->altsetting[1].desc.bNumEndpoints == 2) in usbpn_probe() 346 data_desc = data_intf->altsetting + 1; in usbpn_probe() 348 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 && in usbpn_probe() 349 data_intf->altsetting[1].desc.bNumEndpoints == 0) in usbpn_probe() 350 data_desc = data_intf->altsetting; in usbpn_probe() 380 pnd->active_setting = data_desc - data_intf->altsetting; in usbpn_probe()
|
| /linux/sound/usb/line6/ |
| H A D | pod.c | 433 .altsetting = 5, 446 .altsetting = 1, 459 .altsetting = 5, 470 .altsetting = 0, 482 .altsetting = 5, 495 .altsetting = 1, 508 .altsetting = 5,
|
| H A D | toneport.c | 495 .altsetting = 2, /* 1..4 seem to be ok */ 504 .altsetting = 2, /* 1..4 seem to be ok */ 513 .altsetting = 2, /* 1..4 seem to be ok */ 522 .altsetting = 2, /* defaults to 44.1kHz, 16-bit */ 531 .altsetting = 2, /* 1..4 seem to be ok */ 540 .altsetting = 2, /* 1..4 seem to be ok */ 549 .altsetting = 2, /* defaults to 44.1kHz, 16-bit */
|
| H A D | variax.c | 198 .altsetting = 1, 209 .altsetting = 1,
|
| H A D | driver.h | 88 int altsetting; member
|
| /linux/drivers/usb/image/ |
| H A D | microtek.c | 667 struct usb_host_interface *altsetting; in mts_usb_probe() local 679 altsetting = intf->cur_altsetting; in mts_usb_probe() 684 if ( altsetting->desc.bNumEndpoints != MTS_EP_TOTAL ) { in mts_usb_probe() 686 (int)MTS_EP_TOTAL, (int)altsetting->desc.bNumEndpoints ); in mts_usb_probe() 690 for( i = 0; i < altsetting->desc.bNumEndpoints; i++ ) { in mts_usb_probe() 691 if ((altsetting->endpoint[i].desc.bmAttributes & in mts_usb_probe() 695 (int)altsetting->endpoint[i].desc.bEndpointAddress ); in mts_usb_probe() 697 if (altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe() 700 = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe() 708 ep_out = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
|
| /linux/drivers/media/rc/ |
| H A D | ttusbir.c | 188 int altsetting = -1; in ttusbir_probe() local 198 for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { in ttusbir_probe() 201 idesc = &intf->altsetting[i].desc; in ttusbir_probe() 204 desc = &intf->altsetting[i].endpoint[j].desc; in ttusbir_probe() 218 altsetting = i; in ttusbir_probe() 224 if (altsetting == -1) { in ttusbir_probe() 234 ret = usb_set_interface(tt->udev, 0, altsetting); in ttusbir_probe()
|
| /linux/drivers/media/usb/usbtv/ |
| H A D | usbtv-core.c | 79 if (intf->altsetting[1].desc.bNumEndpoints != 4) in usbtv_probe() 82 ep = &intf->altsetting[1].endpoint[0]; in usbtv_probe()
|
| /linux/drivers/usb/core/ |
| H A D | usb.c | 309 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber in usb_find_alt_setting() 318 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) in usb_find_alt_setting() 319 return &intf_cache->altsetting[i]; in usb_find_alt_setting() 358 if (config->interface[i]->altsetting[0] in usb_ifnum_to_if() 392 if (intf->altsetting[i].desc.bAlternateSetting == altnum) in usb_altnum_to_altsetting() 393 return &intf->altsetting[i]; in usb_altnum_to_altsetting()
|
| /linux/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-audio.c | 614 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) { in cx231xx_audio_init() 620 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_audio_init() 636 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) { in cx231xx_audio_init() 641 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe].desc. in cx231xx_audio_init()
|
| /linux/drivers/input/mouse/ |
| H A D | synaptics_usb.c | 299 unsigned int altsetting = min(intf->num_altsetting, 1U); in synusb_probe() local 302 error = usb_set_interface(udev, intf_num, altsetting); in synusb_probe() 306 altsetting, error); in synusb_probe()
|
| /linux/drivers/pinctrl/nomadik/ |
| H A D | pinctrl-abx500.h | 59 int altsetting; member
|
| /linux/tools/usb/ffs-aio-example/multibuff/host_app/ |
| H A D | test.c | 165 iface = &conf->interface[0].altsetting[0]; in main()
|