]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
media: uvcvideo: Add a quirk to force GEO GC6500 Camera bits-per-pixel value
authorSergey Zakharchenko <szakharchenko@digital-loggers.com>
Thu, 3 Oct 2019 09:31:23 +0000 (11:31 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:20:05 +0000 (16:20 +0100)
commitfdac4231ade0260ee9e5435e5735d3c1bb1e378e
tree05bdafb6013dd757c428c4faee876831269405cd
parent0457cf8deda8921bb3071f877c11dee181f6b649
media: uvcvideo: Add a quirk to force GEO GC6500 Camera bits-per-pixel value

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit 1dd2e8f942574e2be18374ebb81751082d8d467c ]

This device does not function correctly in raw mode in kernel
versions validating buffer sizes in bulk mode. It erroneously
announces 16 bits per pixel instead of 12 for NV12 format, so it
needs this quirk to fix computed frame size and avoid legitimate
frames getting discarded.

[Move info and div variables to local scope]

Signed-off-by: Sergey Zakharchenko <szakharchenko@digital-loggers.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvcvideo.h