diff options
| author | Nick Dyer <nick@shmanahar.org> | 2016-07-18 17:10:30 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-23 15:28:04 -0400 |
| commit | b2fe22d0cf64708c50c26f11b3da8b79809c699b (patch) | |
| tree | de7ba78bc3260c2af09a9ec6a2065497e8ea3088 /include/media | |
| parent | aaf578e12e06160792ae5dd71dee3b074e0f9475 (diff) | |
[media] v4l2-core: Add support for touch devices
Some touch controllers send out touch data in a similar way to a
greyscale frame grabber.
Add new device type VFL_TYPE_TOUCH:
- This uses a new device prefix v4l-touch for these devices, to stop
generic capture software from treating them as webcams. Otherwise,
touch is treated similarly to video capture.
- Add V4L2_INPUT_TYPE_TOUCH
- Add MEDIA_INTF_T_V4L_TOUCH
- Add V4L2_CAP_TOUCH to indicate device is a touch device
Add formats:
- V4L2_TCH_FMT_DELTA_TD16 for signed 16-bit touch deltas
- V4L2_TCH_FMT_DELTA_TD08 for signed 16-bit touch deltas
- V4L2_TCH_FMT_TU16 for unsigned 16-bit touch data
- V4L2_TCH_FMT_TU08 for unsigned 8-bit touch data
This support will be used by:
- Atmel maXTouch (atmel_mxt_ts)
- Synaptics RMI4.
- sur40
Signed-off-by: Nick Dyer <nick@shmanahar.org>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/v4l2-dev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index a122b1bd40f9..5272aeec0cec 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
| @@ -25,7 +25,8 @@ | |||
| 25 | #define VFL_TYPE_RADIO 2 | 25 | #define VFL_TYPE_RADIO 2 |
| 26 | #define VFL_TYPE_SUBDEV 3 | 26 | #define VFL_TYPE_SUBDEV 3 |
| 27 | #define VFL_TYPE_SDR 4 | 27 | #define VFL_TYPE_SDR 4 |
| 28 | #define VFL_TYPE_MAX 5 | 28 | #define VFL_TYPE_TOUCH 5 |
| 29 | #define VFL_TYPE_MAX 6 | ||
| 29 | 30 | ||
| 30 | /* Is this a receiver, transmitter or mem-to-mem? */ | 31 | /* Is this a receiver, transmitter or mem-to-mem? */ |
| 31 | /* Ignored for VFL_TYPE_SUBDEV. */ | 32 | /* Ignored for VFL_TYPE_SUBDEV. */ |
| @@ -294,6 +295,7 @@ struct video_device | |||
| 294 | * - %VFL_TYPE_RADIO - A radio card | 295 | * - %VFL_TYPE_RADIO - A radio card |
| 295 | * - %VFL_TYPE_SUBDEV - A subdevice | 296 | * - %VFL_TYPE_SUBDEV - A subdevice |
| 296 | * - %VFL_TYPE_SDR - Software Defined Radio | 297 | * - %VFL_TYPE_SDR - Software Defined Radio |
| 298 | * - %VFL_TYPE_TOUCH - A touch sensor | ||
| 297 | * | 299 | * |
| 298 | * .. note:: | 300 | * .. note:: |
| 299 | * | 301 | * |
