summaryrefslogtreecommitdiff
path: root/drivers/media/video/v4l2-compat-ioctl32.c
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@nokia.com>2009-08-11 21:49:12 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 15:19:19 (GMT)
commitfdf82dc2e2d43cf135b5fd352dea523642bb553a (patch)
tree64fe2e69e8de63c88998579546f67590f63c3ed8 /drivers/media/video/v4l2-compat-ioctl32.c
parent6b4249413abb634d9b2ff44c685da744f02e49d1 (diff)
downloadlinux-fsl-qoriq-fdf82dc2e2d43cf135b5fd352dea523642bb553a.tar.xz
V4L/DVB (12549): v4l2: video device: Add FM TX controls default configurations
This patch adds basic configurations for FM TX extended controls. That includes controls names, menu strings, pointer identification, type classification and flags configuration. 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 'drivers/media/video/v4l2-compat-ioctl32.c')
-rw-r--r--drivers/media/video/v4l2-compat-ioctl32.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/video/v4l2-compat-ioctl32.c b/drivers/media/video/v4l2-compat-ioctl32.c
index f788c41..997975d 100644
--- a/drivers/media/video/v4l2-compat-ioctl32.c
+++ b/drivers/media/video/v4l2-compat-ioctl32.c
@@ -616,14 +616,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)