]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] v4l: add device capability flag for SDR receiver
authorAntti Palosaari <crope@iki.fi>
Tue, 17 Dec 2013 20:41:12 +0000 (17:41 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 17:15:37 +0000 (14:15 -0300)
VIDIOC_QUERYCAP IOCTL is used to query device capabilities. Add new
capability flag to inform given device supports SDR capture.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
include/uapi/linux/videodev2.h

index 27bed7c99b46ed3f66e24f28eb4bdbc8f52ef5d5..27fedfe4f33ba542803bb962befef1572c0aaeb4 100644 (file)
@@ -267,6 +267,8 @@ struct v4l2_capability {
 #define V4L2_CAP_RADIO                 0x00040000  /* is a radio device */
 #define V4L2_CAP_MODULATOR             0x00080000  /* has a modulator */
 
+#define V4L2_CAP_SDR_CAPTURE           0x00100000  /* Is a SDR capture device */
+
 #define V4L2_CAP_READWRITE              0x01000000  /* read/write systemcalls */
 #define V4L2_CAP_ASYNCIO                0x02000000  /* async I/O */
 #define V4L2_CAP_STREAMING              0x04000000  /* streaming I/O ioctls */