diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-25 15:21:31 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-25 15:21:31 +0000 |
commit | f18f9a806142f96f435480473796e12b4a11e7b4 (patch) | |
tree | ea05323a5695ea0d4ff7cf5d3094dbf8a6a2b167 /firmware/export/backlight.h | |
parent | 8bb4bab54b580b36d819e4e4fcc864a3335ef270 (diff) | |
download | rockbox-f18f9a806142f96f435480473796e12b4a11e7b4.tar.gz rockbox-f18f9a806142f96f435480473796e12b4a11e7b4.zip |
Patch FS#5712 by Michael Sevakis - X5 Backlight brightness improvement/fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10322 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/backlight.h')
-rw-r--r-- | firmware/export/backlight.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index c1a7ade38f..09960b7537 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h | |||
@@ -53,7 +53,16 @@ void sim_remote_backlight(int value); | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | 55 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS |
56 | #define MIN_BRIGHTNESS_SETTING 2 | 56 | #ifdef IAUDIO_X5 |
57 | #define MAX_BRIGHTNESS_SETTING 15 | 57 | /* PFC50506 can output 0%-100% duty cycle but D305A expects %15-100%. */ |
58 | #define MIN_BRIGHTNESS_SETTING 1 /* 15/16 (93.75%) */ | ||
59 | #define MAX_BRIGHTNESS_SETTING 13 /* 3/16 (18.75%) */ | ||
60 | #define DEFAULT_BRIGHTNESS_SETTING 8 /* 8/16 (50.00%) = x5 boot default */ | ||
61 | #else | ||
62 | #define MIN_BRIGHTNESS_SETTING 2 /* 2/16 (12.50%) */ | ||
63 | #define MAX_BRIGHTNESS_SETTING 15 /* 15/16 (93.75%) */ | ||
64 | #define DEFAULT_BRIGHTNESS_SETTING 9 /* 9/16 (56.25%) */ | ||
65 | #endif /* HAVE_BACKLIGHT_BRIGHTNESS */ | ||
66 | |||
58 | void backlight_set_brightness(int val); | 67 | void backlight_set_brightness(int val); |
59 | #endif | 68 | #endif |