summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/marvell-ccic/mmp-driver.c
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2011-06-20 21:14:40 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 22:53:11 +0200
commita9b36e850782db853b9da050be9ed2050de51ad4 (patch)
tree40f372b8a9e6ad06eca64cc0f199e4edfa7b461a /drivers/media/video/marvell-ccic/mmp-driver.c
parent[media] marvell-cam: Don't spam the logs on frame loss (diff)
downloadlinux-a9b36e850782db853b9da050be9ed2050de51ad4.tar.xz
linux-a9b36e850782db853b9da050be9ed2050de51ad4.zip
[media] marvell-cam: implement contiguous DMA operation
The core driver can now operate in either vmalloc or dma-contig modes; obviously the latter is preferable when it is supported. Default is currently vmalloc on all platforms; load the module with buffer_mode=1 for contiguous DMA mode. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/marvell-ccic/mmp-driver.c')
-rw-r--r--drivers/media/video/marvell-ccic/mmp-driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/marvell-ccic/mmp-driver.c b/drivers/media/video/marvell-ccic/mmp-driver.c
index ac9976f23a61..7b9c48c897e5 100644
--- a/drivers/media/video/marvell-ccic/mmp-driver.c
+++ b/drivers/media/video/marvell-ccic/mmp-driver.c
@@ -180,6 +180,7 @@ static int mmpcam_probe(struct platform_device *pdev)
mcam->dev = &pdev->dev;
mcam->use_smbus = 0;
mcam->chip_id = V4L2_IDENT_ARMADA610;
+ mcam->buffer_mode = B_vmalloc; /* Switch to dma */
spin_lock_init(&mcam->dev_lock);
/*
* Get our I/O memory.