Commit graph

1112 commits

Author SHA1 Message Date
Hardeep Sidhu
85d8b85de9 Fixed win32 simulator warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3042 a1c6a512-1295-4272-9138-f99709370657
2003-01-09 03:05:59 +00:00
Björn Stenberg
989a3ec28c set_elapsed() bug fix by Simon Elén
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3041 a1c6a512-1295-4272-9138-f99709370657
2003-01-09 01:02:40 +00:00
Hardeep Sidhu
96a6874ac4 Signal track change if no tracks in playlist are valid so wps updates and exits properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3036 a1c6a512-1295-4272-9138-f99709370657
2003-01-04 07:16:36 +00:00
Hardeep Sidhu
8fd18e9b8d Prev was going back too many tracks if more than one track was loaded in memory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3035 a1c6a512-1295-4272-9138-f99709370657
2003-01-03 22:54:02 +00:00
Hardeep Sidhu
d3d1b98d58 Don't signal track change until all id3 entries have been updated. Also, correctly set new write index after removing all tracks. Both changes fix potential resume bugs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3024 a1c6a512-1295-4272-9138-f99709370657
2002-12-19 00:58:11 +00:00
Hardeep Sidhu
d2f90c9a74 Use flush_cache() when writing headbytes to disk to make sure we are on the correct sector.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3023 a1c6a512-1295-4272-9138-f99709370657
2002-12-19 00:51:39 +00:00
Uwe Freese
4bc287d34a battery level 100% when trickle chg, only 1% per minute change allowed, ignore 25 min. after charge start/stop, get rid of old lazyness table (I hope this makes the battery display less confusing to the user, charging algo. is not affected\!)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3017 a1c6a512-1295-4272-9138-f99709370657
2002-12-18 18:55:50 +00:00
Björn Stenberg
c3fd67c6c9 Killed a dozen global variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3015 a1c6a512-1295-4272-9138-f99709370657
2002-12-18 14:57:45 +00:00
Kjell Ericson
51f18b083a Fixed a simulator stub for set_battery_capacity()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3012 a1c6a512-1295-4272-9138-f99709370657
2002-12-17 09:26:51 +00:00
Uwe Freese
0bf70e65e8 battery capacity (1500-2400 in 50mAh steps) saved to disk
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3008 a1c6a512-1295-4272-9138-f99709370657
2002-12-16 22:58:48 +00:00
Uwe Freese
ae1ba1d5de stupid bug, trickle setting in menu didn't work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3007 a1c6a512-1295-4272-9138-f99709370657
2002-12-16 15:02:23 +00:00
Uwe Freese
f3d010a057 charger on if battery low at boot time, battery capacity settings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3000 a1c6a512-1295-4272-9138-f99709370657
2002-12-15 18:08:06 +00:00
Uwe Freese
c29b538440 battery capacity setting function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2997 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 22:46:00 +00:00
Uwe Freese
e2a6aee661 we don't want battery symbol flickering while trickle charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2996 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 22:20:56 +00:00
Uwe Freese
207f4d20f2 no inclusion of apps/settings.h anymore (simulator build error), new enable_trickle_charge function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2995 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 22:05:01 +00:00
Uwe Freese
86ddabf75d added backlight_get_timeout and backlight_get_on_when_charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2994 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 22:01:27 +00:00
Uwe Freese
0f30f66c6c max charge duration now depends on batt. capacity and is a little longer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2992 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 21:01:32 +00:00
Uwe Freese
48e8e98efa using the new charge state variable instead of trickle_enable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2991 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 15:48:08 +00:00
Uwe Freese
82785295f9 new charge state variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2990 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 15:47:34 +00:00
Uwe Freese
5f02797b2e added trickle charge
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2982 a1c6a512-1295-4272-9138-f99709370657
2002-12-14 12:10:29 +00:00
Björn Stenberg
a2e98c1cd9 Merged Uwe Freese's bidirectional scrolling patch. Added configurable scroll step size and scroll start delay.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2974 a1c6a512-1295-4272-9138-f99709370657
2002-12-12 15:20:37 +00:00
Linus Nielsen Feltzing
00b2aada9f Fixed a few recording glitches, and *maybe* the 30-minute recording bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2971 a1c6a512-1295-4272-9138-f99709370657
2002-12-12 02:22:01 +00:00
Björn Stenberg
b17fe5a727 Added recalculation of free disk space. Press PLAY in Debug->Disk Info->Free to run it. Takes ~30 sec on my 40GB Toshiba.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2968 a1c6a512-1295-4272-9138-f99709370657
2002-12-09 15:39:32 +00:00
Björn Stenberg
cf1317c336 Added id3 version wps tag: %iv. Fixed id3v1 parsing bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2967 a1c6a512-1295-4272-9138-f99709370657
2002-12-09 15:01:37 +00:00
Linus Nielsen Feltzing
fd25bbd8ff Corrected ATA_ADDRESS macro
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2966 a1c6a512-1295-4272-9138-f99709370657
2002-12-09 10:47:03 +00:00
Linus Nielsen Feltzing
a946156151 Even more complicated MAS driver to handle MP2 streams, due to undocumented MAS behaviour. Now delays dma_tick() 1ms after /EOD goes active. (Recorder)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2960 a1c6a512-1295-4272-9138-f99709370657
2002-12-06 21:41:46 +00:00
Björn Stenberg
efd90770a0 Bug fix: Don't cut the power during spinup...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2959 a1c6a512-1295-4272-9138-f99709370657
2002-12-06 15:17:30 +00:00
Björn Stenberg
bd0da0e822 Fixed a race condition between sleep thread and spinup code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2958 a1c6a512-1295-4272-9138-f99709370657
2002-12-06 13:08:42 +00:00
Linus Nielsen Feltzing
c9feaafcf6 Even safer watermark margins, in wait for an accurate disk spinup time measurement
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2956 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 23:02:36 +00:00
Linus Nielsen Feltzing
672479c373 Less aggressive dynamic watermark calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2955 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 21:56:53 +00:00
Linus Nielsen Feltzing
7fed4a0f35 Faster start of playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2953 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 17:14:35 +00:00
Linus Nielsen Feltzing
ce882bba24 Better update of the watermark when changing tracks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2951 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 15:23:46 +00:00
Björn Stenberg
a5587d0298 Added ID3 tag 'genre': %ig
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2950 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 15:21:18 +00:00
Björn Stenberg
345f7c62ba Added ID3 tag 'year': %iy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2949 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 14:55:14 +00:00
Linus Nielsen Feltzing
d29248d992 More fine-tuned buffer handling, and better debug info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2948 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 14:11:48 +00:00
Linus Nielsen Feltzing
d199e691e2 Slightly improved swap handling in lowwater situations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2944 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:36:08 +00:00
Linus Nielsen Feltzing
4851a2a939 The lowest watermark debug info wasn't correctly updated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2941 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:23:12 +00:00
Linus Nielsen Feltzing
f1f7b6150a ...and the usual simulator corrections
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2940 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:16:23 +00:00
Linus Nielsen Feltzing
b8ff5f8971 Added MP3 buffer margin setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2939 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:09:51 +00:00
Linus Nielsen Feltzing
f4233e482d Watermark = average bitrate * 1.5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2938 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 12:38:59 +00:00
Linus Nielsen Feltzing
2df262c23d The low watermark level is now dynamically calculated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2937 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 12:18:22 +00:00
Linus Nielsen Feltzing
8344437de0 Better handling of DMA underrun. Now maybe the stopping audio is history...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2936 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 11:09:52 +00:00
Björn Stenberg
ba0438e78d Fixed spinup clocking. Also updating last_disk_activity more frequently, to avoid shutdown race condition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2935 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 09:35:01 +00:00
Linus Nielsen Feltzing
62c3ba8204 Fixed a bug that prevented recording if music was playing when entering the recording screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2929 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 00:28:28 +00:00
Björn Stenberg
b070dd55be Added disk spinup clocking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2927 a1c6a512-1295-4272-9138-f99709370657
2002-12-04 14:58:48 +00:00
Linus Nielsen Feltzing
d41942e12f Sleeptimer now reboots instead of poweroff when charger is attached
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2926 a1c6a512-1295-4272-9138-f99709370657
2002-12-04 12:53:10 +00:00
Linus Nielsen Feltzing
b43dba8760 Sleep timer, inspired by Jim Hagani
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2918 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 22:41:50 +00:00
Björn Stenberg
d1f8001984 Don't waste time loading v1 tag if a v2 tag was found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2916 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 15:38:39 +00:00
Björn Stenberg
040816d173 Fixed build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2914 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 14:33:20 +00:00
Björn Stenberg
f09c5f4c63 Finally, merged the improved power code from Uwe Freese:
- The battery level (percentage) is more realistic and considers if the charger is on.
- It considers the "lazyness" a battery shows when the charging has just turned on or off (see below). But this is not perfect by now.
- The battery level is good enough to estimate the remaining running time and the remaining charging time. And so the info screen now shows this info.
- The maximum time of a charging cycle is now dynamically calculated out of the battery level (percentage) and is not a fixed value.
- A minimum of 60 minutes is waited after a charging cycle stops before another one starts.
- Added another screen in the battery debug screen (press down three times).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2913 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 14:18:51 +00:00