summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-18 17:16:00 -0600
committerMike Isely <isely@pobox.com>2006-03-18 17:16:00 -0600
commitf6b67636456135319f327797d28e8b8e6dd30181 (patch)
tree0eac47bd4fcb851fc2ff94f4e8d8ee07b82bf787 /linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h
parent09b18d418a428399b3c393492efb0c8db4f70ea1 (diff)
downloadmediapointer-dvb-s2-f6b67636456135319f327797d28e8b8e6dd30181.tar.gz
mediapointer-dvb-s2-f6b67636456135319f327797d28e8b8e6dd30181.tar.bz2
Implement mpeg2 garbage filter in pvrusb2
From: Mike Isely <isely@pobox.com> The PVR USB2 hardware seems to like emitting some garbage data before real stream data appears. This problem has been present all along, but with the older 29xxx model series it was benign because the garbage data in question didn't seem to bother mpeg2 players. But with the 24xxx model series, the garbage data includes what looks like a corrupted mpeg2 packet, which kills mythtv and ffmpeg. This fix causes incoming stream data to be discarded until valid mpeg2 data is seen. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h
index e6205f123..6b002597f 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ioread.h
@@ -29,7 +29,10 @@ struct pvr2_ioread *pvr2_ioread_create(void);
void pvr2_ioread_destroy(struct pvr2_ioread *);
int pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *);
struct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *);
-int pvr2_ioread_set_enabled(struct pvr2_ioread *,int);
+void pvr2_ioread_set_sync_key(struct pvr2_ioread *,
+ const char *sync_key_ptr,
+ unsigned int sync_key_len);
+int pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl);
int pvr2_ioread_get_enabled(struct pvr2_ioread *);
int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
int pvr2_ioread_avail(struct pvr2_ioread *);