提交 4a5aa62b 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (10647): vivi: add slider flag to controls.

Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 c41ee24b
...@@ -84,7 +84,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = { ...@@ -84,7 +84,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = {
.maximum = 65535, .maximum = 65535,
.step = 65535/100, .step = 65535/100,
.default_value = 65535, .default_value = 65535,
.flags = 0, .flags = V4L2_CTRL_FLAG_SLIDER,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
}, { }, {
.id = V4L2_CID_BRIGHTNESS, .id = V4L2_CID_BRIGHTNESS,
...@@ -94,7 +94,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = { ...@@ -94,7 +94,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = {
.maximum = 255, .maximum = 255,
.step = 1, .step = 1,
.default_value = 127, .default_value = 127,
.flags = 0, .flags = V4L2_CTRL_FLAG_SLIDER,
}, { }, {
.id = V4L2_CID_CONTRAST, .id = V4L2_CID_CONTRAST,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
...@@ -103,7 +103,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = { ...@@ -103,7 +103,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = {
.maximum = 255, .maximum = 255,
.step = 0x1, .step = 0x1,
.default_value = 0x10, .default_value = 0x10,
.flags = 0, .flags = V4L2_CTRL_FLAG_SLIDER,
}, { }, {
.id = V4L2_CID_SATURATION, .id = V4L2_CID_SATURATION,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
...@@ -112,7 +112,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = { ...@@ -112,7 +112,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = {
.maximum = 255, .maximum = 255,
.step = 0x1, .step = 0x1,
.default_value = 127, .default_value = 127,
.flags = 0, .flags = V4L2_CTRL_FLAG_SLIDER,
}, { }, {
.id = V4L2_CID_HUE, .id = V4L2_CID_HUE,
.type = V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
...@@ -121,7 +121,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = { ...@@ -121,7 +121,7 @@ static struct v4l2_queryctrl vivi_qctrl[] = {
.maximum = 127, .maximum = 127,
.step = 0x1, .step = 0x1,
.default_value = 0, .default_value = 0,
.flags = 0, .flags = V4L2_CTRL_FLAG_SLIDER,
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册