#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 { \
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;