diff options
-rw-r--r-- | drivers/media/video/cx18/cx18-controls.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-fileops.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-controls.c b/drivers/media/video/cx18/cx18-controls.c index 82fc2f9d4021..8e35c3aed544 100644 --- a/drivers/media/video/cx18/cx18-controls.c +++ b/drivers/media/video/cx18/cx18-controls.c | |||
@@ -176,8 +176,10 @@ static int cx18_setup_vbi_fmt(struct cx18 *cx, | |||
176 | return -EBUSY; | 176 | return -EBUSY; |
177 | 177 | ||
178 | if (fmt != V4L2_MPEG_STREAM_VBI_FMT_IVTV || | 178 | if (fmt != V4L2_MPEG_STREAM_VBI_FMT_IVTV || |
179 | type != V4L2_MPEG_STREAM_TYPE_MPEG2_PS) { | 179 | !(type == V4L2_MPEG_STREAM_TYPE_MPEG2_PS || |
180 | /* We don't do VBI insertion aside from IVTV format in a PS */ | 180 | type == V4L2_MPEG_STREAM_TYPE_MPEG2_DVD || |
181 | type == V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD)) { | ||
182 | /* Only IVTV fmt VBI insertion & only MPEG-2 PS type streams */ | ||
181 | cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; | 183 | cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; |
182 | CX18_DEBUG_INFO("disabled insertion of sliced VBI data into " | 184 | CX18_DEBUG_INFO("disabled insertion of sliced VBI data into " |
183 | "the MPEG stream\n"); | 185 | "the MPEG stream\n"); |
diff --git a/drivers/media/video/cx18/cx18-fileops.c b/drivers/media/video/cx18/cx18-fileops.c index b3889c0b2697..29969c18949c 100644 --- a/drivers/media/video/cx18/cx18-fileops.c +++ b/drivers/media/video/cx18/cx18-fileops.c | |||
@@ -265,8 +265,13 @@ static size_t cx18_copy_buf_to_user(struct cx18_stream *s, | |||
265 | * an MPEG-2 Program Pack start code, and provide only | 265 | * an MPEG-2 Program Pack start code, and provide only |
266 | * up to that point to the user, so it's easy to insert VBI data | 266 | * up to that point to the user, so it's easy to insert VBI data |
267 | * the next time around. | 267 | * the next time around. |
268 | * | ||
269 | * This will not work for an MPEG-2 TS and has only been | ||
270 | * verified by analysis to work for an MPEG-2 PS. Helen Buus | ||
271 | * pointed out this works for the CX23416 MPEG-2 DVD compatible | ||
272 | * stream, and research indicates both the MPEG 2 SVCD and DVD | ||
273 | * stream types use an MPEG-2 PS container. | ||
268 | */ | 274 | */ |
269 | /* FIXME - This only works for an MPEG-2 PS, not a TS */ | ||
270 | /* | 275 | /* |
271 | * An MPEG-2 Program Stream (PS) is a series of | 276 | * An MPEG-2 Program Stream (PS) is a series of |
272 | * MPEG-2 Program Packs terminated by an | 277 | * MPEG-2 Program Packs terminated by an |