summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx18/cx18-ioctl.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-12-08 21:02:45 -0500
committerAndy Walls <awalls@radix.net>2008-12-08 21:02:45 -0500
commitb358f380079ca3db20d7409c3d39c2f5e80f871c (patch)
tree029c4833223653ccb0b91f1bba1763b4c535cdb8 /linux/drivers/media/video/cx18/cx18-ioctl.c
parentda0e5a7cc6dc76cf99879f3ee26a2256c67e4cde (diff)
downloadmediapointer-dvb-s2-b358f380079ca3db20d7409c3d39c2f5e80f871c.tar.gz
mediapointer-dvb-s2-b358f380079ca3db20d7409c3d39c2f5e80f871c.tar.bz2
cx18: Allow more than 63 capture buffers in rotation per stream
From: Andy Walls <awalls@radix.net> cx18: Allow more than 63 capture buffers in rotation per stream. Implement q_busy to hold buffers the firmware has for use. q_free holds truly unused buffers in a pool. New buffers are given to the firmware as soon as the firmware returns one, if there are any to give to the firmware. Priority: normal Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r--linux/drivers/media/video/cx18/cx18-ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-ioctl.c b/linux/drivers/media/video/cx18/cx18-ioctl.c
index 5d9c1146e..85a2e5a3b 100644
--- a/linux/drivers/media/video/cx18/cx18-ioctl.c
+++ b/linux/drivers/media/video/cx18/cx18-ioctl.c
@@ -851,8 +851,7 @@ static int cx18_log_status(struct file *file, void *fh)
continue;
CX18_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n",
s->name, s->s_flags,
- (s->buffers - atomic_read(&s->q_free.buffers))
- * 100 / s->buffers,
+ atomic_read(&s->q_full.buffers) * 100 / s->buffers,
(s->buffers * s->buf_size) / 1024, s->buffers);
}
CX18_INFO("Read MPEG/VBI: %lld/%lld bytes\n",