media: videobuf2-dma-nvmap: fixing nvmap_alloc failure
Bryan Wu [Wed, 9 Jan 2013 19:18:43 +0000 (11:18 -0800)]
Videobuf2-dma-nvmap driver using by Tegra v4l2 camera driver needs to
allocation memory from system memory with nvmap_alloc(). If we don't
enable config option CONFIG_NVMAP_ALLOW_SYSMEM, nvmap_alloc() will
fail and application stops working.

Bug 1215629

Change-Id: I40af697d8aee1a4981a9684953107dd070cc9bea
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/190037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>

drivers/media/video/Kconfig

index 7968ea9..651a17e 100644 (file)
@@ -70,6 +70,7 @@ config VIDEOBUF2_DMA_SG
 config VIDEOBUF2_DMA_NVMAP
        select VIDEOBUF2_CORE
        select VIDEOBUF2_MEMOPS
+       select NVMAP_ALLOW_SYSMEM
        tristate
 
 #