diff options
author | Andy Walls <awalls@radix.net> | 2008-12-08 21:02:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:38:29 -0500 |
commit | 66c2a6b0bc0b394d215768610d96f44cf97052ac (patch) | |
tree | a88946e764eb5a829a920c5027b4d92922cc54ee /drivers/media/video/cx18/cx18-mailbox.c | |
parent | b80e1074c734416987486b7b76b6479faa73f1e2 (diff) |
V4L/DVB (9801): cx18: Allow more than 63 capture buffers in rotation per stream
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.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-mailbox.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-mailbox.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/media/video/cx18/cx18-mailbox.c b/drivers/media/video/cx18/cx18-mailbox.c index b013e817926a..9d8220539be8 100644 --- a/drivers/media/video/cx18/cx18-mailbox.c +++ b/drivers/media/video/cx18/cx18-mailbox.c | |||
@@ -189,16 +189,7 @@ static void epu_dma_done(struct cx18 *cx, struct cx18_epu_work_order *order) | |||
189 | dvb_dmx_swfilter(&s->dvb.demux, buf->buf, | 189 | dvb_dmx_swfilter(&s->dvb.demux, buf->buf, |
190 | buf->bytesused); | 190 | buf->bytesused); |
191 | 191 | ||
192 | cx18_buf_sync_for_device(s, buf); | 192 | cx18_stream_put_buf_fw(s, buf); |
193 | cx18_enqueue(s, buf, &s->q_free); | ||
194 | |||
195 | if (s->handle != CX18_INVALID_TASK_HANDLE && | ||
196 | test_bit(CX18_F_S_STREAMING, &s->s_flags)) | ||
197 | cx18_vapi(cx, | ||
198 | CX18_CPU_DE_SET_MDL, 5, s->handle, | ||
199 | (void __iomem *) | ||
200 | &cx->scb->cpu_mdl[buf->id] - cx->enc_mem, | ||
201 | 1, buf->id, s->buf_size); | ||
202 | } else | 193 | } else |
203 | set_bit(CX18_F_B_NEED_BUF_SWAP, &buf->b_flags); | 194 | set_bit(CX18_F_B_NEED_BUF_SWAP, &buf->b_flags); |
204 | } | 195 | } |