diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-11 23:49:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-11 23:49:12 +0200 |
commit | 5f00630df328d9e746ca5f61f3413f5c80743663 (patch) | |
tree | cfda92355aca55eb9802f0d3b0b5873597ff140c /linux/drivers/media/video/v4l2-compat-ioctl32.c | |
parent | 868fb03c63f6b85bb27bebc740c70993bb7ee3db (diff) | |
download | mediapointer-dvb-s2-5f00630df328d9e746ca5f61f3413f5c80743663.tar.gz mediapointer-dvb-s2-5f00630df328d9e746ca5f61f3413f5c80743663.tar.bz2 |
v4l2: video device: Add FM TX controls default configurations
From: Eduardo Valentin <eduardo.valentin@nokia.com>
This patch adds basic configurations for FM TX extended controls.
That includes controls names, menu strings, pointer identification,
type classification and flags configuration.
Priority: normal
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/v4l2-compat-ioctl32.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-compat-ioctl32.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linux/drivers/media/video/v4l2-compat-ioctl32.c b/linux/drivers/media/video/v4l2-compat-ioctl32.c index cd45c09ff..3454e7c64 100644 --- a/linux/drivers/media/video/v4l2-compat-ioctl32.c +++ b/linux/drivers/media/video/v4l2-compat-ioctl32.c @@ -621,14 +621,16 @@ struct v4l2_ext_control32 { for now this will do. */ /* Return non-zero if this control is a pointer type. Currently only - * type STRING is a pointer type. - * - * Note that there are currently no controls of this type, but at least the - * compat32 code is in place to properly handle such controls. Please - * remove this note once the first pointer controls are added. */ + type STRING is a pointer type. */ static inline int ctrl_is_pointer(u32 id) { - return 0; + switch (id) { + case V4L2_CID_RDS_TX_PS_NAME: + case V4L2_CID_RDS_TX_RADIO_TEXT: + return 1; + default: + return 0; + } } static int get_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) |