media: vivid: disable VB2_USERPTR if dma_contig was configured
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 14 Jan 2019 13:50:54 +0000 (08:50 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 18:36:42 +0000 (13:36 -0500)
commit6f7f1bff2d9896fc743e7e110e9ab288f5ad7cbf
treeff8bab6a96f663fbacb75072daf2952f60827f2b
parent8f57763e521c2798a8e1c91efb822fd6e0fb3b72
media: vivid: disable VB2_USERPTR if dma_contig was configured

It makes no sense to support the USERPTR memory model if the vivid instance was
configured as dma_contig. Disable it if this is the case.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-core.c