summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* Preparation for disks >137 GB, use BigLBA 48 bit addressing if necessary. ↵Jörg Hohensohn2006-12-19
| | | | | | Only activated with compile flag HAVE_BIGLBA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11820 a1c6a512-1295-4272-9138-f99709370657
* Woops. Missed a file.Michael Sevakis2006-12-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11819 a1c6a512-1295-4272-9138-f99709370657
* Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis2006-12-19
| | | | | | the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
* Add working dual-boot bootloaders for H10 and Sansa, which allow booting the ↵Barry Wardell2006-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OF and Rockbox. Rolo also works. Changes made: Combine bootloader/h10.c and bootloader/e200.c into a common bootloader file (bootloader/main-pp.c) to be used by all mi4 based PortalPlayer targets. The file bootloader/main-pp.c is based off the old bootloader/h10.c with some minor changes to allow it to work on the Sansa too. This effectively adds a Sansa bootloader. Define MODEL_NAME string in config-*.h for use in bootloader. Split crt0-pp.S into separate files for bootloader and normal builds. Bootloader code is now in crt0-pp-bl.S while normal build code stays in crt0-pp.S. Improvements to crt0-pp.S and crt0-pp-bl.S (mostly to make it more multiprocessor safe): * Leave space in bootloader at 0xe0-0xeb since scramble writes over there when it creates the mi4 file (don't leave space for iPods since it's not needed and all code in crt0-pp-bl.S needs to fit before the boot_table at 0x100). * Remove unused DEBUG and STUB code from crt0-pp.S. * Make CPU wait for COP to be sleeping when we put the COP to sleep. * Invalidate COP cache when COP wakes * Flush CPU cache before waking COP * Make sure only the CPU clears the BSS (not the COP) * Make sure only the CPU sets up its own stack (not the COP) Rolo works on H10, so enable it. Make Sansa e200 use rockbox.e200 rather than PP5022.mi4 for 'Normal' builds. This makes updating rockbox simpler as we don't need to go through the firmware update procedure, but rather just put a new rockbox.e200 on the device. rockbox.e200 uses a simple 'add' checksum. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11815 a1c6a512-1295-4272-9138-f99709370657
* Forgot to remove the ata_address_detect() declaration.Jens Arnold2006-12-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11813 a1c6a512-1295-4272-9138-f99709370657
* Archos: Moved the ata_address_detect() code into ata_device_init(), removing ↵Jens Arnold2006-12-19
| | | | | | the associated #ifdef and some public #defines. Saves a tiny bit of code as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11812 a1c6a512-1295-4272-9138-f99709370657
* Add support for Sansa scrollwheel backlight. Turn light on when scrollwheel ↵Barry Wardell2006-12-18
| | | | | | is in use, then back off again after a 5 second timeout. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11807 a1c6a512-1295-4272-9138-f99709370657
* Hardcode a value for the battery level until we figure out the power ↵Barry Wardell2006-12-18
| | | | | | management on the Sansa. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11806 a1c6a512-1295-4272-9138-f99709370657
* Fix more warnings. Don't compile PortalPlayer pcm code in bootloader builds.Barry Wardell2006-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11799 a1c6a512-1295-4272-9138-f99709370657
* Fix more compile errors/warnings.Barry Wardell2006-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11798 a1c6a512-1295-4272-9138-f99709370657
* Fix compile errors.Barry Wardell2006-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11796 a1c6a512-1295-4272-9138-f99709370657
* Fix some warnings from previous commit.Barry Wardell2006-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11795 a1c6a512-1295-4272-9138-f99709370657
* FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod ↵Barry Wardell2006-12-18
| | | | | | | | | | | | | | | | | | | | Color, iPod Nano). * Fix failed compile of enc_config.c when HAVE_MPEG2_SAMPR is not defined. * Fix bug in AIFF encoder header creation on little endian targets. * Add recording screen keymaps for H10 and iPod. * Move pcm_playback PP specific code to target tree. * Add recording code to wmcodec drivers. * Add pcm_record code. Some problems still remain: * Playback doesn't work after recording until Rockbox is restarted. * Gain control not implemented. * Only 16-bit/44KHz for now. The hardware should be capable of up to 24-bit/96KHz. * Line-in recording not tested on H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11794 a1c6a512-1295-4272-9138-f99709370657
* Fix freeze/crash problems when scrolling very long strings (like filenames ↵Magnus Holmgren2006-12-17
| | | | | | or tags). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11789 a1c6a512-1295-4272-9138-f99709370657
* Attempt at fixing 64-bit sim warning.Michael Sevakis2006-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11788 a1c6a512-1295-4272-9138-f99709370657
* I2S_MASTER is bit 25, not 0x25Barry Wardell2006-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11787 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: More efficient and compact peaking code. Hope the build doesn't ↵Michael Sevakis2006-12-17
| | | | | | whine about strange asm constraints. GCC's ok with it here. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11786 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC recording: More cleanup of stuff after queue additions and audio ↵Michael Sevakis2006-12-17
| | | | | | driver unification. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11783 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: More recording simplifications and less UI hanging in some cases ↵Michael Sevakis2006-12-17
| | | | | | using queue_send. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11781 a1c6a512-1295-4272-9138-f99709370657
* Commit the kinds of changes that queue_send is mean for.Michael Sevakis2006-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11778 a1c6a512-1295-4272-9138-f99709370657
* Goofed some preprocessor stuff finalizing things.Michael Sevakis2006-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11777 a1c6a512-1295-4272-9138-f99709370657
* Add queue_send synchronous message sending. Right now only for SWCODEC. ↵Michael Sevakis2006-12-16
| | | | | | Actual usage to be added to playback and recording shortly in upcoming commits. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11776 a1c6a512-1295-4272-9138-f99709370657
* Add support for scroll wheel to Sansa button driver. Should be replaced with ↵Barry Wardell2006-12-16
| | | | | | an interrupt based driver to improve responsiveness (once we figure out how). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11772 a1c6a512-1295-4272-9138-f99709370657
* Some fixes and additions to sscanf - Still has bugs but it works for doom ↵Karl Kurbjun2006-12-13
| | | | | | currently. As a note: this function is only used by doom to my knowledge. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11740 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Put DMA1 priority back at level 7 as that seems to be the cause of ↵Michael Sevakis2006-12-12
| | | | | | the stopping during record. Make DMA1 start as it did previously. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11729 a1c6a512-1295-4272-9138-f99709370657
* Improved charger detection for SansaDaniel Ankers2006-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11713 a1c6a512-1295-4272-9138-f99709370657
* Charger detection for SansaDaniel Ankers2006-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11710 a1c6a512-1295-4272-9138-f99709370657
* Remove useless code from rolo.cDaniel Ankers2006-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11708 a1c6a512-1295-4272-9138-f99709370657
* Slightly improved RoLo for PortalPlayer targetsDaniel Ankers2006-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11707 a1c6a512-1295-4272-9138-f99709370657
* Place all recording functionality on pcmrec thread to serialize all ↵Michael Sevakis2006-12-10
| | | | | | recording operations. Button mash problems should be ruled out of pcm_record.c. Add additional lightweight checks by default and display any warnings that occurred during recording in first line of recording screen when they occur by blinking back and forth from warning display to normal line (Warning: <hex bitmask>). Warnings are cleared when beginning a new recording so write the number down if you see it and file a report. Add heavier checks when PCMREC_PARANOID is defined in the player config header (encoders and pcm_record must be aware of the define since it changes the chunk header format). These checks are mainly concerned with things that may cause skipping but also add unwanted overhead for normal operation. Best used with logf enabled. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11705 a1c6a512-1295-4272-9138-f99709370657
* Remove unused code in (and hence simplify) the ipod bootloader - the image ↵Dave Chapman2006-12-10
| | | | | | header parsing and memmove isn't used in Rockbox, it was just leftover from the original ipodlinux loader. Note that we still need the empty space in the bootloader (400 bytes starting at 0x100 - the 'boot_table' definition in firmware/target/arm/crt0-pp.S) to maintain compatibility with ipod_fw/make_fw (which will write information there that we have always ignored). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11704 a1c6a512-1295-4272-9138-f99709370657
* Move I2S initialisation out of the Wolfson codec driverDaniel Ankers2006-12-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11701 a1c6a512-1295-4272-9138-f99709370657
* Move I2S initialisation out of the Wolfson codec driverDaniel Ankers2006-12-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11700 a1c6a512-1295-4272-9138-f99709370657
* Fix some comments, and make code consistent with comments (CSMR2 was set to ↵Jens Arnold2006-12-09
| | | | | | 1M instead of 64K). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11698 a1c6a512-1295-4272-9138-f99709370657
* iRiver: Clearing CRSEL bit when using default CPU frequency caused audio ↵Michael Sevakis2006-12-08
| | | | | | chip to run at half frequency when radio screen called cpu_idle_mode(true) and corresponding high end loss after kepress timeout. CRSEL was originally preserved when bypassing PLL. CRSEL shouldn't have any bearing on PSTCLK or SCLK when PLL is bypassed since the dividers are bypassed as well (except for the divX2 for SCLK). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11695 a1c6a512-1295-4272-9138-f99709370657
* Add "m4b" to the list of supported filename extensions.Magnus Holmgren2006-12-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11689 a1c6a512-1295-4272-9138-f99709370657
* Oops, that'll just keep resetting the timeout to 20s every time sys_poweroff ↵Michael Sevakis2006-12-07
| | | | | | is called and won't add the 8s recording margin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11686 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC Recording: 1) Fix minor bug of not subtracting line aligment ↵Michael Sevakis2006-12-07
| | | | | | adjustment from buffer size. 2) Handle stop and pause better and let pcmrec thread lock the DMA as that could cause prerecording to get disabled internally 3) Make sure to snapshot DMA write index to ensure compiler doesn't perform multiple access when calculating available data (probably just paranoia on my part) 4) Handle USB connect in recording thread a little better by resetting hardware to defaults after closing 5) Make power managment stop recording properly when powering off (ie. no yield() from interrupt handler! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11685 a1c6a512-1295-4272-9138-f99709370657
* Small delay before cutting off power to allow all hardware (especiallyMiika Pekkarinen2006-12-07
| | | | | | | eeprom chip) to flush. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11682 a1c6a512-1295-4272-9138-f99709370657
* Coldfire targets: Fixed performance-hitting bug for unaligned transfers. Now ↵Jens Arnold2006-12-06
| | | | | | unaligned transfers are less than 10% slower than aligned transfers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11679 a1c6a512-1295-4272-9138-f99709370657
* Removed extraneous #ifdef.Jens Arnold2006-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11678 a1c6a512-1295-4272-9138-f99709370657
* put back the return types which got lost in the previous commitMarcoen Hirschberg2006-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11676 a1c6a512-1295-4272-9138-f99709370657
* move some audio driver specific code to the correspoding filesMarcoen Hirschberg2006-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11675 a1c6a512-1295-4272-9138-f99709370657
* Fix settings not saving to disk correctly, (fixes FS#6408)Jonathan Gordon2006-12-06
| | | | | | | | | | Stop playback.c requesting a rebuffer while not playing Shutting down from inside the menu will now save settings to disk, and entering the main menu will not force a setting save unless a setting actually changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11674 a1c6a512-1295-4272-9138-f99709370657
* Fix for FS#6328. Simulator battery level now goes down in roughly 1% ↵Dan Everton2006-12-06
| | | | | | increments roughly every second. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11673 a1c6a512-1295-4272-9138-f99709370657
* first step in audio driver unification: renaming the functions to audio_* ↵Marcoen Hirschberg2006-12-06
| | | | | | (missed this one) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11672 a1c6a512-1295-4272-9138-f99709370657
* first step in audio driver unification: renaming the functions to audio_*Marcoen Hirschberg2006-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11670 a1c6a512-1295-4272-9138-f99709370657
* PLL was incorrectly initialized causing system to crash when ran fromMiika Pekkarinen2006-12-06
| | | | | | | ROM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11669 a1c6a512-1295-4272-9138-f99709370657
* Small change to PCM recording API for low latency effects. Latency can be as ↵Michael Sevakis2006-12-06
| | | | | | low as 14 samples from input to output including the FIFOs (ColdFire) but 16 is more reasonable an expectation if only tranferring one sample per interrupt (\!). May convert PCM playback to use the same method as it can still be used in the old manner with some slight mods but has the potential to enable new features since it is more flexible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11668 a1c6a512-1295-4272-9138-f99709370657
* And this too.Miika Pekkarinen2006-12-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11667 a1c6a512-1295-4272-9138-f99709370657