3 #include <linux/kernel.h>
4 #include <linux/module.h>
9 static unsigned int vbibufs = 4;
13 static unsigned int vbi_debug;
17 #define dprintk(level,fmt, arg...) if (vbi_debug >= level) \
18 printk(KERN_DEBUG "%s: " fmt, dev->core->name , ## arg)
36 f->
fmt.
vbi.sampling_rate = 28636363;
42 f->
fmt.
vbi.sampling_rate = 35468950;
43 f->
fmt.
vbi.start[0] = 7 -1;
44 f->
fmt.
vbi.start[1] = 319 -1;
57 buf->
vb.width, buf->
risc.dma);
102 if (list_empty(&q->
active))
106 dprintk(2,
"restart_queue [%p/%d]: restart dma\n",
108 cx8800_start_vbi_dma(dev, q, buf);
129 while (!list_empty(&q->
active)) {
134 printk(
"%s/0: [%p/%d] timeout - dma=0x%08lx\n", dev->
core->name,
135 buf, buf->
vb.i, (
unsigned long)buf->
risc.dma);
138 spin_unlock_irqrestore(&dev->
slock,flags);
167 if (0 != buf->
vb.baddr && buf->
vb.bsize < size)
181 0, buf->
vb.width * buf->
vb.height,
206 if (list_empty(&q->
active)) {
208 cx8800_start_vbi_dma(dev, q, buf);
212 dprintk(2,
"[%p/%d] vbi_queue - first active\n",
221 dprintk(2,
"[%p/%d] buffer_queue - append to active\n",
234 .buf_setup = vbi_setup,
235 .buf_prepare = vbi_prepare,
236 .buf_queue = vbi_queue,
237 .buf_release = vbi_release,