summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
new file mode 100644
index 00000000..11abb8b4
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0030-WIP-mt9t111-Work-in-progress-for-camera-enablement.patch
@@ -0,0 +1,53 @@
1From b310c5ad504443f0d125ca92106f497e14acd8bd Mon Sep 17 00:00:00 2001
2From: Sergio Aguirre <saaguirre@ti.com>
3Date: Fri, 25 Jun 2010 16:01:47 -0500
4Subject: [PATCH 30/75] WIP: mt9t111: Work in progress for camera enablement
5
6This is changing so far:
7- Remove useless printk's in enum_frameinterval calls.
8- Call mt9t111_loaddefault instead of mt9t111_configure dummy function.
9
10Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
11---
12 drivers/media/video/mt9t111.c | 11 +----------
13 1 files changed, 1 insertions(+), 10 deletions(-)
14
15diff --git a/drivers/media/video/mt9t111.c b/drivers/media/video/mt9t111.c
16index 08122ff..10080af 100644
17--- a/drivers/media/video/mt9t111.c
18+++ b/drivers/media/video/mt9t111.c
19@@ -288,14 +288,6 @@ static int ioctl_enum_frameintervals(struct v4l2_int_device *s,
20 {
21 int ifmt;
22
23- printk(KERN_INFO "entering ioctl_enum_frameintervals\n");
24- printk(KERN_INFO "index = %d, pixel_format = 0x%x,"
25- " width = %d, height = %d\n",
26- frmi->index, frmi->pixel_format,
27- frmi->width, frmi->height);
28- printk(KERN_INFO "mt9t111 format = 0x%x\n",
29- mt9t111_formats[0].pixelformat);
30-
31 if (frmi->index >= NUM_CAPTURE_FRAMEINTERVALS)
32 return -EINVAL;
33
34@@ -379,7 +371,7 @@ static int ioctl_s_power(struct v4l2_int_device *s, enum v4l2_power on)
35 }
36
37 if ((on == V4L2_POWER_ON) && (sensor->state == SENSOR_DETECTED))
38- mt9t111_configure(s);
39+ mt9t111_loaddefault(c);
40
41 if ((on == V4L2_POWER_ON) && (sensor->state == SENSOR_NOT_DETECTED)) {
42 rval = mt9t111_detect(c);
43@@ -392,7 +384,6 @@ static int ioctl_s_power(struct v4l2_int_device *s, enum v4l2_power on)
44 dev_info(&c->dev, "chip version 0x%02x detected\n", rval);
45 sensor->state = SENSOR_DETECTED;
46 sensor->ver = rval;
47- mt9t111_loaddefault(c);
48 }
49 return 0;
50 }
51--
521.6.6.1
53