Commit 7c89a21b authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cc11b140
...@@ -538,6 +538,7 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -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.mem_ops = &vb2_dma_contig_memops;
pd->vidq.drv_priv = pd; pd->vidq.drv_priv = pd;
pd->vidq.min_buffers_needed = 2; pd->vidq.min_buffers_needed = 2;
pd->vidq.gfp_flags = GFP_DMA32;
pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */
pd->vdev.queue = &pd->vidq; pd->vdev.queue = &pd->vidq;
err = vb2_queue_init(&pd->vidq); err = vb2_queue_init(&pd->vidq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment