Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1429507
| From | Florian Echtler <floe@butterbrot.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 9/9] Input: sur40 - use new V4L2 touch input type |
| Date | 2016-06-23 08:50 +0200 |
| Message-ID | <rN6CB-6aT-9@gated-at.bofh.it> (permalink) |
| References | <rMYvn-Qh-9@gated-at.bofh.it> <rMYvo-Qh-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 23.06.2016 00:08, Nick Dyer wrote:
> diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c
> index 880c40b..841e045 100644
> --- a/drivers/input/touchscreen/sur40.c
> +++ b/drivers/input/touchscreen/sur40.c
> @@ -599,7 +599,7 @@ static int sur40_probe(struct usb_interface *interface,
> sur40->vdev.queue = &sur40->queue;
> video_set_drvdata(&sur40->vdev, sur40);
>
> - error = video_register_device(&sur40->vdev, VFL_TYPE_GRABBER, -1);
> + error = video_register_device(&sur40->vdev, VFL_TYPE_TOUCH, -1);
> if (error) {
> dev_err(&interface->dev,
> "Unable to register video subdevice.");
As far as I could tell from looking at patch 1/9, the only visible
change for userspace will be the device name, so I'd be fine with this.
> @@ -794,7 +794,7 @@ static int sur40_vidioc_enum_fmt(struct file *file, void *priv,
> if (f->index != 0)
> return -EINVAL;
> strlcpy(f->description, "8-bit greyscale", sizeof(f->description));
> - f->pixelformat = V4L2_PIX_FMT_GREY;
> + f->pixelformat = V4L2_TCH_FMT_TU08;
I would suggest to leave the pixel format as it is. Rationale: the data
really is greyscale image intensity data (as also evidenced by [1]), not
just a synthetic image, and changing the pixel format would break all
userspace tools.
[1] https://github.com/mkalten/reacTIVision/issues/3#issuecomment-99931807
Best, Florian
--
SENT FROM MY DEC VT50 TERMINAL
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5 9/9] Input: sur40 - use new V4L2 touch input type Nick Dyer <nick.dyer@itdev.co.uk> - 2016-06-23 00:10 +0200 Re: [PATCH v5 9/9] Input: sur40 - use new V4L2 touch input type Florian Echtler <floe@butterbrot.org> - 2016-06-23 08:50 +0200 Re: [PATCH v5 9/9] Input: sur40 - use new V4L2 touch input type Hans Verkuil <hverkuil@xs4all.nl> - 2016-06-27 13:10 +0200
csiph-web