diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch new file mode 100644 index 00000000..409c08fb --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/cam/0072-omap3beagle-camera-Fix-dual-sensor-registration.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 838aed68f8efa16e9915795ddb968157d40fca6b Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergio Aguirre <saaguirre@ti.com> | ||
3 | Date: Thu, 22 Jul 2010 11:03:33 -0500 | ||
4 | Subject: [PATCH 72/75] omap3beagle: camera: Fix dual sensor registration | ||
5 | |||
6 | dev_index should be different, which represents an internal index | ||
7 | in the master camera driver. | ||
8 | |||
9 | Also, make device video nodes be alloted with the "first free", by setting | ||
10 | dev_minor to -1. | ||
11 | |||
12 | Signed-off-by: Sergio Aguirre <saaguirre@ti.com> | ||
13 | --- | ||
14 | arch/arm/mach-omap2/board-omap3beagle-camera.c | 6 +++--- | ||
15 | 1 files changed, 3 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/arch/arm/mach-omap2/board-omap3beagle-camera.c b/arch/arm/mach-omap2/board-omap3beagle-camera.c | ||
18 | index 520e1d8..c0218e3 100644 | ||
19 | --- a/arch/arm/mach-omap2/board-omap3beagle-camera.c | ||
20 | +++ b/arch/arm/mach-omap2/board-omap3beagle-camera.c | ||
21 | @@ -107,7 +107,7 @@ static int mt9v113_ifparm(struct v4l2_ifparm *p) | ||
22 | |||
23 | static struct omap34xxcam_hw_config mt9v113_hwc = { | ||
24 | .dev_index = 0, | ||
25 | - .dev_minor = 0, | ||
26 | + .dev_minor = -1, | ||
27 | .dev_type = OMAP34XXCAM_SLAVE_SENSOR, | ||
28 | .u.sensor.sensor_isp = 1, | ||
29 | .u.sensor.capture_mem = MT9V113_MAX_FRAME_SIZE * 2, | ||
30 | @@ -259,8 +259,8 @@ static int mt9t112_ifparm(struct v4l2_ifparm *p) | ||
31 | |||
32 | #if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE) | ||
33 | static struct omap34xxcam_hw_config mt9t112_hwc = { | ||
34 | - .dev_index = 0, | ||
35 | - .dev_minor = 0, | ||
36 | + .dev_index = 1, | ||
37 | + .dev_minor = -1, | ||
38 | .dev_type = OMAP34XXCAM_SLAVE_SENSOR, | ||
39 | .u.sensor.sensor_isp = 0, | ||
40 | .u.sensor.capture_mem = MT9T112_BIGGEST_FRAME_BYTE_SIZE, | ||
41 | -- | ||
42 | 1.6.6.1 | ||
43 | |||