mbox series

[0/3] media: uvcvideo: Support partial control reads and minor changes

Message ID 20241008-uvc-readless-v1-0-042ac4581f44@chromium.org (mailing list archive)
Headers show
Series media: uvcvideo: Support partial control reads and minor changes | expand

Message

Ricardo Ribalda Oct. 8, 2024, 7:06 a.m. UTC
Some cameras do not return all the bytes requested from a control
if it can fit in less bytes. Eg: returning 0xab instead of 0x00ab.
Support these devices.

Also, now that we are at it, improve uvc_query_ctrl().

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
Ricardo Ribalda (3):
      media: uvcvideo: Support partial control reads
      media: uvcvideo: Refactor uvc_query_ctrl
      media: uvcvideo: Add more logging to uvc_query_ctrl_error()

 drivers/media/usb/uvc/uvc_video.c | 44 +++++++++++++++++++++++++--------------
 1 file changed, 28 insertions(+), 16 deletions(-)
---
base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
change-id: 20241008-uvc-readless-23f9b8cad0b3

Best regards,