diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-02-16 05:11:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:09 -0400 |
commit | 8bc50f354047f4afb31fc85f0efb6bfe28ce9e57 (patch) | |
tree | 5225be5d10d74731ad3dabff7d8c698d562fb38e /drivers/media/video/gspca/sn9c20x.c | |
parent | 9839029b052f094b9c14cb60e7c729950dd28712 (diff) |
[media] gspca_sn9c20x: Fix colored borders with ov7660 sensor
Tested with a camera with usb-id: 0c45:62bb
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sn9c20x.c')
-rw-r--r-- | drivers/media/video/gspca/sn9c20x.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index fcf29897b713..40e316ac3951 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -884,6 +884,9 @@ static struct i2c_reg_u8 ov7660_init[] = { | |||
884 | {0x0e, 0x80}, {0x0d, 0x08}, {0x0f, 0xc3}, | 884 | {0x0e, 0x80}, {0x0d, 0x08}, {0x0f, 0xc3}, |
885 | {0x04, 0xc3}, {0x10, 0x40}, {0x11, 0x40}, | 885 | {0x04, 0xc3}, {0x10, 0x40}, {0x11, 0x40}, |
886 | {0x12, 0x05}, {0x13, 0xba}, {0x14, 0x2a}, | 886 | {0x12, 0x05}, {0x13, 0xba}, {0x14, 0x2a}, |
887 | /* HDG Set hstart and hstop, datasheet default 0x11, 0x61, using | ||
888 | 0x10, 0x61 and sd->hstart, vstart = 3, fixes ugly colored borders */ | ||
889 | {0x17, 0x10}, {0x18, 0x61}, | ||
887 | {0x37, 0x0f}, {0x38, 0x02}, {0x39, 0x43}, | 890 | {0x37, 0x0f}, {0x38, 0x02}, {0x39, 0x43}, |
888 | {0x3a, 0x00}, {0x69, 0x90}, {0x2d, 0xf6}, | 891 | {0x3a, 0x00}, {0x69, 0x90}, {0x2d, 0xf6}, |
889 | {0x2e, 0x0b}, {0x01, 0x78}, {0x02, 0x50}, | 892 | {0x2e, 0x0b}, {0x01, 0x78}, {0x02, 0x50}, |
@@ -1334,8 +1337,8 @@ static int ov7660_init_sensor(struct gspca_dev *gspca_dev) | |||
1334 | } | 1337 | } |
1335 | /* disable hflip and vflip */ | 1338 | /* disable hflip and vflip */ |
1336 | gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX); | 1339 | gspca_dev->ctrl_dis = (1 << HFLIP_IDX) | (1 << VFLIP_IDX); |
1337 | sd->hstart = 1; | 1340 | sd->hstart = 3; |
1338 | sd->vstart = 1; | 1341 | sd->vstart = 3; |
1339 | return 0; | 1342 | return 0; |
1340 | } | 1343 | } |
1341 | 1344 | ||