The patch number 11035 was added via Guennadi Liakhovetski
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
Linux Media Mailing List <[email protected]>
------
From: Philippe R?tornaz <[email protected]>
mt9t031 bugfix
- The video device is not allocated when mt9t031_init() is called, don't use
it in debug printk.
- The clock polarity is inverted in mt9t031_set_bus_param(), use the correct
one.
Signed-off-by: Philippe R?tornaz <[email protected]>
Signed-off-by: Guennadi Liakhovetski <[email protected]>
---
drivers/media/video/mt9t031.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
linux/drivers/media/video/mt9t031.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff -r fdb88a224b96 -r a1fe85c7c8b9 linux/drivers/media/video/mt9t031.c
--- a/linux/drivers/media/video/mt9t031.c Fri Mar 13 10:08:20 2009 +0100
+++ b/linux/drivers/media/video/mt9t031.c Fri Mar 13 13:42:32 2009 +0100
@@ -144,8 +144,6 @@ static int mt9t031_init(struct soc_camer
int ret;
/* Disable chip output, synchronous option update */
- dev_dbg(icd->vdev->parent, "%s\n", __func__);
-
ret = reg_write(icd, MT9T031_RESET, 1);
if (ret >= 0)
ret = reg_write(icd, MT9T031_RESET, 0);
@@ -186,9 +184,9 @@ static int mt9t031_set_bus_param(struct
return -EINVAL;
if (flags & SOCAM_PCLK_SAMPLE_FALLING)
+ reg_clear(icd, MT9T031_PIXEL_CLOCK_CONTROL, 0x8000);
+ else
reg_set(icd, MT9T031_PIXEL_CLOCK_CONTROL, 0x8000);
- else
- reg_clear(icd, MT9T031_PIXEL_CLOCK_CONTROL, 0x8000);
return 0;
}
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/a1fe85c7c8b97a37dc04ec196def5451fef97840
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits