summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/v4l2-ctl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/v4l2-ctl.cpp b/test/v4l2-ctl.cpp
index deb7f3fb9..a9604e650 100644
--- a/test/v4l2-ctl.cpp
+++ b/test/v4l2-ctl.cpp
@@ -36,7 +36,6 @@
#include <math.h>
#include <sys/klog.h>
-#define __user
#include <linux/videodev2.h>
#include <list>
@@ -903,7 +902,7 @@ int main(int argc, char **argv)
fac = (tuner.capability & V4L2_TUNER_CAP_LOW) ? 16000 : 16;
}
vf.tuner = 0;
- vf.type = (enum v4l2_tuner_type)0;
+ vf.type = tuner.type;
vf.frequency = __u32(freq * fac);
if (doioctl(fd, VIDIOC_S_FREQUENCY, &vf,
"VIDIOC_S_FREQUENCY") == 0)