camera rk30 :fix bug in rk_camera_set_digit_zoom,must be reenabled after disable.

This commit is contained in:
root
2012-08-22 18:44:06 +08:00
parent 76b884dcf6
commit 104fde58c3

4
drivers/media/video/rk30_camera_oneframe.c Normal file → Executable file
View File

@@ -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;