Commit graph

1054 commits

Author SHA1 Message Date
Björn Stenberg
2b77b4fdd5 Added option to enable/disable disk poweroff (for diagnostic purposes)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2888 a1c6a512-1295-4272-9138-f99709370657
2002-11-28 22:46:19 +00:00
Björn Stenberg
494d261de3 Added disk poweroff 2s after spindown. (Only for recorders yet.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2887 a1c6a512-1295-4272-9138-f99709370657
2002-11-27 15:55:47 +00:00
Linus Nielsen Feltzing
cde27c3909 Even more recording fixes. No more lockups (i hope)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2886 a1c6a512-1295-4272-9138-f99709370657
2002-11-25 20:16:44 +00:00
Linus Nielsen Feltzing
2c0b72f103 Saves battery when monitoring, no longer trashes the first frame, corrected DMA timing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2885 a1c6a512-1295-4272-9138-f99709370657
2002-11-25 00:02:54 +00:00
Linus Nielsen Feltzing
4432d3730d The saving flag wasn't correctly handled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2883 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 22:50:54 +00:00
Linus Nielsen Feltzing
063c6d471f Killed a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2882 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 15:04:22 +00:00
Linus Nielsen Feltzing
6a24059392 Recording buffer saving mechanism was braindead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2881 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:49:17 +00:00
Linus Nielsen Feltzing
0281125c98 Removed debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2880 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:47:56 +00:00
Linus Nielsen Feltzing
63f0b5ec3a Removed a potential I2C deadlock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2879 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:47:24 +00:00
Linus Nielsen Feltzing
c833a816d8 Lots of MAS hacking for better recording results
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2878 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 00:23:49 +00:00
Björn Stenberg
f11e3c0bba Erroneous commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2877 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:56:07 +00:00
Björn Stenberg
ac88b9e5ff Fixed warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2876 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:55:08 +00:00
Björn Stenberg
b5184d761b Added creation and last-modified timestamps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2875 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:51:46 +00:00
Linus Nielsen Feltzing
6871977d82 Optimized recording interrupt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2873 a1c6a512-1295-4272-9138-f99709370657
2002-11-21 21:38:58 +00:00
Linus Nielsen Feltzing
79c5202e07 Experiment to cure the strange sound wuality problem with Line In recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2871 a1c6a512-1295-4272-9138-f99709370657
2002-11-21 18:57:15 +00:00
Linus Nielsen Feltzing
2260f83376 Now uses timefuncs.h instead of time.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2868 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:46:35 +00:00
Linus Nielsen Feltzing
77d9c7cf84 More MAS voodoo resulting in more stable, maybe even working, recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2867 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:23:20 +00:00
Linus Nielsen Feltzing
d5bb9a4e70 Added mas_readver()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2866 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:22:13 +00:00
Linus Nielsen Feltzing
5e15aeedfc Instantaneous start of recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2865 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 11:47:32 +00:00
Linus Nielsen Feltzing
4dd6654bb2 Only Recorders have RTC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2864 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:26:55 +00:00
Linus Nielsen Feltzing
6100dd099b New filename generation based on date/time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2863 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:02:52 +00:00
Linus Nielsen Feltzing
d3d1583adb Added rtc_read_multiple()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2862 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:00:56 +00:00
Linus Nielsen Feltzing
85969853d5 New time functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2861 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:00:25 +00:00
Linus Nielsen Feltzing
d703389780 More recording stability, plus some feedback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2860 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 21:07:44 +00:00
Linus Nielsen Feltzing
11055c0471 Now sets the correct frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2859 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 16:30:53 +00:00
Björn Stenberg
282c819a19 Removed some debug output.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2858 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:58:45 +00:00
Björn Stenberg
c5f5be565e Added rename()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:48:50 +00:00
Linus Nielsen Feltzing
fde9b57f70 Fixed some sim build errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2856 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 10:29:38 +00:00
Linus Nielsen Feltzing
0dcd47eb84 Now uses IRQ for DEMAND instead of polling. This should improve the playback performance a lot, for all bitrates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2855 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 09:50:19 +00:00
Björn Stenberg
0a488fb155 Bug fixes: 1) add_dir_entry() would update end-of-dir marker even when not supposed to. 2) create_dos_name() didn't treat spaces correctly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2854 a1c6a512-1295-4272-9138-f99709370657
2002-11-18 14:55:05 +00:00
Björn Stenberg
eee2c01697 Added longname handling to fat_remove().
Added proper 0xffff padding of last longname entry.
add_dir_entry() now makes sure shortname is unique.
Changed update_file_size() to use dir-as-file handling.
Simplified create_dos_name() since we never use shortnames.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2853 a1c6a512-1295-4272-9138-f99709370657
2002-11-18 11:58:43 +00:00
Björn Stenberg
7aabb1ab66 Long filename support added. (fat_remove() not updated yet.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2852 a1c6a512-1295-4272-9138-f99709370657
2002-11-15 16:41:02 +00:00
Björn Stenberg
c442a68322 Cleaned up dir handling further.
Fixed a bug where a new dir cluster wasn't completely cleared.
Added freecount calculation if unset.
Removed a couple of signed mul/divs.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2851 a1c6a512-1295-4272-9138-f99709370657
2002-11-15 11:20:33 +00:00
Björn Stenberg
a69e98d7cc Added check to avoid FAT sector 0 panic.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2850 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 22:17:41 +00:00
Björn Stenberg
4cde17d1ca Flush sector cache before truncating.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2849 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 15:50:07 +00:00
Björn Stenberg
dc9cdc40ed Added close() return code checks, and an eof-write test.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2848 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 15:32:34 +00:00
Björn Stenberg
7d8bbe71b6 creat() now includes the O_TRUNC flag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2846 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:25:46 +00:00
Linus Nielsen Feltzing
1521a1c38a Slightly more correct saving when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2845 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:22:40 +00:00
Björn Stenberg
1f214f2732 Directories are now handled as files, using fat_readwrite() instead of ata_read/write_sector().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2844 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:16:32 +00:00
Linus Nielsen Feltzing
71d346ce81 mpeg_stop() now yields to ensure that the mpeg is stopped when it returns
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2843 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 08:43:49 +00:00
Linus Nielsen Feltzing
84c6fd96a6 Fixed broken unicode_munge()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2840 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 22:35:32 +00:00
Björn Stenberg
099a6b58d1 Added extra safety checks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 20:02:23 +00:00
Björn Stenberg
6fb512aba5 Added disk space to Info menu item. (Players press + to see it.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2837 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 11:32:26 +00:00
Björn Stenberg
8a727cecdb Fixed file creation test case for new flags.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2836 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 09:04:53 +00:00
Björn Stenberg
42510d9e78 Added '*PANIC*' string. Line is now wrapped on recorders. LED blinks slowly to indicate controlled state.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2835 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 09:04:06 +00:00
Daniel Stenberg
e94eebb355 use the protos on the simulator as well, this should kill a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2833 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 23:10:57 +00:00
Linus Nielsen Feltzing
f844ab207f Correct flags to the open() call when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2832 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 22:43:41 +00:00
Björn Stenberg
94fb95f00b Cosmetic: Replaced dozens of openfiles[fd] with 'file' pointers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2831 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 16:13:45 +00:00
Björn Stenberg
4059ea61d4 Bugfix: Flags work better when they're binary...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2830 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 16:08:28 +00:00
Björn Stenberg
4cde667659 Added a truckload of test code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2829 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 15:47:19 +00:00