diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-03-21 14:07:44 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-04-20 19:41:47 +0300 |
commit | 304d2a7fc8acc1bb337596e0fc301092ea079b4d (patch) | |
tree | 731d94a3929bc091ca88fce16eaf8479fef198a7 /drivers/staging/media | |
parent | 13431509a41889a70cc76b31180f63fd10d0a5b3 (diff) | |
download | linux-304d2a7fc8acc1bb337596e0fc301092ea079b4d.tar.xz |
[media] tw686x-kh: specify that the DMA is 32 bits
Set vb2_queue.gfp_flags to GFP_DMA32. Otherwise it will start to
create bounce buffers which is something you want to avoid since
those are in limited supply.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r-- | drivers/staging/media/tw686x-kh/tw686x-kh-video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/tw686x-kh/tw686x-kh-video.c b/drivers/staging/media/tw686x-kh/tw686x-kh-video.c index 0650c29f78eb..2065c6c906bc 100644 --- a/drivers/staging/media/tw686x-kh/tw686x-kh-video.c +++ b/drivers/staging/media/tw686x-kh/tw686x-kh-video.c @@ -766,6 +766,7 @@ 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; err = vb2_queue_init(&vc->vidq); if (err) |