diff options
author | Catalin Climov <devnull@localhost> | 2005-09-06 21:58:43 +0000 |
---|---|---|
committer | Catalin Climov <devnull@localhost> | 2005-09-06 21:58:43 +0000 |
commit | c1d8c76e0f52d59478e5e99c2d0a7a1756757d31 (patch) | |
tree | fd7a4bdcca87e77201b73faa33269b35b5e238ec /linux/drivers/media/video/cx88/cx88-mpeg.c | |
parent | abe34b1ec392774318d3fc28f81f08cbbb7a4ad6 (diff) | |
download | mediapointer-dvb-s2-c1d8c76e0f52d59478e5e99c2d0a7a1756757d31.tar.gz mediapointer-dvb-s2-c1d8c76e0f52d59478e5e99c2d0a7a1756757d31.tar.bz2 |
Implemented the v4l2 mpeg api for blackbird cards.
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-mpeg.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-mpeg.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c index 4c2daad11..1edca28f4 100644 --- a/linux/drivers/media/video/cx88/cx88-mpeg.c +++ b/linux/drivers/media/video/cx88/cx88-mpeg.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-mpeg.c,v 1.38 2005/08/30 15:01:48 mchehab Exp $ + * $Id: cx88-mpeg.c,v 1.39 2005/09/06 21:58:43 catalin Exp $ * * Support for the mpeg transport stream transfers * PCI function #2 of the cx2388x. @@ -56,11 +56,14 @@ static int cx8802_start_dma(struct cx8802_dev *dev, { struct cx88_core *core = dev->core; - dprintk(0, "cx8802_start_dma %d\n", buf->vb.width); + dprintk(0, "cx8802_start_dma w: %d, h: %d, f: %d\n", dev->width, dev->height, buf->vb.field); /* setup fifo + format */ cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28], dev->ts_packet_size, buf->risc.dma); +#if 0 + cx88_set_scale(core, dev->width, dev->height, buf->vb.field); +#endif /* write TS length to chip */ cx_write(MO_TS_LNGTH, buf->vb.width); @@ -169,7 +172,8 @@ static int cx8802_restart_queue(struct cx8802_dev *dev, /* ------------------------------------------------------------------ */ -int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf) +int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf, + enum v4l2_field field) { int size = dev->ts_packet_size * dev->ts_packet_count; int rc; @@ -182,7 +186,7 @@ int cx8802_buf_prepare(struct cx8802_dev *dev, struct cx88_buffer *buf) buf->vb.width = dev->ts_packet_size; buf->vb.height = dev->ts_packet_count; buf->vb.size = size; - buf->vb.field = V4L2_FIELD_TOP; + buf->vb.field = field /*V4L2_FIELD_TOP*/; if (0 != (rc = videobuf_iolock(dev->pci,&buf->vb,NULL))) goto fail; |