Commit graph

3524 commits

Author SHA1 Message Date
Barry Wardell
82cdc6914d Recent fix "Prevent the click of death when connecting an ipod to usb." is useful for the H10 also.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11660 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 01:22:05 +00:00
Jens Arnold
ef3e129b65 Much simpler implementation of large virtual sector support, not needing larger sector buffers and not touching file.c at all. secmult is simply used to normalize all sector counts to 512-byte physical sectors. * Moved MAX_SECTOR_SIZE definition to config-*.h, and enabled it for iPod Video only. MAX_SECTOR_SIZE now only enables checking for alternate disk layouts due to sector size (as iPod Video G5.5 is presented as having 2048-byte _physical_ sectors to the PC). Large virtual sector support in fat.c is always enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11659 a1c6a512-1295-4272-9138-f99709370657
2006-12-04 21:37:22 +00:00
Jens Arnold
c01a97442f Removed unused variable, and fixed overflow in free/total calculation. There are still some suspicious things in here...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11656 a1c6a512-1295-4272-9138-f99709370657
2006-12-03 23:22:30 +00:00
Jens Arnold
31ffd7b154 Completed target tree move of the ata driver code. Some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11655 a1c6a512-1295-4272-9138-f99709370657
2006-12-03 22:13:44 +00:00
Miika Pekkarinen
ec14b0f989 Fixed the warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11653 a1c6a512-1295-4272-9138-f99709370657
2006-12-03 18:57:28 +00:00
Miika Pekkarinen
ae66c2b9ee Add support (runtime detection) for 2048 bytes/sector filesystem.
Large sectors are enabled for iPod Video (including 5.5G) only. Might
still cause FS corruption (however, unlikely), so beware! Based on
FS#6169 by Robert Carboneau.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11651 a1c6a512-1295-4272-9138-f99709370657
2006-12-03 18:12:19 +00:00
Michael Sevakis
7d00f97460 PCM: A few tiny changes. 1) Recording a) Flush all pending files if filename queue is full or else perpetual flushing of 1 will occur at low bitrates and short split times. b) #ifdef out currently unused bits and save little less than 1/2K 2) Cleanup some declarations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11623 a1c6a512-1295-4272-9138-f99709370657
2006-11-29 14:23:24 +00:00
Miika Pekkarinen
077ed4925e Prevent the click of death when connecting an ipod to usb.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11622 a1c6a512-1295-4272-9138-f99709370657
2006-11-29 12:17:26 +00:00
Michael Sevakis
97d1ca5a23 SWCODEC: Audio-related threads must be free of further tasks before returning buffers. Cleanup declarations of related functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11618 a1c6a512-1295-4272-9138-f99709370657
2006-11-28 15:00:56 +00:00
Marcoen Hirschberg
9be9767a49 forgot to add the RTC drivers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11617 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 22:50:13 +00:00
Michael Sevakis
ce3ade1360 iRiver: Channel 2 shouldn't be monitored except for radio playback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11616 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 21:52:49 +00:00
Marcoen Hirschberg
a45e632495 move rtc functions to seperate files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11614 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 09:44:56 +00:00
Jens Arnold
0e6dd7efcd Moved archos button reading to target tree. * Cleanup of button.[ch]. * Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 02:16:32 +00:00
Jens Arnold
6adbbc0f2f X5: Slightly lower threshold value to reliably disable constant adc reading when no button is pressed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11604 a1c6a512-1295-4272-9138-f99709370657
2006-11-26 18:24:23 +00:00
Miika Pekkarinen
2c994b44ba Fixed the errors for H300.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11603 a1c6a512-1295-4272-9138-f99709370657
2006-11-26 14:50:15 +00:00
Miika Pekkarinen
f14f59f9f3 Data cache for the EEPROM driver to speed up reading/writing. This
will be my last iriver commit for a while due to a bricked H140.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11602 a1c6a512-1295-4272-9138-f99709370657
2006-11-26 14:40:47 +00:00
Jens Arnold
11e2e565ca Backdrop support in the X5 remote LCD driver. Still needs to be wired to the UI and settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11601 a1c6a512-1295-4272-9138-f99709370657
2006-11-26 14:26:08 +00:00
Jonathan Gordon
4049d44b03 dont allow the ata callbacks to be run less than once every 30s unless
explicitly forced to.
The sleep_after param is only true in the Q_SLEEP event, so its uneeded,
so removed


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11599 a1c6a512-1295-4272-9138-f99709370657
2006-11-26 09:53:42 +00:00
Daniel Ankers
844d22f277 Allow GPIO debug screen on Sansa. Also remove a warning from the NAND driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11593 a1c6a512-1295-4272-9138-f99709370657
2006-11-25 15:57:07 +00:00
Daniel Ankers
8033628b46 Remove some development code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11591 a1c6a512-1295-4272-9138-f99709370657
2006-11-25 13:31:53 +00:00
Daniel Ankers
0b556b8f7b ATA callback support for Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11590 a1c6a512-1295-4272-9138-f99709370657
2006-11-25 13:04:50 +00:00
Daniel Ankers
64cccb0f80 Detect USB inserted on Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11585 a1c6a512-1295-4272-9138-f99709370657
2006-11-24 20:41:15 +00:00
Michael Sevakis
dda538a7f3 Recording, SWCODEC: Put config value string in the wrong order.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11584 a1c6a512-1295-4272-9138-f99709370657
2006-11-24 20:10:32 +00:00
Michael Sevakis
0729b928ce Recording: Add AIFF recording to SWCODEC. Note: AIFF playback chokes on sample rates other than 44.1kHz whether recorded or created and saved with an external program. Recorded files will still open in an external editor however.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11583 a1c6a512-1295-4272-9138-f99709370657
2006-11-24 19:49:04 +00:00
Linus Nielsen Feltzing
516d277958 The ADC GPIO init code for the H100 was accidentally put in the H300 driver when moving to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11582 a1c6a512-1295-4272-9138-f99709370657
2006-11-24 11:06:52 +00:00
Michael Sevakis
16cb491cdd iAudio/iRiver: Bootloader should not compile the audio-*.c files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11581 a1c6a512-1295-4272-9138-f99709370657
2006-11-24 06:53:33 +00:00
Michael Sevakis
f27c266097 Just correct a comment and see if the build goes differently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11578 a1c6a512-1295-4272-9138-f99709370657
2006-11-23 19:46:24 +00:00
Michael Sevakis
ab1861a3c2 iRiver/iAudio: Added audio_set_recording gain and sound_default to plugin API. Simplified plugin recording by target/-ing some audio functions. UDA1380 records with WSPLL as a result.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11577 a1c6a512-1295-4272-9138-f99709370657
2006-11-23 19:21:15 +00:00
Michael Sevakis
fbac4f8444 Audio bugfixes. Should wait for voice codec to reload before returning buffer when stealing voice. Certain variables that get or may get used during an IRQ should be declared 'volatile'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11572 a1c6a512-1295-4272-9138-f99709370657
2006-11-22 09:13:14 +00:00
Daniel Ankers
43e2c01065 Sansa doesn't use a Wolfson codec. Various other changes to allow Sansa to compile correctly with a normal build. Based on FS#6336 by Pavel Gnelitsa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11570 a1c6a512-1295-4272-9138-f99709370657
2006-11-22 00:49:16 +00:00
Daniel Ankers
242cbd5cd7 Change if CONFIG_CPU==PP50XX to ifdef CPU_PP where appropriate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11569 a1c6a512-1295-4272-9138-f99709370657
2006-11-22 00:41:30 +00:00
Daniel Ankers
336cb6898e Add several dummy functions to allow Sansa to build correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11568 a1c6a512-1295-4272-9138-f99709370657
2006-11-22 00:30:24 +00:00
Daniel Ankers
e7b025ba10 Initial NAND driver for Sansa. This has had limited testing, and no testing on 6 or 8Gb models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11567 a1c6a512-1295-4272-9138-f99709370657
2006-11-21 22:55:39 +00:00
Michael Sevakis
4a82f81f79 H100 series: Adjusted gray scale balance and default contrast for more linear gray levels.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11564 a1c6a512-1295-4272-9138-f99709370657
2006-11-21 17:14:07 +00:00
Michael Sevakis
ef40b0ae43 Coldfire: Add DMA auto alignment to pcm recording.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11563 a1c6a512-1295-4272-9138-f99709370657
2006-11-21 15:58:39 +00:00
Jens Arnold
848e0b5a16 BMP loader: Remote LCD format support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11558 a1c6a512-1295-4272-9138-f99709370657
2006-11-20 00:20:09 +00:00
Jonas Häggqvist
687328b777 Add a few missing files to the tarball
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11551 a1c6a512-1295-4272-9138-f99709370657
2006-11-18 23:51:58 +00:00
Michael Sevakis
514f45bc1c Changed #ifdef USE_IRAM to #ifdef IRAM_STEAL. Also want to check if results are the same again since another person also built a red one successfully.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11545 a1c6a512-1295-4272-9138-f99709370657
2006-11-18 03:06:46 +00:00
Michael Sevakis
acc29d95be SWCODEC/IRAM: Save voice IRAM when a plugin initializes its IRAM. Defines two macros for declaring and initializing IRAM. Plugins should use these instead. See mp3_encoder, doom, etc. for details. Further tweaks in buffer restoration after other use. Hiding of some interfaces that should only be used by buffer management.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11544 a1c6a512-1295-4272-9138-f99709370657
2006-11-18 02:18:29 +00:00
Barry Wardell
4072848184 Fix FS#6322. Battery level gets updated again as it should.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11534 a1c6a512-1295-4272-9138-f99709370657
2006-11-15 21:41:17 +00:00
Michael Sevakis
7bc41203af Removed anachronisms introduced with low battery shutdown patch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11524 a1c6a512-1295-4272-9138-f99709370657
2006-11-14 02:46:59 +00:00
Michael Sevakis
cc50c149e9 H100/General: HAL for S/PDIF and refinement/bufixes in optical output powering/source selection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11523 a1c6a512-1295-4272-9138-f99709370657
2006-11-13 23:21:54 +00:00
Jens Arnold
0297873f6a Backdrop support for greyscale targets. WPS backdrop is untested.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657
2006-11-13 00:45:21 +00:00
Jens Arnold
8c3f0681b2 Get rid of ages-old interdependency between ata.c and mas.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11519 a1c6a512-1295-4272-9138-f99709370657
2006-11-12 14:17:49 +00:00
Jens Arnold
7b30e50812 Adjust scrollable lines to varying LCD sizes in the 2bit vertical packing LCD driver. Doesn't change anything for current targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11518 a1c6a512-1295-4272-9138-f99709370657
2006-11-12 13:25:03 +00:00
Jens Arnold
6bdf3ee6f2 Split 1 bit LCD code and move appropriate parts to target tree. Only archos code is tested.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11517 a1c6a512-1295-4272-9138-f99709370657
2006-11-12 13:22:59 +00:00
Brandon Low
58e7547e89 Fix my warnings with explicit blocking on platforms w/o cpu_boost()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11511 a1c6a512-1295-4272-9138-f99709370657
2006-11-11 05:53:32 +00:00
Brandon Low
8a82892e52 Thread API enhancements.
1) block_thread -> block_thread + block_thread_w_tmo -- this call was always used in distinct ways so having one call with a conditional was ugly.
2) enhance Slasheri's scheduler controlled boost concept.  now any thread may trigger a boost which will last until that thread next sleeps.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11509 a1c6a512-1295-4272-9138-f99709370657
2006-11-11 05:33:24 +00:00
Barry Wardell
8d2711b7d2 Improved power management (FS#3001). Shutdown rockbox when the battery gets to a level where the device doesn't function properly. Calculate remaining charging time while charging (rather than remaining running time). Show "Low Battery" and "Battery Empty" warnings. Also fixes FS#4786.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11507 a1c6a512-1295-4272-9138-f99709370657
2006-11-11 01:18:57 +00:00
Jens Arnold
616945590d Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11505 a1c6a512-1295-4272-9138-f99709370657
2006-11-10 20:36:39 +00:00