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)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 23 Jan 2020 12:16:13 +0000 (13:16 +0100)
commit1dd2e8f942574e2be18374ebb81751082d8d467c
tree43786c8500945c07e4f0b22e8e80a2dc14573676
parent68035c80e129c4cfec659aac4180354530b26527
media: uvcvideo: Add a quirk to force GEO GC6500 Camera bits-per-pixel value

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>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvcvideo.h