mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
V4L/DVB (10199): uvcvideo: Fix GET_DEF failure detection.
Commit 44f0079ec7
erroneously considers all
GET_DEF requests as unsuccessful. Fix this by checking the request return
value.
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
fba4578ee9
commit
51cac8ada5
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ static int uvc_get_video_ctrl(struct uvc_video_device *video,
|
|||
ctrl->wCompQuality = le16_to_cpup((__le16 *)data);
|
||||
ret = 0;
|
||||
goto out;
|
||||
} else if (query == GET_DEF && probe == 1) {
|
||||
} else if (query == GET_DEF && probe == 1 && ret != size) {
|
||||
/* Many cameras don't support the GET_DEF request on their
|
||||
* video probe control. Warn once and return, the caller will
|
||||
* fall back to GET_CUR.
|
||||
|
|
Loading…
Reference in a new issue