* [PATCH] s2255drv field count fix
@ 2008-09-09 15:29 Dean A.
0 siblings, 0 replies; only message in thread
From: Dean A. @ 2008-09-09 15:29 UTC (permalink / raw)
To: mchehab, v4l-dvb-maintainer, video4linux-list; +Cc: dean
From: Dean Anderson <dean@sensoray.com>
Fixes videobuf field_count
Signed-off-by: Dean Anderson <dean@sensoray.com>
---
Note: Please review the vivi driver. Using buf->vb.field_count++ in vivi
may be incorrect if there are multiple buffers.
--- /usr/src/v4l-dvb-ff052010c4cb/linux/drivers/media/video/s2255drv.c.orig 2008-09-09 08:08:01.000000000 -0700
+++ /usr/src/v4l-dvb-ff052010c4cb/linux/drivers/media/video/s2255drv.c 2008-09-09 08:08:50.000000000 -0700
@@ -687,7 +687,7 @@ static void s2255_fillbuff(struct s2255_
(unsigned long)vbuf, pos);
/* tell v4l buffer was filled */
- buf->vb.field_count++;
+ buf->vb.field_count = dev->frame_count[chn] * 2;
do_gettimeofday(&ts);
buf->vb.ts = ts;
buf->vb.state = VIDEOBUF_DONE;
@@ -1304,6 +1304,7 @@ static int vidioc_streamon(struct file *
dev->last_frame[chn] = -1;
dev->bad_payload[chn] = 0;
dev->cur_frame[chn] = 0;
+ dev->frame_count[chn] = 0;
for (j = 0; j < SYS_FRAMES; j++) {
dev->buffer[chn].frame[j].ulState = S2255_READ_IDLE;
dev->buffer[chn].frame[j].cur_size = 0;
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-09 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-09 15:29 [PATCH] s2255drv field count fix Dean A.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox