| /linux/include/linux/usb/ |
| H A D | audio-v2.h | 34 static inline bool uac_v2v3_control_is_readable(u32 bmControls, u8 control) in uac_v2v3_control_is_readable() argument 36 return (bmControls >> ((control - 1) * 2)) & 0x1; in uac_v2v3_control_is_readable() 39 static inline bool uac_v2v3_control_is_writeable(u32 bmControls, u8 control) in uac_v2v3_control_is_writeable() argument 41 return (bmControls >> ((control - 1) * 2)) & 0x2; in uac_v2v3_control_is_writeable() 52 __u8 bmControls; member 73 __u8 bmControls; member 105 __u8 bmControls; member 122 __le16 bmControls; member 137 __le16 bmControls; member 189 __u8 bmControls; member [all …]
|
| H A D | audio-v3.h | 68 __le32 bmControls; member 80 __le32 bmControls; member 97 __le32 bmControls; member 137 __le32 bmControls; member 166 __le32 bmControls; member 203 __le32 bmControls; member 219 __le32 bmControls; member
|
| /linux/Documentation/usb/ |
| H A D | gadget_uvc.rst | 229 echo 0x0d > bmControls 236 The bmControls attribute and the baSourceID attribute are multi-value attributes. 239 need to write two values to bmControls, like so: 243 cat << EOF > bmControls 251 The bControlSize attribute reflects the size of the bmControls attribute, and 253 attributes are automatically increased / decreased as you set bmControls and 260 $ cat bmControls 268 $ cat bmControls 272 $ cat bmControls 281 The Camera Terminal and Processing Units in the UVC chain also have bmControls [all …]
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | webcam.c | 111 .bmControls[0] = 2, 112 .bmControls[1] = 0, 113 .bmControls[2] = 0, 124 .bmControls[0] = 1, 125 .bmControls[1] = 0,
|
| /linux/sound/usb/ |
| H A D | format.c | 331 * 2. bmControls VAL_ALT_SETTINGS readable bit: when set, the device in focusrite_valid_sample_rate() 365 val_alt = uac_v2v3_control_is_readable(as->bmControls, in parse_uac2_sample_rate_range() 550 u32 bmControls; in validate_sample_rate_table_v2v3() 566 bmControls = le32_to_cpu(as->bmControls); in parse_audio_format_rates_v2v3() 570 bmControls = as->bmControls; in parse_audio_format_rates_v2v3() 573 if (!uac_v2v3_control_is_readable(bmControls, in parse_audio_format_rates_v2v3() 490 u32 bmControls; validate_sample_rate_table_v2v3() local
|
| H A D | stream.c | 625 if (csep2->bmControls & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes() 634 if (le32_to_cpu(csep3->bmControls) & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes()
|
| H A D | mixer.c | 1955 if (!uac_v2v3_control_is_readable(hdr->bmControls, in parse_clock_source_unit() 2231 bmctls = le16_to_cpu(d_v2->bmControls); in parse_audio_input_terminal() 2236 bmctls = le32_to_cpu(d_v3->bmControls); in parse_audio_input_terminal() 3310 uac_v2v3_control_is_readable(le16_to_cpu(desc->bmControls), in snd_usb_mixer_controls() 3336 uac_v2v3_control_is_readable(le32_to_cpu(desc->bmControls), in snd_usb_mixer_controls()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_uvc.c | 496 memcpy(mem, (desc)->bmControls, (desc)->bControlSize); \ 908 cd->bmControls[0] = 2; in uvc_alloc_inst() 909 cd->bmControls[1] = 0; in uvc_alloc_inst() 910 cd->bmControls[2] = 0; in uvc_alloc_inst() 920 pd->bmControls[0] = 1; in uvc_alloc_inst() 921 pd->bmControls[1] = 0; in uvc_alloc_inst()
|
| H A D | f_uac2.c | 165 .bmControls = (CONTROL_RDWR << CLK_FREQ_CTRL), 177 .bmControls = (CONTROL_RDWR << CLK_FREQ_CTRL), 192 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL), 206 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL), 220 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL), 234 .bmControls = cpu_to_le16(CONTROL_RDWR << COPY_CTRL), 248 .bmControls = 0, 318 .bmControls = 0, 377 .bmControls = 0, 452 .bmControls = 0, [all …]
|
| H A D | uvc_configfs.h | 177 u8 *bmControls; member
|
| H A D | uvc_configfs.c | 385 pd->bmControls[i] = bm_controls[i]; in uvcg_default_processing_bm_controls_store() 416 result += sprintf(pg, "%u\n", pd->bmControls[i]); in uvcg_default_processing_bm_controls_show() 426 UVC_ATTR(uvcg_default_processing_, bm_controls, bmControls); 555 cd->bmControls[i] = bm_controls[i]; in uvcg_default_camera_bm_controls_store() 587 result += sprintf(pg, "%u\n", cd->bmControls[i]); in uvcg_default_camera_bm_controls_show() 596 UVC_ATTR(uvcg_default_camera_, bm_controls, bmControls); 933 tmp_buf = krealloc_array(xu->desc.bmControls, num, sizeof(u8), in uvcg_extension_b_control_size_store() 940 xu->desc.bmControls = tmp_buf; in uvcg_extension_b_control_size_store() 1104 ret += sprintf(pg, "0x%02x\n", xu->desc.bmControls[i]); in uvcg_extension_bm_controls_show() 1150 kfree(xu->desc.bmControls); in uvcg_extension_bm_controls_store() [all …]
|
| /linux/drivers/media/usb/uvc/ |
| H A D | uvc_ctrl.c | 3227 controls = entity->processing.bmControls; in uvc_ctrl_prune_entity() 3234 controls = entity->camera.bmControls; in uvc_ctrl_prune_entity() 3318 u8 *bmControls = NULL; in uvc_ctrl_init_chain() local 3321 bmControls = entity->extension.bmControls; in uvc_ctrl_init_chain() 3324 bmControls = entity->processing.bmControls; in uvc_ctrl_init_chain() 3327 bmControls = entity->camera.bmControls; in uvc_ctrl_init_chain() 3330 bmControls = entity->gpio.bmControls; in uvc_ctrl_init_chain() 3338 ncontrols = memweight(bmControls, bControlSize); in uvc_ctrl_init_chain() 3350 if (uvc_test_bit(bmControls, i) == 0) in uvc_ctrl_init_chain()
|
| H A D | uvc_driver.c | 952 unit->extension.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_vendor_control() 955 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); in uvc_parse_vendor_control() 1063 term->camera.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control() 1070 memcpy(term->camera.bmControls, &buffer[15], n); in uvc_parse_standard_control() 1074 term->media.bmControls = (u8 *)term + sizeof(*term); in uvc_parse_standard_control() 1078 memcpy(term->media.bmControls, &buffer[9], n); in uvc_parse_standard_control() 1188 unit->processing.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_standard_control() 1189 memcpy(unit->processing.bmControls, &buffer[8], n); in uvc_parse_standard_control() 1218 unit->extension.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_standard_control() 1219 memcpy(unit->extension.bmControls, &buffer[23+p], n); in uvc_parse_standard_control() [all …]
|