summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.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-video-v4l.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-video-v4l.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c b/linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
index d0bc3682b..7078ac3ad 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
@@ -29,6 +29,7 @@
*/
#include "pvrusb2-video-v4l.h"
+#include "pvrusb2-i2c-cmd-v4l2.h"
#include "pvrusb2-hdw-internal.h"
@@ -173,8 +174,7 @@ static int decoder_detect(struct pvr2_i2c_client *cp)
static void decoder_enable(struct pvr2_v4l_decoder *ctxt,int fl)
{
pvr2_trace(PVR2_TRACE_CHIPS,"i2c v4l2 decoder_enable(%d)",fl);
- pvr2_i2c_client_cmd(ctxt->client,
- (fl ? VIDIOC_STREAMON : VIDIOC_STREAMOFF),0);
+ pvr2_v4l2_cmd_stream(ctxt->client,fl);
}