diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-fileops.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-fileops.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/media/video/cx18/cx18-fileops.c b/drivers/media/video/cx18/cx18-fileops.c index 504a1f9edec6..61192e62a80f 100644 --- a/drivers/media/video/cx18/cx18-fileops.c +++ b/drivers/media/video/cx18/cx18-fileops.c | |||
@@ -187,7 +187,7 @@ static struct cx18_buffer *cx18_get_buffer(struct cx18_stream *s, int non_block, | |||
187 | while ((buf = cx18_dequeue(s_vbi, &s_vbi->q_full))) { | 187 | while ((buf = cx18_dequeue(s_vbi, &s_vbi->q_full))) { |
188 | /* byteswap and process VBI data */ | 188 | /* byteswap and process VBI data */ |
189 | /* cx18_process_vbi_data(cx, buf, s_vbi->dma_pts, s_vbi->type); */ | 189 | /* cx18_process_vbi_data(cx, buf, s_vbi->dma_pts, s_vbi->type); */ |
190 | cx18_enqueue(s_vbi, buf, &s_vbi->q_free); | 190 | cx18_stream_put_buf_fw(s_vbi, buf); |
191 | } | 191 | } |
192 | } | 192 | } |
193 | buf = &cx->vbi.sliced_mpeg_buf; | 193 | buf = &cx->vbi.sliced_mpeg_buf; |
@@ -361,15 +361,9 @@ static ssize_t cx18_read(struct cx18_stream *s, char __user *ubuf, | |||
361 | tot_count - tot_written); | 361 | tot_count - tot_written); |
362 | 362 | ||
363 | if (buf != &cx->vbi.sliced_mpeg_buf) { | 363 | if (buf != &cx->vbi.sliced_mpeg_buf) { |
364 | if (buf->readpos == buf->bytesused) { | 364 | if (buf->readpos == buf->bytesused) |
365 | cx18_buf_sync_for_device(s, buf); | 365 | cx18_stream_put_buf_fw(s, buf); |
366 | cx18_enqueue(s, buf, &s->q_free); | 366 | else |
367 | cx18_vapi(cx, CX18_CPU_DE_SET_MDL, 5, | ||
368 | s->handle, | ||
369 | (void __iomem *)&cx->scb->cpu_mdl[buf->id] - | ||
370 | cx->enc_mem, | ||
371 | 1, buf->id, s->buf_size); | ||
372 | } else | ||
373 | cx18_push(s, buf, &s->q_full); | 367 | cx18_push(s, buf, &s->q_full); |
374 | } else if (buf->readpos == buf->bytesused) { | 368 | } else if (buf->readpos == buf->bytesused) { |
375 | int idx = cx->vbi.inserted_frame % CX18_VBI_FRAMES; | 369 | int idx = cx->vbi.inserted_frame % CX18_VBI_FRAMES; |