]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: uvc_scan_fallback() for webcams with broken chain
authorHenrik Ingo <henrik.ingo@avoinelama.fi>
Sun, 29 May 2016 20:58:00 +0000 (17:58 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 15:12:49 +0000 (13:12 -0200)
commita9301226fd1f16a85a9eb0848db5c1d7804f54cf
tree6e334a5e53099091be74773f01719e02162f3bf8
parent249691378a7416e6bb4b1a232b7f83c9d7f9857e
[media] uvcvideo: uvc_scan_fallback() for webcams with broken chain

Some devices have invalid baSourceID references, causing uvc_scan_chain()
to fail, but if we just take the entities we can find and put them
together in the most sensible chain we can think of, turns out they do
work anyway. Note: This heuristic assumes there is a single chain.

At the time of writing, devices known to have such a broken chain are
  - Acer Integrated Camera (5986:055a)
  - Realtek rtl157a7 (0bda:57a7)

Signed-off-by: Henrik Ingo <henrik.ingo@avoinelama.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_driver.c