diff options
author | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-08-01 12:46:12 +0200 |
---|---|---|
committer | Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de> | 2012-08-01 12:53:47 +0200 |
commit | 72f38c6adbc3f988e79c70d3c16808281764b3b4 (patch) | |
tree | 7b213d43c30eff67cbfe1a6678b3f0e030aa2ae2 /drivers/video | |
parent | f9c378d5c317913f5f6327a8b47558c3b43b1a55 (diff) | |
download | kernel_samsung_smdk4412-72f38c6adbc3f988e79c70d3c16808281764b3b4.zip kernel_samsung_smdk4412-72f38c6adbc3f988e79c70d3c16808281764b3b4.tar.gz kernel_samsung_smdk4412-72f38c6adbc3f988e79c70d3c16808281764b3b4.tar.bz2 |
s3cfb: gamma corrections from hardcore/speedmod
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/samsung/mdnie_table_c1m0.h | 4 | ||||
-rw-r--r-- | drivers/video/samsung/s3cfb_s6e8aa0.c | 62 |
2 files changed, 27 insertions, 39 deletions
diff --git a/drivers/video/samsung/mdnie_table_c1m0.h b/drivers/video/samsung/mdnie_table_c1m0.h index a03fc19..6dafe85 100644 --- a/drivers/video/samsung/mdnie_table_c1m0.h +++ b/drivers/video/samsung/mdnie_table_c1m0.h @@ -6,7 +6,7 @@ static const unsigned short tune_cyanogenmod[] = { 0x0000, 0x0000, /*BANK 0*/ - 0x0008, 0x000c, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/ + 0x0008, 0x0088, /*Dither8 UC4 ABC2 CP1 | CC8 MCM4 SCR2 SCC1 | CS8 DE4 DNR2 HDR1*/ 0x0030, 0x0000, /*FA cs1 de8 hdr2 fa1*/ 0x0092, 0x0040, /*DE pe*/ 0x0093, 0x0040, /*DE pf*/ @@ -19,7 +19,7 @@ static const unsigned short tune_cyanogenmod[] = { 0x00b0, 0x1010, /*CS hg ry*/ 0x00b1, 0x1010, /*CS hg gc*/ 0x00b2, 0x1010, /*CS hg bm*/ - 0x00b3, 0x1204, /*CS weight grayTH*/ + 0x00b3, 0x1404, /*CS weight grayTH*/ 0x00ff, 0x0000, /*Mask Release*/ END_SEQ, 0x0000, }; diff --git a/drivers/video/samsung/s3cfb_s6e8aa0.c b/drivers/video/samsung/s3cfb_s6e8aa0.c index 987b215..ff94492 100644 --- a/drivers/video/samsung/s3cfb_s6e8aa0.c +++ b/drivers/video/samsung/s3cfb_s6e8aa0.c @@ -286,88 +286,76 @@ static int get_backlight_level_from_brightness(int brightness) switch (brightness) { case 0 ... 29: - backlightlevel = GAMMA_20CD; + backlightlevel = GAMMA_30CD; //GAMMA_20CD; break; case 30 ... 39: - backlightlevel = GAMMA_30CD; + backlightlevel = GAMMA_40CD; //GAMMA_30CD; break; case 40 ... 49: - backlightlevel = GAMMA_40CD; + backlightlevel = GAMMA_50CD; //GAMMA_40CD; break; case 50 ... 59: - backlightlevel = GAMMA_50CD; + backlightlevel = GAMMA_60CD; //GAMMA_50CD; break; case 60 ... 69: - backlightlevel = GAMMA_60CD; + backlightlevel = GAMMA_70CD; //GAMMA_60CD; break; case 70 ... 79: - backlightlevel = GAMMA_70CD; + backlightlevel = GAMMA_80CD; //GAMMA_70CD; break; case 80 ... 89: - backlightlevel = GAMMA_80CD; + backlightlevel = GAMMA_90CD; //GAMMA_80CD; break; case 90 ... 99: - backlightlevel = GAMMA_90CD; + backlightlevel = GAMMA_100CD; //GAMMA_90CD; break; case 100 ... 109: - backlightlevel = GAMMA_100CD; + backlightlevel = GAMMA_110CD; //GAMMA_100CD; break; case 110 ... 119: - backlightlevel = GAMMA_110CD; + backlightlevel = GAMMA_130CD; //GAMMA_110CD; break; case 120 ... 129: - backlightlevel = GAMMA_120CD; + backlightlevel = GAMMA_140CD; //GAMMA_120CD; break; case 130 ... 139: - backlightlevel = GAMMA_130CD; + backlightlevel = GAMMA_150CD; //GAMMA_130CD; break; case 140 ... 149: - backlightlevel = GAMMA_140CD; + backlightlevel = GAMMA_160CD; //GAMMA_140CD; break; case 150 ... 159: - backlightlevel = GAMMA_150CD; + backlightlevel = GAMMA_180CD; //GAMMA_150CD; break; case 160 ... 169: - backlightlevel = GAMMA_160CD; + backlightlevel = GAMMA_190CD; //GAMMA_160CD; break; case 170 ... 179: - backlightlevel = GAMMA_170CD; - break; - case 180 ... 181: - backlightlevel = GAMMA_180CD; - break; - case 182 ... 183: - backlightlevel = GAMMA_182CD; - break; - case 184 ... 185: - backlightlevel = GAMMA_184CD; + backlightlevel = GAMMA_200CD; //GAMMA_170CD; break; - case 186 ... 187: - backlightlevel = GAMMA_186CD; - break; - case 188 ... 189: - backlightlevel = GAMMA_188CD; + case 180 ... 189: + backlightlevel = GAMMA_210CD; break; case 190 ... 199: - backlightlevel = GAMMA_190CD; + backlightlevel = GAMMA_220CD; //GAMMA_190CD; break; case 200 ... 209: - backlightlevel = GAMMA_200CD; + backlightlevel = GAMMA_230CD; //GAMMA_200CD; break; case 210 ... 219: - backlightlevel = GAMMA_210CD; + backlightlevel = GAMMA_240CD; //GAMMA_210CD; break; case 220 ... 229: - backlightlevel = GAMMA_220CD; + backlightlevel = GAMMA_240CD; //GAMMA_220CD; break; case 230 ... 239: - backlightlevel = GAMMA_230CD; + backlightlevel = GAMMA_250CD; //GAMMA_230CD; break; case 240 ... 249: - backlightlevel = GAMMA_240CD; + backlightlevel = GAMMA_250CD; //GAMMA_240CD; break; case 250 ... 254: - backlightlevel = GAMMA_250CD; + backlightlevel = GAMMA_300CD; //GAMMA_250CD; break; case 255: backlightlevel = GAMMA_300CD; |