diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-18 23:14:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-18 23:14:49 -0500 |
commit | 0ec28c37c21a2b4393692e832e11a7573ac545e2 (patch) | |
tree | 91ef6e8adc34f6b0395cb5f95d6a8383ad2b8471 /drivers/media/pci/cx88/cx88-dvb.c | |
parent | 4c929feed7e9ce69efbe85e3932393db67fbce76 (diff) | |
parent | 427ae153c65ad7a08288d86baf99000569627d03 (diff) |
Merge tag 'media/v3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull second set of media updates from Mauro Carvalho Chehab:
- Move drivers for really old legacy hardware to staging. Those are
using obsolete media kAPIs and are for hardware that nobody uses for
years. Simply not worth porting them to the new kAPIs. Of course,
if anyone pops up to fix, we can move them back from there
- While not too late, do some API fixups at the new colorspace API,
added for v3.19
- Some improvements for rcar_vin driver
- Some fixups at cx88 and vivid drivers
- Some Documentation fixups
* tag 'media/v3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
[media] bq/c-qcam, w9966, pms: move to staging in preparation for removal
[media] tlg2300: move to staging in preparation for removal
[media] vino/saa7191: move to staging in preparation for removal
[media] MAINTAINERS: vivi -> vivid
[media] cx88: remove leftover start_video_dma() call
[media] cx88: add missing alloc_ctx support
[media] v4l2-ioctl: WARN_ON if querycap didn't fill device_caps
[media] vivid: fix CROP_BOUNDS typo for video output
[media] DocBook media: update version number and document changes
[media] vivid.txt: document new controls
[media] DocBook media: add missing ycbcr_enc and quantization fields
[media] v4l2-mediabus.h: use two __u16 instead of two __u32
[media] rcar_vin: Fix interrupt enable in progressive
[media] rcar_vin: Enable VSYNC field toggle mode
[media] rcar_vin: Add scaling support
[media] rcar_vin: Add DT support for r8a7793 and r8a7794 SoCs
[media] rcar_vin: Add YUYV capture format support
Diffstat (limited to 'drivers/media/pci/cx88/cx88-dvb.c')
-rw-r--r-- | drivers/media/pci/cx88/cx88-dvb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/pci/cx88/cx88-dvb.c b/drivers/media/pci/cx88/cx88-dvb.c index c344bfd0b896..5780e2f013b4 100644 --- a/drivers/media/pci/cx88/cx88-dvb.c +++ b/drivers/media/pci/cx88/cx88-dvb.c | |||
@@ -92,6 +92,7 @@ static int queue_setup(struct vb2_queue *q, const struct v4l2_format *fmt, | |||
92 | dev->ts_packet_size = 188 * 4; | 92 | dev->ts_packet_size = 188 * 4; |
93 | dev->ts_packet_count = dvb_buf_tscnt; | 93 | dev->ts_packet_count = dvb_buf_tscnt; |
94 | sizes[0] = dev->ts_packet_size * dev->ts_packet_count; | 94 | sizes[0] = dev->ts_packet_size * dev->ts_packet_count; |
95 | alloc_ctxs[0] = dev->alloc_ctx; | ||
95 | *num_buffers = dvb_buf_tscnt; | 96 | *num_buffers = dvb_buf_tscnt; |
96 | return 0; | 97 | return 0; |
97 | } | 98 | } |
@@ -108,14 +109,11 @@ static void buffer_finish(struct vb2_buffer *vb) | |||
108 | { | 109 | { |
109 | struct cx8802_dev *dev = vb->vb2_queue->drv_priv; | 110 | struct cx8802_dev *dev = vb->vb2_queue->drv_priv; |
110 | struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); | 111 | struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); |
111 | struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); | ||
112 | struct cx88_riscmem *risc = &buf->risc; | 112 | struct cx88_riscmem *risc = &buf->risc; |
113 | 113 | ||
114 | if (risc->cpu) | 114 | if (risc->cpu) |
115 | pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); | 115 | pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); |
116 | memset(risc, 0, sizeof(*risc)); | 116 | memset(risc, 0, sizeof(*risc)); |
117 | |||
118 | dma_unmap_sg(&dev->pci->dev, sgt->sgl, sgt->nents, DMA_FROM_DEVICE); | ||
119 | } | 117 | } |
120 | 118 | ||
121 | static void buffer_queue(struct vb2_buffer *vb) | 119 | static void buffer_queue(struct vb2_buffer *vb) |