]> git.karo-electronics.de Git - linux-beck.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)
commite950267ab802c8558f1100eafd4087fd039ad634
tree6e334a5e53099091be74773f01719e02162f3bf8
parent3907fae86ebabd622bd8265285d5b612d5958948
[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