1 From 90f869763026e8ff18aeecde217d778f00e4f294 Mon Sep 17 00:00:00 2001
2 From: Shawn Xiao <b49994@freescale.com>
3 Date: Tue, 10 Feb 2015 16:11:59 +0800
4 Subject: [PATCH] MGS-515 [#ccc] Opencv app can't run on imx6sx with cam
6 This issue is caused by the no support of VIDIOC_QUERYCTRL ioctl
7 item in latest cam driver.
9 Modified the errno in check logic to compatible with new driver.
13 Upstream-Status: Pending
15 Signed-off-by: Shawn Xiao <b49994@freescale.com>
17 modules/highgui/src/cap_v4l.cpp | 6 ++++--
18 1 file changed, 4 insertions(+), 2 deletions(-)
20 diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp
21 index c9fca05..8c46b6c 100644
22 --- a/modules/highgui/src/cap_v4l.cpp
23 +++ b/modules/highgui/src/cap_v4l.cpp
24 @@ -707,7 +707,8 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
28 - if (errno == EINVAL)
29 + if (errno == ENOTTY ||
33 perror ("VIDIOC_QUERYCTRL");
34 @@ -774,7 +775,8 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
38 - if (errno == EINVAL)
39 + if (errno == ENOTTY ||
43 perror ("VIDIOC_QUERYCTRL");