summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/yavta.c b/yavta.c
index cbcf310..cfee473 100644
--- a/yavta.c
+++ b/yavta.c
@@ -278,7 +278,8 @@ static int get_control(struct device *dev, unsigned int id, int type,
*val = ctrl.value;
return 0;
}
- if (errno == EINVAL || errno == ENOTTY) {
+ if (type != V4L2_CTRL_TYPE_INTEGER64 && type != V4L2_CTRL_TYPE_STRING &&
+ (errno == EINVAL || errno == ENOTTY)) {
struct v4l2_control old;
old.id = id;
@@ -322,7 +323,8 @@ static void set_control(struct device *dev, unsigned int id, int type,
val = ctrl.value64;
else
val = ctrl.value;
- } else if (errno == EINVAL || errno == ENOTTY) {
+ } else if (!is_64 && type != V4L2_CTRL_TYPE_STRING &&
+ (errno == EINVAL || errno == ENOTTY)) {
struct v4l2_control old;
old.id = id;