diff options
author | Eduardo Valentin <eduardo.valentin@nokia.com> | 2009-08-11 17:49:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:19 -0400 |
commit | fdf82dc2e2d43cf135b5fd352dea523642bb553a (patch) | |
tree | 64fe2e69e8de63c88998579546f67590f63c3ed8 /drivers/media/video/v4l2-compat-ioctl32.c | |
parent | 6b4249413abb634d9b2ff44c685da744f02e49d1 (diff) |
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.c | 14 |
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 f788c41a3a5c..997975d5e024 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 { | |||
616 | for now this will do. */ | 616 | for now this will do. */ |
617 | 617 | ||
618 | /* Return non-zero if this control is a pointer type. Currently only | 618 | /* Return non-zero if this control is a pointer type. Currently only |
619 | * type STRING is a pointer type. | 619 | type STRING is a pointer type. */ |
620 | * | ||
621 | * Note that there are currently no controls of this type, but at least the | ||
622 | * compat32 code is in place to properly handle such controls. Please | ||
623 | * remove this note once the first pointer controls are added. */ | ||
624 | static inline int ctrl_is_pointer(u32 id) | 620 | static inline int ctrl_is_pointer(u32 id) |
625 | { | 621 | { |
626 | return 0; | 622 | switch (id) { |
623 | case V4L2_CID_RDS_TX_PS_NAME: | ||
624 | case V4L2_CID_RDS_TX_RADIO_TEXT: | ||
625 | return 1; | ||
626 | default: | ||
627 | return 0; | ||
628 | } | ||
627 | } | 629 | } |
628 | 630 | ||
629 | static int get_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) | 631 | static int get_v4l2_ext_controls32(struct v4l2_ext_controls *kp, struct v4l2_ext_controls32 __user *up) |