summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-25 16:47:08 -0600
committerMike Isely <isely@pobox.com>2006-03-25 16:47:08 -0600
commit8b44741ac5b22de76954864b0db14a8d4ed5db07 (patch)
treee01c8a8f0ca2faab8756c457a76e42391a5decdb /linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
parent23fb60e03b25fa009ed530d83c5cb7463b96bdc9 (diff)
downloadmediapointer-dvb-s2-8b44741ac5b22de76954864b0db14a8d4ed5db07.tar.gz
mediapointer-dvb-s2-8b44741ac5b22de76954864b0db14a8d4ed5db07.tar.bz2
Adjust pvrusb2 stream on/off control handling
From: Mike Isely <isely@pobox.com> Code in pvrusb2 which issues stream on/off commands was previously in a place specific to the saa7115. This change moves that function to a place where it can be used for other things (like controlling a future cx25840). Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
index 69864782b..7721e405e 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-i2c-cmd-v4l2.c
@@ -239,6 +239,13 @@ const struct pvr2_i2c_op pvr2_i2c_op_v4l2_log = {
};
+void pvr2_v4l2_cmd_stream(struct pvr2_i2c_client *cp,int fl)
+{
+ pvr2_i2c_client_cmd(cp,
+ (fl ? VIDIOC_STREAMON : VIDIOC_STREAMOFF),0);
+}
+
+
/*
Stuff for Emacs to see, in order to encourage consistent editing style:
*** Local Variables: ***