mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[media] ARM mx3_camera: check for DMA engine type
We have two dma engines in MX3 systems: The IPU and the SDMA engine. We have to check if we got a channel from the correct engine before proceeding with a channel. Signed-off-by: Sascha Hauer <[email protected]> Cc: Guennadi Liakhovetski <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
4f52610e29
commit
a8de663579
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <mach/ipu.h>
|
||||
#include <mach/mx3_camera.h>
|
||||
#include <mach/dma.h>
|
||||
|
||||
#define MX3_CAM_DRV_NAME "mx3-camera"
|
||||
|
||||
|
|
@ -638,6 +639,9 @@ static bool chan_filter(struct dma_chan *chan, void *arg)
|
|||
struct dma_chan_request *rq = arg;
|
||||
struct mx3_camera_pdata *pdata;
|
||||
|
||||
if (!imx_dma_is_ipu(chan))
|
||||
return false;
|
||||
|
||||
if (!rq)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue