[media] cx23885: Ensure VBI buffers timeout quickly - bugfix for vbi hangs during streaming
Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
68776b30fe
commit
1ca3553aa4
|
@ -151,7 +151,7 @@ int cx23885_restart_vbi_queue(struct cx23885_dev *dev,
|
||||||
buf = list_entry(item, struct cx23885_buffer, vb.queue);
|
buf = list_entry(item, struct cx23885_buffer, vb.queue);
|
||||||
buf->count = q->count++;
|
buf->count = q->count++;
|
||||||
}
|
}
|
||||||
mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
|
mod_timer(&q->timeout, jiffies + (BUFFER_TIMEOUT / 30));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ vbi_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
|
||||||
cx23885_start_vbi_dma(dev, q, buf);
|
cx23885_start_vbi_dma(dev, q, buf);
|
||||||
buf->vb.state = VIDEOBUF_ACTIVE;
|
buf->vb.state = VIDEOBUF_ACTIVE;
|
||||||
buf->count = q->count++;
|
buf->count = q->count++;
|
||||||
mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
|
mod_timer(&q->timeout, jiffies + (BUFFER_TIMEOUT / 30));
|
||||||
dprintk(2, "[%p/%d] vbi_queue - first active\n",
|
dprintk(2, "[%p/%d] vbi_queue - first active\n",
|
||||||
buf, buf->vb.i);
|
buf, buf->vb.i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue