camera rk30 :fix bug in rk_camera_set_digit_zoom,must be reenabled after disable.
authorroot <root@zyc-desktop.(none)>
Wed, 22 Aug 2012 10:44:06 +0000 (18:44 +0800)
committerroot <root@zyc-desktop.(none)>
Wed, 22 Aug 2012 10:44:06 +0000 (18:44 +0800)
drivers/media/video/rk30_camera_oneframe.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 89de104..e4ec396
@@ -50,7 +50,7 @@
 #include <mach/rk2928_camera.h>
 #endif
 #include <asm/cacheflush.h>
-static int debug ;
+static int debug;
 module_param(debug, int, S_IRUGO|S_IWUSR);
 
 #define dprintk(level, fmt, arg...) do {                       \
@@ -2708,7 +2708,7 @@ static int rk_camera_set_digit_zoom(struct soc_camera_device *icd,
        write_cif_reg(pcdev->base,CIF_CIF_FRAME_STATUS,  0x00000002);//frame1 has been ready to receive data,frame 2 is not used
        if(pcdev->active)
                rk_videobuf_capture(pcdev->active,pcdev);
-       if((tmp_cifctrl & ENABLE_CAPTURE) == 0)
+       if(tmp_cifctrl & ENABLE_CAPTURE)
                write_cif_reg(pcdev->base,CIF_CIF_CTRL, (tmp_cifctrl | ENABLE_CAPTURE));
        up(&pcdev->zoominfo.sem);
        pcdev->stop_cif = false;