Home
last modified time | relevance | path

Searched refs:altsetting (Results 1 – 25 of 99) sorted by relevance

1234

/linux/drivers/usb/serial/
A Dqcserial.c217 altsetting = -1; in handle_quectel_ec20()
221 return altsetting; in handle_quectel_ec20()
259 altsetting = 1; in qcprobe()
266 altsetting = 0; in qcprobe()
284 altsetting = -1; in qcprobe()
290 altsetting = 1; in qcprobe()
294 altsetting = -1; in qcprobe()
312 altsetting = -1; in qcprobe()
319 altsetting = -1; in qcprobe()
359 altsetting = -1; in qcprobe()
[all …]
/linux/sound/usb/
A Dformat.c84 fp->iface, fp->altsetting); in parse_audio_format_i_type()
96 fp->iface, fp->altsetting, in parse_audio_format_i_type()
122 fp->iface, fp->altsetting, in parse_audio_format_i_type()
147 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
204 fp->iface, fp->altsetting); in parse_audio_format_rates_v1()
280 switch (fp->altsetting) { in s1810c_valid_sample_rate()
431 int altsetting) in check_valid_altsetting_v2v3() argument
451 if ((data & 0xff) * 8 < altsetting) in check_valid_altsetting_v2v3()
500 fp->iface, fp->altsetting); in validate_sample_rate_table_v2v3()
655 fp->altsetting == 6) in parse_audio_format_i()
[all …]
A Dquirks-table.h59 .altsetting = 1,
104 .altsetting = 4,
462 .altsetting = 1,
479 .altsetting = 1,
950 .altsetting = 1,
967 .altsetting = 1,
1571 .altsetting = 1,
1589 .altsetting = 1,
1638 .altsetting = 1,
1656 .altsetting = 1,
[all …]
A Dquirks.c98 alts = &iface->altsetting[0]; in create_standard_audio_quirk()
441 .altsetting = 1, in create_uaxx_quirk()
1383 if (fp->altsetting == 2 || fp->altsetting == 3 || in snd_usb_is_big_endian_format()
1384 fp->altsetting == 5 || fp->altsetting == 6) in snd_usb_is_big_endian_format()
1389 fp->altsetting == 1 || fp->altsetting == 2 || in snd_usb_is_big_endian_format()
1390 fp->altsetting == 3) in snd_usb_is_big_endian_format()
1394 if (fp->altsetting == 2 || fp->altsetting == 3 || in snd_usb_is_big_endian_format()
1395 fp->altsetting == 5 || fp->altsetting == 6) in snd_usb_is_big_endian_format()
1615 if (fp->altsetting == 2) in snd_usb_interface_dsd_format_quirks()
1633 if (fp->altsetting == 3) in snd_usb_interface_dsd_format_quirks()
[all …]
A Dclock.c420 fmt->iface, fmt->altsetting, rate, fmt->endpoint); in set_sample_rate_v1()
438 fmt->iface, fmt->altsetting, fmt->endpoint); in set_sample_rate_v1()
459 int altsetting, int clock) in get_sample_rate_v2v3() argument
472 iface, altsetting, err); in get_sample_rate_v2v3()
522 return get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in snd_usb_set_sample_rate_v2v3()
553 prev_rate = get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in set_sample_rate_v2v3()
561 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
571 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3()
586 fmt->iface, fmt->altsetting, rate, fmt->clock); in snd_usb_init_sample_rate()
A Dimplicit.c95 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep()
105 fmt->iface, fmt->altsetting, in add_implicit_fb_sync_ep()
115 unsigned int altsetting) in add_generic_uac2_implicit_fb() argument
120 alts = snd_usb_get_host_interface(chip, ifnum, altsetting); in add_generic_uac2_implicit_fb()
466 target->altsetting == target->sync_altsetting) in snd_usb_find_implicit_fb_sync_format()
A Dhelper.c125 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()
A Dcard.h20 unsigned char altsetting; /* corresponding alternate setting */ member
72 unsigned char altsetting; /* corresponding alternate setting */ member
A Dproc.c103 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats()
201 snd_iprintf(buffer, " Altset = %d\n", subs->cur_audiofmt->altsetting); in proc_dump_substream_status()
A Dpcm.c294 alts = snd_usb_get_host_interface(chip, fmt->iface, fmt->altsetting); in snd_usb_audioformat_set_sync_ep()
334 fmt->iface, fmt->altsetting, in snd_usb_audioformat_set_sync_ep()
349 fmt->iface, fmt->altsetting, in snd_usb_audioformat_set_sync_ep()
364 fmt->iface, fmt->altsetting, fmt->sync_ep, fmt->sync_iface, in snd_usb_audioformat_set_sync_ep()
1573 subs->cur_audiofmt->altsetting); in snd_usb_substream_playback_trigger()
1583 subs->cur_audiofmt->altsetting); in snd_usb_substream_playback_trigger()
1594 subs->cur_audiofmt->altsetting); in snd_usb_substream_playback_trigger()
1621 subs->cur_audiofmt->altsetting); in snd_usb_substream_capture_trigger()
1633 subs->cur_audiofmt->altsetting); in snd_usb_substream_capture_trigger()
/linux/drivers/usb/atm/
A Dxusbatm.c38 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()
A Dspeedtch.c59 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
768 int ifnum = intf->altsetting->desc.bInterfaceNumber; in speedtch_bind()
814 instance->params.altsetting = altsetting; in speedtch_bind()
821 if (instance->params.altsetting) in speedtch_bind()
824 instance->params.altsetting = 0; /* fall back to default */ in speedtch_bind()
827 if (!instance->params.altsetting && use_isoc) in speedtch_bind()
853 if (!use_isoc && !instance->params.altsetting) in speedtch_bind()
[all …]
/linux/drivers/net/usb/
A Dcdc-phonet.c329 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/
A Dpod.c432 .altsetting = 5,
445 .altsetting = 1,
458 .altsetting = 5,
469 .altsetting = 0,
481 .altsetting = 5,
494 .altsetting = 1,
507 .altsetting = 5,
A Dtoneport.c495 .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 */
A Dpodhd.c454 .altsetting = 5,
465 .altsetting = 5,
476 .altsetting = 1,
488 .altsetting = 1,
500 .altsetting = 1,
512 .altsetting = 1,
524 .altsetting = 1,
A Dvariax.c198 .altsetting = 1,
209 .altsetting = 1,
/linux/drivers/usb/image/
A Dmicrotek.c669 struct usb_host_interface *altsetting; in mts_usb_probe() local
681 altsetting = intf->cur_altsetting; in mts_usb_probe()
686 if ( altsetting->desc.bNumEndpoints != MTS_EP_TOTAL ) { in mts_usb_probe()
688 (int)MTS_EP_TOTAL, (int)altsetting->desc.bNumEndpoints ); in mts_usb_probe()
692 for( i = 0; i < altsetting->desc.bNumEndpoints; i++ ) { in mts_usb_probe()
693 if ((altsetting->endpoint[i].desc.bmAttributes & in mts_usb_probe()
697 (int)altsetting->endpoint[i].desc.bEndpointAddress ); in mts_usb_probe()
699 if (altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
702 = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
710 ep_out = altsetting->endpoint[i].desc.bEndpointAddress & in mts_usb_probe()
/linux/drivers/media/rc/
A Dttusbir.c190 int altsetting = -1; in ttusbir_probe() local
200 for (i = 0; i < intf->num_altsetting && altsetting == -1; i++) { in ttusbir_probe()
203 idesc = &intf->altsetting[i].desc; in ttusbir_probe()
206 desc = &intf->altsetting[i].endpoint[j].desc; in ttusbir_probe()
220 altsetting = i; in ttusbir_probe()
226 if (altsetting == -1) { in ttusbir_probe()
236 ret = usb_set_interface(tt->udev, 0, altsetting); in ttusbir_probe()
/linux/drivers/media/usb/stk1160/
A Dstk1160-core.c183 ifnum = intf->altsetting[0].desc.bInterfaceNumber; in stk1160_scan_usb()
188 for (e = 0; e < intf->altsetting[i].desc.bNumEndpoints; e++) { in stk1160_scan_usb()
191 desc = &intf->altsetting[i].endpoint[e].desc; in stk1160_scan_usb()
240 intf->altsetting->desc.bInterfaceNumber); in stk1160_scan_usb()
279 if (interface->altsetting[0].desc.bInterfaceClass == USB_CLASS_AUDIO) in stk1160_probe()
/linux/drivers/media/usb/cx231xx/
A Dcx231xx-cards.c1567 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1585 if (uif->altsetting[i].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1605 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1609 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2()
1629 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe]. in cx231xx_init_v4l2()
1649 if (uif->altsetting[0].desc.bNumEndpoints < isoc_pipe + 1) in cx231xx_init_v4l2()
1653 uif->altsetting[0].endpoint[isoc_pipe].desc. in cx231xx_init_v4l2()
1671 tmp = le16_to_cpu(uif->altsetting[i].endpoint[isoc_pipe]. in cx231xx_init_v4l2()
1701 ifnum = interface->altsetting[0].desc.bInterfaceNumber; in cx231xx_usb_probe()
1846 uif->altsetting[0].endpoint[isoc_pipe]. in cx231xx_usb_probe()
[all …]
A Dcx231xx-audio.c614 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/media/usb/tm6000/
A Dtm6000-cards.c1235 for (ep = 0; ep < interface->altsetting[i].desc.bNumEndpoints; ep++) { in tm6000_usb_probe()
1239 e = &interface->altsetting[i].endpoint[ep]; in tm6000_usb_probe()
1246 interface->altsetting[i].desc.bInterfaceNumber, in tm6000_usb_probe()
1247 interface->altsetting[i].desc.bInterfaceClass); in tm6000_usb_probe()
1253 &interface->altsetting[i], in tm6000_usb_probe()
1258 &interface->altsetting[i], in tm6000_usb_probe()
1266 &interface->altsetting[i], in tm6000_usb_probe()
1271 &interface->altsetting[i], in tm6000_usb_probe()
1279 &interface->altsetting[i], in tm6000_usb_probe()
1284 &interface->altsetting[i], in tm6000_usb_probe()
[all …]
/linux/drivers/usb/core/
A Dusb.c231 if (config->intf_cache[i]->altsetting[0].desc.bInterfaceNumber in usb_find_alt_setting()
240 if (intf_cache->altsetting[i].desc.bAlternateSetting == alt_num) in usb_find_alt_setting()
241 return &intf_cache->altsetting[i]; in usb_find_alt_setting()
280 if (config->interface[i]->altsetting[0] in usb_ifnum_to_if()
314 if (intf->altsetting[i].desc.bAlternateSetting == altnum) in usb_altnum_to_altsetting()
315 return &intf->altsetting[i]; in usb_altnum_to_altsetting()
/linux/drivers/media/usb/usbtv/
A Dusbtv-core.c79 if (intf->altsetting[1].desc.bNumEndpoints != 4) in usbtv_probe()
82 ep = &intf->altsetting[1].endpoint[0]; in usbtv_probe()

Completed in 60 milliseconds

1234