diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-04-26 06:27:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-01 08:25:59 -0300 |
commit | 7c89a21b88e6a07e1be811508f381673f498bc8a (patch) | |
tree | 5d1d40a99d3dcf7391272c44c889d716daebbc2e /drivers/media | |
parent | cc11b140c3f1ad80a9a7c5422748c041cb5fddfb (diff) |
[media] dt3155: add GFP_DMA32 flag to vb2 queue
Ensure that buffers are allocated from the DMA32 zone since this
device only handles 32 bit DMA addresses.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/dt3155/dt3155.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/dt3155/dt3155.c b/drivers/media/pci/dt3155/dt3155.c index 3131c2ee3b85..586c446a7054 100644 --- a/drivers/media/pci/dt3155/dt3155.c +++ b/drivers/media/pci/dt3155/dt3155.c @@ -538,6 +538,7 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) pd->vidq.mem_ops = &vb2_dma_contig_memops; pd->vidq.drv_priv = pd; pd->vidq.min_buffers_needed = 2; + pd->vidq.gfp_flags = GFP_DMA32; pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ pd->vdev.queue = &pd->vidq; err = vb2_queue_init(&pd->vidq); |