D1 Capture - kernel 2.6.22
diff --exclude CVS -uNr linux-2.6.22/include/asm-arm/arch-mxc/memory.h linux-2.6.22.modified/include/asm-arm/arch-mxc/memory.h
--- linux-2.6.22/include/asm-arm/arch-mxc/memory.h 2009-07-16 16:29:45.000000000 -0300
+++ linux-2.6.22.modified/include/asm-arm/arch-mxc/memory.h 2009-07-15 15:38:34.000000000 -0300
@@ -28,6 +28,7 @@
/* Size of contiguous memory for DMA and other h/w blocks */
#define CONSISTENT_DMA_SIZE SZ_16M
+
/*!
* @defgroup Memory_MX27 Memory Map
* @ingroup MSL_MX27
@@ -48,7 +49,7 @@
#ifdef CONFIG_DMA_ZONE_SIZE
#define MXC_DMA_ZONE_SIZE ((CONFIG_DMA_ZONE_SIZE * SZ_1M) >> PAGE_SHIFT)
#else
-#define MXC_DMA_ZONE_SIZE ((12 * SZ_1M) >> PAGE_SHIFT)
+#define MXC_DMA_ZONE_SIZE ((20 * SZ_1M) >> PAGE_SHIFT)
#endif
static inline void __arch_adjust_zones(int node, unsigned long *zone_size,
diff --exclude CVS -uNr linux-2.6.22/drivers/media/video/mxc/capture/mxc_v4l2_capture.c linux-2.6.22.modified/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
--- linux-2.6.22/drivers/media/video/mxc/capture/mxc_v4l2_capture.c 2009-07-16 16:29:43.000000000 -0300
+++ linux-2.6.22.modified/drivers/media/video/mxc/capture/mxc_v4l2_capture.c 2009-07-16 16:08:02.000000000 -0300
@@ -1650,9 +1650,9 @@
/* setup cropping */
cam->crop_bounds.left = 0;
- cam->crop_bounds.width = 640;
+ cam->crop_bounds.width = 800;
cam->crop_bounds.top = 0;
- cam->crop_bounds.height = 480;
+ cam->crop_bounds.height = 600;
cam->crop_current = cam->crop_defrect = cam->crop_bounds;
ipu_csi_set_window_size(cam->crop_current.width,
cam->crop_current.height);
@@ -1663,7 +1663,7 @@
cam->standard.id = V4L2_STD_UNKNOWN;
cam->standard.frameperiod.denominator = 30;
cam->standard.frameperiod.numerator = 1;
- cam->standard.framelines = 480;
+ cam->standard.framelines = 600;
cam->streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
cam->streamparm.parm.capture.timeperframe =
cam->standard.frameperiod; cam->streamparm.parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
diff --exclude CVS -uNr linux-2.6.22/drivers/media/video/mxc/capture/ov2640.c linux-2.6.22.modified/drivers/media/video/mxc/capture/ov2640.c
--- linux-2.6.22/drivers/media/video/mxc/capture/ov2640.c 2009-07-16 16:29:45.000000000 -0300
+++ linux-2.6.22.modified/drivers/media/video/mxc/capture/ov2640.c 2009-07-16 16:07:03.000000000 -0300
@@ -698,12 +698,12 @@
#endif
g_cam->streamparm.parm.capture.capturemode = 1;
} else {
- out_width = 640;
- out_height = 480;
+ out_width = 800;
+ out_height = 600;
g_cam->crop_bounds.left = 0;
- g_cam->crop_bounds.width = 640;
+ g_cam->crop_bounds.width = 800;
g_cam->crop_bounds.top = 0;
- g_cam->crop_bounds.height = 480;
+ g_cam->crop_bounds.height = 600;
g_cam->crop_current = g_cam->crop_defrect = g_cam->crop_bounds;
#ifdef CONFIG_ARCH_MX3
ipu_csi_set_window_size(g_cam->crop_current.width ,