[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>
This commit is contained in:
parent
cc11b140c3
commit
7c89a21b88
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue