Skip to content

Commit

Permalink
Video driver: allow much lower display brightness (affects
Browse files Browse the repository at this point in the history
 the brightness slider in Android)
  • Loading branch information
Oebbler authored and Mibo5354 committed Apr 3, 2020
1 parent b7ffe7f commit 0d20718
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
34 changes: 17 additions & 17 deletions drivers/video/samsung/aid_s6e8aa0.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
#define aid_180nit_110nit_F8_18th 0x42
#define aid_180nit_110nit_F8_1st 0x59
#define aid_100nit_20nit_F8_1st 0x59
#define aid_108nit_F8_18th 0x38
#define aid_106nit_F8_18th 0x2F
#define aid_104nit_F8_18th 0x25
#define aid_102nit_F8_18th 0x1C
#define aid_100nit_F8_18th 0x12
#define aid_90nit_F8_18th 0x22
#define aid_80nit_F8_18th 0x32
#define aid_70nit_F8_18th 0x41
#define aid_60nit_F8_18th 0x50
#define aid_50nit_F8_18th 0x5E
#define aid_40nit_F8_18th 0x6C
#define aid_30nit_F8_18th 0x7A
#define aid_20nit_F8_18th 0x88
#define aid_108nit_F8_18th 0x04
#define aid_106nit_F8_18th 0x1B
#define aid_104nit_F8_18th 0x32
#define aid_102nit_F8_18th 0x49
#define aid_100nit_F8_18th 0x5E
#define aid_90nit_F8_18th 0x73
#define aid_80nit_F8_18th 0x88
#define aid_70nit_F8_18th 0x90
#define aid_60nit_F8_18th 0x97
#define aid_50nit_F8_18th 0x9B
#define aid_40nit_F8_18th 0x9E
#define aid_30nit_F8_18th 0xA0
#define aid_20nit_F8_18th 0xA1
#define AOR40_BASE_188 201
#define AOR40_BASE_186 214
#define AOR40_BASE_184 234
Expand All @@ -40,10 +40,10 @@
#define AOR40_BASE_130 200
#define AOR40_BASE_120 186
#define AOR40_BASE_110 171
#define AOR40_BASE_108 156
#define AOR40_BASE_106 143
#define AOR40_BASE_104 130
#define AOR40_BASE_102 120
#define AOR40_BASE_108 110
#define AOR40_BASE_106 110
#define AOR40_BASE_104 110
#define AOR40_BASE_102 110
#define base_20to100 110

const struct rgb_offset_info aid_rgb_fix_table[] = {
Expand Down
28 changes: 14 additions & 14 deletions drivers/video/samsung/s3cfb_s6e8aa0.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,46 +289,46 @@ static int get_backlight_level_from_brightness(int brightness)
* But in this driver, brightness is only supported from 0 to 24 */

switch (brightness) {
case 0 ... 29:
case 0 ... 16:
backlightlevel = GAMMA_20CD;
break;
case 30 ... 39:
case 17 ... 24:
backlightlevel = GAMMA_30CD;
break;
case 40 ... 49:
case 25 ... 32:
backlightlevel = GAMMA_40CD;
break;
case 50 ... 59:
case 33 ... 40:
backlightlevel = GAMMA_50CD;
break;
case 60 ... 69:
case 41 ... 48:
backlightlevel = GAMMA_60CD;
break;
case 70 ... 79:
case 49 ... 56:
backlightlevel = GAMMA_70CD;
break;
case 80 ... 89:
case 57 ... 64:
backlightlevel = GAMMA_80CD;
break;
case 90 ... 99:
case 65 ... 72:
backlightlevel = GAMMA_90CD;
break;
case 100 ... 101:
case 73 ... 80:
backlightlevel = GAMMA_100CD;
break;
case 102 ... 103:
case 81 ... 88:
backlightlevel = GAMMA_102CD;
break;
case 104 ... 105:
case 89 ... 96:
backlightlevel = GAMMA_104CD;
break;
case 106 ... 107:
case 97 ... 104:
backlightlevel = GAMMA_106CD;
break;
case 108 ... 109:
case 105 ... 112:
backlightlevel = GAMMA_108CD;
break;
case 110 ... 119:
case 113 ... 119:
backlightlevel = GAMMA_110CD;
break;
case 120 ... 129:
Expand Down

0 comments on commit 0d20718

Please sign in to comment.