summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-25 18:04:44 -0500
committerMike Isely <isely@pobox.com>2006-06-25 18:04:44 -0500
commit13e33e5132b604fb99c91f3372573840e15b5d74 (patch)
treeca6d96836193ddcc9fe181d1d295a7a5c6a5dd30 /linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
parent235a84bf2bb998390130641e216fcbdd91f08a51 (diff)
downloadmediapointer-dvb-s2-13e33e5132b604fb99c91f3372573840e15b5d74.tar.gz
mediapointer-dvb-s2-13e33e5132b604fb99c91f3372573840e15b5d74.tar.bz2
Various V4L control enhancements in pvrusb2
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
index 0b1157def..632f76a86 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
@@ -219,6 +219,27 @@ int pvr2_ctrl_get_valname(struct pvr2_ctrl *cptr,int val,
}
+/* Return V4L ID for this control or zero if none */
+int pvr2_ctrl_get_v4lid(struct pvr2_ctrl *cptr)
+{
+ if (!cptr) return 0;
+ return cptr->info->v4l_id;
+}
+
+
+unsigned int pvr2_ctrl_get_v4lflags(struct pvr2_ctrl *cptr)
+{
+ unsigned int flags = 0;
+
+ if (cptr->info->get_v4lflags) {
+ flags = cptr->info->get_v4lflags(cptr);
+ }
+
+
+ return flags;
+}
+
+
/* Return true if control is writable */
int pvr2_ctrl_is_writable(struct pvr2_ctrl *cptr)
{