]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00229952 mxc_v4l2_capture: csi ic mem uses hard coded initial DMA base addr
authorSheng Nan <b38800@freescale.com>
Wed, 17 Oct 2012 06:14:06 +0000 (14:14 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:35 +0000 (08:35 +0200)
When setup csi ic mem on the fly channel, the capture output buffer is
initialized with hard coded dummy address 0xdeadbeaf

This also causes IPU warning when use this channel:
imx-ipuv3 imx-ipuv3.0: IDMAC20's EBA0 is not 8-byte aligned

- use the pre-allocated dummy_frame.vaddress instead of 0xdeadbeaf

Signed-off-by: Sheng Nan <b38800@freescale.com>
drivers/media/video/mxc/capture/ipu_prp_enc.c

index def416570de3421855ed08f736a4ec4b3db4fe16..a3c90d53f2eb6ccef846f6c46c3e21db278a4d5a 100644 (file)
@@ -70,7 +70,7 @@ static int prp_enc_setup(cam_data *cam)
 {
        ipu_channel_params_t enc;
        int err = 0;
-       dma_addr_t dummy = 0xdeadbeaf;
+       dma_addr_t dummy = cam->dummy_frame.buffer.m.offset;
 #ifdef CONFIG_MXC_MIPI_CSI2
        void *mipi_csi2_info;
        int ipu_id;