Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-08-03 14:08:45 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-03 14:09:12 +0200
commitb6a00990aa2fe1de3cf8b65929ee313bbeefde1c (patch)
treeeb471fd774ac07fe0b188321288890afa2422b68
parenta1e5fdb38a97727f0168df746087ea04ef5958ae (diff)
media: tw686x: Fix incorrect vb2_mem_ops GFP flags
(bsc#1051510). suse-commit: ed46958d698b99699de1d2b839fd6f04931fb39f
-rw-r--r--drivers/media/pci/tw686x/tw686x-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/tw686x/tw686x-video.c b/drivers/media/pci/tw686x/tw686x-video.c
index c3fafa97b2d0..0ea8dd44026c 100644
--- a/drivers/media/pci/tw686x/tw686x-video.c
+++ b/drivers/media/pci/tw686x/tw686x-video.c
@@ -1228,7 +1228,8 @@ int tw686x_video_init(struct tw686x_dev *dev)
vc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
vc->vidq.min_buffers_needed = 2;
vc->vidq.lock = &vc->vb_mutex;
- vc->vidq.gfp_flags = GFP_DMA32;
+ vc->vidq.gfp_flags = dev->dma_mode != TW686X_DMA_MODE_MEMCPY ?
+ GFP_DMA32 : 0;
vc->vidq.dev = &dev->pci_dev->dev;
err = vb2_queue_init(&vc->vidq);