forked from len0rd/rockbox
Backlight dimming is now flicker free on all situations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5936246fd0
commit
0cb7511643
1 changed files with 5 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ void backlight_start_timer(void)
|
||||||
if (bl_timer_active)
|
if (bl_timer_active)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
|
/* Prevent cpu frequency changes while dimming. */
|
||||||
|
cpu_boost(true);
|
||||||
|
|
||||||
count = 1;
|
count = 1;
|
||||||
bl_timer_active = true;
|
bl_timer_active = true;
|
||||||
|
|
||||||
|
|
@ -152,6 +155,7 @@ void TIMER1(void)
|
||||||
|
|
||||||
if (idle)
|
if (idle)
|
||||||
{
|
{
|
||||||
|
cpu_boost(false);
|
||||||
bl_timer_active = false;
|
bl_timer_active = false;
|
||||||
TMR1 = 0;
|
TMR1 = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -173,6 +177,7 @@ void backlight_allow_timer(bool on)
|
||||||
|
|
||||||
if (!timer_allowed && bl_timer_active)
|
if (!timer_allowed && bl_timer_active)
|
||||||
{
|
{
|
||||||
|
cpu_boost(false);
|
||||||
bl_dim_current = bl_dim_target;
|
bl_dim_current = bl_dim_target;
|
||||||
bl_timer_active = false;
|
bl_timer_active = false;
|
||||||
TMR1 = 0;
|
TMR1 = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue