From 2c785c99c2af7aa1dd73c3e56fed73666d745aef Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Mon, 25 Oct 2021 18:24:07 +0530 Subject: [PATCH] media: uvcvideo: Use cached memory for USB transfers Use kmalloc() + DMA streaming API instead of DMA coherent memory. The coherent memory is uncached and results in slower decode performance. Change-Id: Ibb5990adc3bc319fd704534721140644d76a5787 Signed-off-by: Pavankumar Kondeti --- drivers/media/usb/uvc/uvc_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index ffffb66d51a0..ce64c58aceb3 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -26,6 +26,8 @@ #include "uvcvideo.h" +#define CONFIG_DMA_NONCOHERENT 1 + /* ------------------------------------------------------------------------ * UVC Controls */