From: zyc Date: Fri, 12 Oct 2012 05:36:32 +0000 (+0800) Subject: camera: update hi704 driver X-Git-Tag: firefly_0821_release~8434 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4aa4a6903a5b52d2c58995932c5bb382c4c0c91b;p=firefly-linux-kernel-4.4.55.git camera: update hi704 driver --- diff --git a/drivers/media/video/hi704.c b/drivers/media/video/hi704.c index 09ea70fb3a1f..71951991d62e 100755 --- a/drivers/media/video/hi704.c +++ b/drivers/media/video/hi704.c @@ -123,7 +123,7 @@ static struct reginfo sensor_init_data[] = {0x01, 0xf3}, //PWRCTL(0x01[P0])Bit[1]:Software Reset. {0x01, 0xf1}, {0x10, 0x00},//vga mode -{0x11, 0x91}, //For No Fixed Framerate Bit[2] +{0x11, 0x90}, //For No Fixed Framerate Bit[2] {0x12, 0x04}, {0x20, 0x00}, @@ -150,13 +150,13 @@ static struct reginfo sensor_init_data[] = {0x85, 0x4b}, {0x89, 0x48}, -{0x90, 0x0b}, -{0x91, 0x0b}, -{0x92, 0x48}, -{0x93, 0x48}, +{0x90, 0x0c}, +{0x91, 0x0c}, +{0x92, 0x78}, +{0x93, 0x70}, {0x98, 0x38}, {0x99, 0x40}, -{0xa0, 0x00}, +{0xa0, 0x40}, {0xa8, 0x40}, //PAGE 2 @@ -240,7 +240,7 @@ static struct reginfo sensor_init_data[] = {0x11, 0x43}, {0x12, 0x30}, -{0x40, 0x10},//brightness +1 +{0x40, 0x00},//brightness +1 {0x41, 0x02}, {0x48, 0x98},//contrast level +1 @@ -379,7 +379,7 @@ static struct reginfo sensor_init_data[] = {0x39,0xbd}, {0x3a,0xc8}, {0x3b,0xd9}, -{0x3c,0xe8}, +{0x3c,0xe5}, {0x3d,0xf5}, {0x3e,0xff}, //0930 @@ -449,7 +449,7 @@ static struct reginfo sensor_init_data[] = {0x6A, 0x28}, {0x6B, 0xc8}, -{0x70, 0x42},//Y Target 42 +{0x70, 0x38},//Y Target 42 {0x76, 0x22}, //Unlock bnd1 {0x77, 0x02}, //Unlock bnd2 02->a2 _10_04_06 hhzin @@ -507,12 +507,12 @@ static struct reginfo sensor_init_data[] = {0x99, 0x23}, {0x9c, 0x0b}, //4shared limit_10_04_06 hhzin -{0x9d, 0x3b}, // 0x06d3 --> 0x0b3b +{0x9d, 0xb8}, // 0x06d3 --> 0x0b3b {0x9e, 0x00}, //4shared Unit_10_04_06 hhzin {0x9f, 0xfa}, // 0x01f4 --> 0xfa {0xb1, 0x14}, -{0xb2, 0x50}, +{0xb2, 0x30}, {0xb4, 0x14}, {0xb5, 0x38}, {0xb6, 0x26}, @@ -601,10 +601,10 @@ static struct reginfo sensor_vga[] = {0x20, 0x00}, {0x21, 0x04}, -{0x40, 0x00}, //HBLANK: 0x70 = 112 -{0x41, 0x70}, +{0x40, 0x01}, //HBLANK: 0x70 = 112 +{0x41, 0x58}, {0x42, 0x00}, //VBLANK: 0x04 = 4 -{0x43, 0x40}, +{0x43, 0x64}, {0x03, 0x11}, {0x10, 0x25}, @@ -612,19 +612,19 @@ static struct reginfo sensor_vga[] = {0x03, 0x20}, {0x83, 0x00}, {0x84, 0xaf}, -{0x85, 0x80}, +{0x85, 0xc8}, {0x86, 0x00}, -{0x87, 0xc0}, +{0x87, 0xf0}, {0x8b, 0x3a}, -{0x8c, 0x80}, +{0x8c, 0x98}, {0x8d, 0x30}, -{0x8e, 0xc0}, +{0x8e, 0xd4}, -{0x9c, 0x08}, -{0x9d, 0xa0}, +{0x9c, 0x0b}, +{0x9d, 0xb8}, {0x9e, 0x00}, -{0x9f, 0xc0}, +{0x9f, 0xfa}, {END_REG, END_REG}, }; @@ -646,7 +646,7 @@ static struct reginfo sensor_qvga[] = {0x40, 0x01}, //HBLANK: 0x0158 = 344 {0x41, 0x58}, {0x42, 0x00}, //VBLANK: 0x14 = 20 -{0x43, 0x14}, +{0x43, 0x64}, {0x03, 0x11}, //QVGA Fixframerate {0x10, 0x21}, @@ -665,7 +665,7 @@ static struct reginfo sensor_qvga[] = {0x8e, 0xd4}, {0x9c, 0x0b}, -{0x9d, 0x3b}, +{0x9d, 0xb8}, {0x9e, 0x00}, {0x9f, 0xfa}, {END_REG, END_REG}, @@ -984,8 +984,8 @@ static struct reginfo sensor_Saturation1[]= { //00 level {0x03, 0x10}, - {0x62, 0x90}, - {0x63, 0x90}, + {0x62, 0x80}, + {0x63, 0x80}, {END_REG, END_REG}, }; @@ -1029,7 +1029,7 @@ static struct reginfo sensor_Contrast3[]= { //Contrast 0 {0x03, 0x10}, - {0x48, 0x84}, + {0x48, 0x80}, {END_REG, END_REG}, };