Home
last modified time | relevance | path

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

/linux/include/linux/usb/
H A Daudio-v2.h34 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 Daudio-v3.h68 __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/sound/usb/
H A Dclock.c257 u32 bmControls; in uac_clock_source_is_valid() local
267 bmControls = le32_to_cpu(cs_desc->v3.bmControls); in uac_clock_source_is_valid()
269 bmControls = cs_desc->v2.bmControls; in uac_clock_source_is_valid()
272 if (!uac_v2v3_control_is_readable(bmControls, in uac_clock_source_is_valid()
306 u32 bmControls; in __uac_clock_find_source() local
339 bmControls = le32_to_cpu(*(__le32 *)(&selector->v3.baCSourceID[0] + pins)); in __uac_clock_find_source()
341 bmControls = *(__u8 *)(&selector->v2.baCSourceID[0] + pins); in __uac_clock_find_source()
343 readable = uac_v2v3_control_is_readable(bmControls, in __uac_clock_find_source()
345 writeable = uac_v2v3_control_is_writeable(bmControls, in __uac_clock_find_source()
566 u32 bmControls; in snd_usb_set_sample_rate_v2v3() local
[all …]
H A Dformat.c365 val_alt = uac_v2v3_control_is_readable(as->bmControls, in focusrite_valid_sample_rate()
554 u32 bmControls; in validate_sample_rate_table_v2v3() local
570 bmControls = le32_to_cpu(as->bmControls); in validate_sample_rate_table_v2v3()
574 bmControls = as->bmControls; in validate_sample_rate_table_v2v3()
577 if (!uac_v2v3_control_is_readable(bmControls, in validate_sample_rate_table_v2v3()
H A Dstream.c624 if (csep2->bmControls & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes()
633 if (le32_to_cpu(csep3->bmControls) & UAC2_CONTROL_PITCH) in parse_uac_endpoint_attributes()
H A Dmixer.c745 return 0; /* no bmControls -> skip */ in uac_mixer_unit_get_channels()
2142 if (!uac_v2v3_control_is_readable(hdr->bmControls, in parse_clock_source_unit()
2336 rest = 2; /* bmControls + iMixer */ in build_mixer_unit_ctl()
2339 rest = 6; /* bmControls + wMixerDescrStr */ in build_mixer_unit_ctl()
2423 bmctls = le16_to_cpu(d_v2->bmControls); in parse_audio_mixer_unit()
2428 bmctls = le32_to_cpu(d_v3->bmControls); in parse_audio_mixer_unit()
2471 /* no bmControls field (e.g. Maya44) -> ignore */
3508 uac_v2v3_control_is_readable(le16_to_cpu(desc->bmControls), in delegate_notify()
3534 uac_v2v3_control_is_readable(le32_to_cpu(desc->bmControls), in snd_usb_mixer_notify_id()
/linux/Documentation/usb/
H A Dgadget_uvc.rst229 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 Dwebcam.c111 .bmControls[0] = 2,
112 .bmControls[1] = 0,
113 .bmControls[2] = 0,
124 .bmControls[0] = 1,
125 .bmControls[1] = 0,
/linux/drivers/usb/gadget/function/
H A Df_uvc.c511 memcpy(mem, (desc)->bmControls, (desc)->bControlSize); \
939 cd->bmControls[0] = 2; in uvc_alloc_inst()
940 cd->bmControls[1] = 0; in uvc_alloc_inst()
941 cd->bmControls[2] = 0; in uvc_alloc_inst()
951 pd->bmControls[0] = 1; in uvc_alloc_inst()
952 pd->bmControls[1] = 0; in uvc_alloc_inst()
H A Df_uac2.c165 .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 Duvc_configfs.h177 u8 *bmControls; member
H A Duvc_configfs.c385 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 Duvc_ctrl.c3439 controls = entity->processing.bmControls; in uvc_ctrl_cleanup_device()
3446 controls = entity->camera.bmControls;
3530 u8 *bmControls = NULL;
3533 bmControls = entity->extension.bmControls;
3536 bmControls = entity->processing.bmControls;
3539 bmControls = entity->camera.bmControls;
3542 bmControls
3318 u8 *bmControls = NULL; uvc_ctrl_init_chain() local
[all...]