Jens Arnold
116e4646b0
Proper 'battery level dangerous' handling for Ondio. Moved this info into an array, and removed unused #defines.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6403 a1c6a512-1295-4272-9138-f99709370657
2005-05-04 16:18:09 +00:00
Jens Arnold
06068b451d
Bugfixes: (1) Estimated runtime was wrong for approx. 1 minute after boot or battery type/ capacity change because the recalculation was (only) done in the power thread's main loop. (2) Restored Ondio NiMH discharge table. Code cleanup: (1) Moved adjustment for 8MB mod to runcurrent() where it belongs and made it more precise (only adjust the normal current).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6263 a1c6a512-1295-4272-9138-f99709370657
2005-04-10 15:10:44 +00:00
Linus Nielsen Feltzing
43bf39edb7
First lame attempt to show correct battery level on the iRiver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
2005-04-06 23:53:19 +00:00
Linus Nielsen Feltzing
3d2178148b
Moved the car adapter mode handling to apps/, now every thread gets SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657
2005-04-06 11:12:22 +00:00
Linus Nielsen Feltzing
8a237a829e
More audio code restructuring, mostly renaming functions so far
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6246 a1c6a512-1295-4272-9138-f99709370657
2005-04-04 12:06:29 +00:00
Jörg Hohensohn
853bc3dcf8
sorry, the patch broke all the sims
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6225 a1c6a512-1295-4272-9138-f99709370657
2005-03-24 07:31:59 +00:00
Jörg Hohensohn
3644fa2824
patch # 1159539 from GvB: V1 charging cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6224 a1c6a512-1295-4272-9138-f99709370657
2005-03-23 20:53:37 +00:00
Linus Nielsen Feltzing
07218e5401
Properly shut down the UDA1380
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6209 a1c6a512-1295-4272-9138-f99709370657
2005-03-18 11:38:47 +00:00
Jörg Hohensohn
d061b371d6
removed the practically useless "trickle charge" and "deep discharge" options, now trickle is always on and deep always off
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6107 a1c6a512-1295-4272-9138-f99709370657
2005-03-03 08:32:55 +00:00
Jörg Hohensohn
2584896920
More aggressive Recorder V1 charging (patch #1116884 from Jerry Van Baren)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6105 a1c6a512-1295-4272-9138-f99709370657
2005-03-03 07:25:43 +00:00
Christi Scarborough
a38947114d
Turn off the RTC alarm if it's gone off. Best not to have alarm events unless the user has specifically asked for them.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5973 a1c6a512-1295-4272-9138-f99709370657
2005-02-16 12:18:16 +00:00
Jean-Philippe Bernardy
1798a2043d
fixed signedness
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5840 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 22:02:19 +00:00
Christi Scarborough
a83ffb208f
A proper alarm clock for the V2/FM (and v1 with mod)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5818 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 17:21:42 +00:00
Christi Scarborough
541e9f6581
fix warnings / sim build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5816 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 10:16:13 +00:00
Christi Scarborough
e033d7cea7
fix warnings / sim build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5815 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 10:14:50 +00:00
Christi Scarborough
247fe6d698
clean shutdown for idle timer and sleep timer
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5814 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 09:57:57 +00:00
Linus Nielsen Feltzing
4d7671ce22
Aligned thread stack
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5803 a1c6a512-1295-4272-9138-f99709370657
2005-02-06 02:34:17 +00:00
Jean-Philippe Bernardy
8fd430508a
int -> long
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5797 a1c6a512-1295-4272-9138-f99709370657
2005-02-05 10:56:22 +00:00
Daniel Stenberg
39d20cf9b9
include fix
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5753 a1c6a512-1295-4272-9138-f99709370657
2005-02-02 22:05:53 +00:00
Jens Arnold
0457a578b5
Only reset battery level if battery type really changed.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5734 a1c6a512-1295-4272-9138-f99709370657
2005-02-01 18:00:15 +00:00
Jens Arnold
91846a1a8d
New Ondio feature: Battery type setting, for correct battery level display.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5717 a1c6a512-1295-4272-9138-f99709370657
2005-01-30 16:25:46 +00:00
Jörg Hohensohn
ef8d508d5a
tuner cleanup + improvements:
...
- use sleep and powerdown for those who can
- philips station search works now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5306 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 08:20:38 +00:00
Jörg Hohensohn
91f9350cbd
moved and renamed fmradio_set/get_status to power.c, where it now additionally serves well for tuner power enable on OndioFM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5296 a1c6a512-1295-4272-9138-f99709370657
2004-10-17 08:53:18 +00:00
Jens Arnold
672305f0a1
Another small adjustment for Ondio: Don't adjust initial battery level for non-existing HD activity
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5287 a1c6a512-1295-4272-9138-f99709370657
2004-10-15 18:52:54 +00:00
Jens Arnold
c4f96930f0
Adjusted power thread to Ondio: no charging, no car adapter mode, different current values for runtime estimation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5286 a1c6a512-1295-4272-9138-f99709370657
2004-10-15 18:18:15 +00:00
Jens Arnold
ba0a797b16
No hard-coded minimum capacity any more
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5272 a1c6a512-1295-4272-9138-f99709370657
2004-10-14 00:57:23 +00:00
Jörg Hohensohn
af2d88081a
battery levels adjusted for Ondio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5230 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 21:44:24 +00:00
Jörg Hohensohn
43079ea07f
multiple battery types prepared (CONFIG_BATTERY)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5227 a1c6a512-1295-4272-9138-f99709370657
2004-10-08 17:45:52 +00:00
Jörg Hohensohn
593cc00447
a hell of a commit: changed several HAVE_xx configuration flags into multiple choice values (keypad, tuner, CPU, h/w codec)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
2004-09-28 22:13:26 +00:00
Jens Arnold
9478cc6f8a
More const policeing step 4
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
2004-08-03 19:22:56 +00:00
Linus Nielsen Feltzing
272d6f11cd
Now turns off the backlight when the sleeptimer expires with the charger attached
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4884 a1c6a512-1295-4272-9138-f99709370657
2004-07-15 05:24:34 +00:00
Linus Nielsen Feltzing
bac1ae5aa1
The music now pauses correctly in car adapter mode
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4879 a1c6a512-1295-4272-9138-f99709370657
2004-07-14 11:25:14 +00:00
Linus Nielsen Feltzing
e61f6fa599
Added reset_poweroff_timer(), which can be used to prevent idle poweroff. This is also available in the plugin API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4787 a1c6a512-1295-4272-9138-f99709370657
2004-06-22 07:16:31 +00:00
Linus Nielsen Feltzing
e3548c3624
The sleep timer now waits until the disk is idle before shutting down
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4737 a1c6a512-1295-4272-9138-f99709370657
2004-06-14 05:03:49 +00:00
Linus Nielsen Feltzing
a258fe1887
Better charging feedback for FM/V2 devices
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4296 a1c6a512-1295-4272-9138-f99709370657
2004-02-05 13:44:04 +00:00
Björn Stenberg
53989844b4
Bug fix: Idle timeout would stop paused playback when charger was connected
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4066 a1c6a512-1295-4272-9138-f99709370657
2003-11-25 12:00:25 +00:00
Björn Stenberg
f6b6db4167
Don't show battery meter until a proper power reading has been done
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4042 a1c6a512-1295-4272-9138-f99709370657
2003-11-19 14:14:41 +00:00
Björn Stenberg
b1c429e6fb
Car Ignition Auto Stop (patch #736339 by Craig Sather)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3976 a1c6a512-1295-4272-9138-f99709370657
2003-10-17 14:49:00 +00:00
Björn Stenberg
3953211531
Fixes sleep timer when connected to charger (patch #769591 by Henrik Backe)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3975 a1c6a512-1295-4272-9138-f99709370657
2003-10-17 14:05:32 +00:00
Björn Stenberg
fa7653cde0
Removed the battery level rise limiter. This provides more accurate values the minutes after booting.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3962 a1c6a512-1295-4272-9138-f99709370657
2003-09-22 13:26:24 +00:00
Linus Nielsen Feltzing
53ee344743
Slightly more correct initialization of the power/charging code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3940 a1c6a512-1295-4272-9138-f99709370657
2003-08-25 08:57:49 +00:00
Uwe Freese
056439e59d
Measured voltages for LiIon. I found rockbox-liion.gif
...
somewhere, didn't know where anymore. Thanks to the one who measured the values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3936 a1c6a512-1295-4272-9138-f99709370657
2003-08-21 08:49:57 +00:00
Björn Stenberg
2bcb3dfccc
Report max 99% battery level during charging
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3738 a1c6a512-1295-4272-9138-f99709370657
2003-06-09 21:02:13 +00:00
Björn Stenberg
b817f601ba
Make simulator report 75% battery instead of 100%
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3724 a1c6a512-1295-4272-9138-f99709370657
2003-06-04 13:16:34 +00:00
Linus Nielsen Feltzing
23b0fdaca1
Idle poweroff fix for FM radio, as suggested by Mike Holden
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3645 a1c6a512-1295-4272-9138-f99709370657
2003-05-03 15:39:40 +00:00
Björn Stenberg
b443ba46ec
Don't reboot if charger is connected when sleep timer expires, just stop the music.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3397 a1c6a512-1295-4272-9138-f99709370657
2003-03-07 14:13:58 +00:00
Daniel Stenberg
2573879fb1
Massively code-policed. We keep source lines less than 80 columns...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3378 a1c6a512-1295-4272-9138-f99709370657
2003-03-04 05:59:38 +00:00
Uwe Freese
63e97b66e0
estimate 22 percent longer runtime when having 8 MB, assuming 192 kbps files again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3372 a1c6a512-1295-4272-9138-f99709370657
2003-03-03 13:23:11 +00:00
Uwe Freese
5e44a56b65
disable charge control for FM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3239 a1c6a512-1295-4272-9138-f99709370657
2003-02-12 22:21:07 +00:00
Uwe Freese
8ed1a3a409
LiIon values for FM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3169 a1c6a512-1295-4272-9138-f99709370657
2003-01-27 11:27:44 +00:00