summaryrefslogtreecommitdiff
path: root/drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2012-02-13 17:45:17 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:22:44 +0800
commit4ff8681b337913268aa584cb88f59e22a7d06fa7 (patch)
tree588c16176ce6efb872d6e209134fa82c497b7b07 /drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c
parent08dcb97c75726240494fb8ca5cf56edfa7fd795f (diff)
downloadlinux-4ff8681b337913268aa584cb88f59e22a7d06fa7.tar.gz
ENGR00174395 V4L2 capture: Driver improvement
1) CSI module should be disabled first for CSI_MEM channel, otherwise, the capture channels will hang after restarting for several times. 2) Disable CSI module correctly for overlay. Move stopping preview channel operation out of de-select interface. 3) Check cam->overlay_on is true in close function before stopping preview. 4) Check cam->vf_start_sdc function before calling it. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Diffstat (limited to 'drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c')
-rw-r--r--drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c b/drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c
index 99fa4eaecfac..e6bf7910faef 100644
--- a/drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c
+++ b/drivers/media/video/mxc/capture/ipu_prp_vf_sdc_bg.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2004-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -472,8 +472,6 @@ int prp_vf_sdc_select_bg(void *private)
int prp_vf_sdc_deselect_bg(void *private)
{
cam_data *cam = (cam_data *) private;
- int err = 0;
- err = prpvf_stop(private);
if (cam) {
cam->vf_start_sdc = NULL;
@@ -481,7 +479,7 @@ int prp_vf_sdc_deselect_bg(void *private)
cam->vf_enable_csi = NULL;
cam->vf_disable_csi = NULL;
}
- return err;
+ return 0;
}
/*!