summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-14 17:30:09 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-14 17:30:09 -0300
commiteef01923b77627b1aeead66d2ba596b3dbc0c35d (patch)
treeea9e46df2a410bf266a27db6b786a67dfe228948 /linux/drivers/media/dvb
parent4e7fa67f9425ac245c59066b79f5e6053594f334 (diff)
downloadmediapointer-dvb-s2-eef01923b77627b1aeead66d2ba596b3dbc0c35d.tar.gz
mediapointer-dvb-s2-eef01923b77627b1aeead66d2ba596b3dbc0c35d.tar.bz2
Ringbuffer: don't reset pointers to zero
From: Andreas Oberritter <obi@linuxtv.org> Oliver Endriss spotted, that resetting read and write pointers on flush() requires additional locking and breaks the av7110 driver. Therefore this patch partially reverts the previous patch titled "make dvb_ringbuffer compatible to dmxdev_buffer". Signed-off-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c b/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c
index f23324835..c972fe014 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_ringbuffer.c
@@ -87,7 +87,7 @@ ssize_t dvb_ringbuffer_avail(struct dvb_ringbuffer *rbuf)
void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf)
{
- rbuf->pread = rbuf->pwrite = 0;
+ rbuf->pread = rbuf->pwrite;
rbuf->error = 0;
}