media: uvcvideo: Support realtek's UVC 1.5 device
authorming_qian <[email protected]>
Wed, 9 May 2018 02:13:08 +0000 (22:13 -0400)
committerMauro Carvalho Chehab <[email protected]>
Mon, 28 May 2018 20:59:55 +0000 (16:59 -0400)
commitf620d1d7afc7db57ab59f35000752840c91f67e7
treead11675a16b771b6fee31b8a6c63867b4428418e
parentf9ffcb0a21e1fa8e64d09ed613d884e054ae8191
media: uvcvideo: Support realtek's UVC 1.5 device

media: uvcvideo: Support UVC 1.5 video probe & commit controls

The length of UVC 1.5 video control is 48, and it is 34 for UVC 1.1.
Change it to 48 for UVC 1.5 device, and the UVC 1.5 device can be
recognized.

More changes to the driver are needed for full UVC 1.5 compatibility.
However, at least the UVC 1.5 Realtek RTS5847/RTS5852 cameras have been
reported to work well.

[[email protected]: Factor out code to helper function, update size checks]

Cc: [email protected]
Signed-off-by: ming_qian <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Tested-by: Kai-Heng Feng <[email protected]>
Tested-by: Ana Guerrero Lopez <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/usb/uvc/uvc_video.c