From f6b67636456135319f327797d28e8b8e6dd30181 Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Sat, 18 Mar 2006 17:16:00 -0600 Subject: Implement mpeg2 garbage filter in pvrusb2 From: Mike Isely 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 --- linux/drivers/media/video/pvrusb2/pvrusb2-context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-context.h') diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-context.h b/linux/drivers/media/video/pvrusb2/pvrusb2-context.h index 873622a0f..910086ba2 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-context.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-context.h @@ -37,6 +37,7 @@ struct pvr2_context; /* All central state */ struct pvr2_channel; /* One I/O pathway to a user */ struct pvr2_context_stream; /* Wrapper for a stream */ struct pvr2_crit_reg; /* Critical region pointer */ +struct pvr2_ioread; /* Low level stream structure */ struct pvr2_context_stream { struct pvr2_channel *user; @@ -85,6 +86,8 @@ void pvr2_channel_init(struct pvr2_channel *,struct pvr2_context *); void pvr2_channel_done(struct pvr2_channel *); int pvr2_channel_claim_stream(struct pvr2_channel *, struct pvr2_context_stream *); +struct pvr2_ioread *pvr2_channel_create_mpeg_stream( + struct pvr2_context_stream *); #endif /* __PVRUSB2_CONTEXT_H */ -- cgit v1.2.3