diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2024-11-28 20:53:41 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-17 10:05:35 +0100 |
| commit | ac7737ed9aee8daf5fff3334ea35abd8adbbd3e6 (patch) | |
| tree | b76564a541e46c24302a03f9a74e7e097d3858a0 /scripts/objdiff | |
| parent | 4f534dd576b78498e775dc5e9dc4ef077b8b4110 (diff) | |
| download | linux-ac7737ed9aee8daf5fff3334ea35abd8adbbd3e6.tar.gz linux-ac7737ed9aee8daf5fff3334ea35abd8adbbd3e6.tar.bz2 linux-ac7737ed9aee8daf5fff3334ea35abd8adbbd3e6.zip | |
media: uvcvideo: Support partial control reads
commit f00ee2ca8da25ebccb8e19956d853c9055e2c8d0 upstream.
Some cameras, like the ELMO MX-P3, do not return all the bytes
requested from a control if it can fit in less bytes.
Eg: Returning 0xab instead of 0x00ab.
usb 3-9: Failed to query (GET_DEF) UVC control 3 on unit 2: 1 (exp. 2).
Extend the returned value from the camera and return it.
Cc: stable@vger.kernel.org
Fixes: a763b9fb58be ("media: uvcvideo: Do not return positive errors in uvc_query_ctrl()")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20241128-uvc-readless-v5-1-cf16ed282af8@chromium.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
