Skip to content
Commit c0c5e71e authored by Stephan Lachowsky's avatar Stephan Lachowsky Committed by Mauro Carvalho Chehab
Browse files

[media] uvcvideo: Fix control mapping for devices with multiple chains



The search for matching extension units fails to take account of the
current chain.  In the case where you have two distinct video chains,
both containing an XU with the same GUID but different unit ids, you
will be unable to perform a mapping on the second chain because entity
on the first chain will always be found first

Fix this by only searching the current chain when performing a control
mapping.  This is analogous to the search used by uvc_find_control(),
and is the correct behaviour.

Signed-off-by: default avatarStephan Lachowsky <stephan.lachowsky@maxim-ic.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent fa140014
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment