summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-12-02 19:00:57 +0100
committerJean-Francois Moine <moinejf@free.fr>2008-12-02 19:00:57 +0100
commitb999679a2733164c8241db55370190c699fd55fd (patch)
tree0dd14a7caf19ec6e02a224c49a140806b7318a3f /linux/drivers/media/video/gspca
parenta6c9884ef27fe6f0ac152b686bfb59ff9d112f54 (diff)
downloadmediapointer-dvb-s2-b999679a2733164c8241db55370190c699fd55fd.tar.gz
mediapointer-dvb-s2-b999679a2733164c8241db55370190c699fd55fd.tar.bz2
gspca: Fix image problem at low resolutions with ov7660 in sonixj.
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r--linux/drivers/media/video/gspca/sonixj.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/linux/drivers/media/video/gspca/sonixj.c b/linux/drivers/media/video/gspca/sonixj.c
index a0ff265cd..368382cf7 100644
--- a/linux/drivers/media/video/gspca/sonixj.c
+++ b/linux/drivers/media/video/gspca/sonixj.c
@@ -1394,19 +1394,15 @@ static int sd_start(struct gspca_dev *gspca_dev)
default:
/* case SENSOR_OV7660: */
ov7660_InitSensor(gspca_dev);
- if (mode) {
-/* reg17 = 0x21; * 320 */
-/* reg1 = 0x44; */
-/* reg1 = 0x46; (done) */
- } else { /* 640 */
- if (sd->bridge == BRIDGE_SN9C120) {
+ if (sd->bridge == BRIDGE_SN9C120) {
+ if (mode) { /* 320x240 - 160x120 */
reg17 = 0xa2;
reg1 = 0x44; /* 48 Mhz, video trf eneble */
- } else {
- reg17 = 0x22;
- reg1 = 0x06; /* 24 Mhz, video trf eneble
- * inverse power down */
}
+ } else {
+ reg17 = 0x22;
+ reg1 = 0x06; /* 24 Mhz, video trf eneble
+ * inverse power down */
}
break;
}