Greg White
85d5451f3b
Add clean_dcache
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11901 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:10:46 +00:00
Greg White
d45da93f27
Created
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11900 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 10:16:40 +00:00
Steve Gotthardt
775c901f76
Implementing backlight fade for the Gigabeat. Note that fading is the normal behaviour. Settings for LCD off and fade settings will be coming.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11899 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 09:32:49 +00:00
Steve Gotthardt
26496ce72f
Optimized the timing for the delay and changed the startup delay.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11896 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 09:26:32 +00:00
Steve Gotthardt
2aa3e3f63c
Changed the delay loop to run faster and more accurate. Made the internal functions 'static'.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11894 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 03:31:03 +00:00
Greg White
23b722d4a9
Created
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11893 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 02:50:45 +00:00
Dave Chapman
147693819d
Split the enable_fiq(fiq_handler) function into separate set_fiq_handler(fiq_handler) and enable_fiq(void) functions. This allows temporary disabling of the FIQ without knowing which fiq handler is in use.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11875 a1c6a512-1295-4272-9138-f99709370657
2007-01-01 12:09:45 +00:00
Marcoen Hirschberg
c0c97e5d3d
remove debug code and unsused variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11861 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 23:35:31 +00:00
Marcoen Hirschberg
5dc0abda11
no need to prefill the i2s fifo
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11856 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 15:45:51 +00:00
Marcoen Hirschberg
23a0823b84
don't ignore remote when hold is on
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11855 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 15:44:43 +00:00
Marcoen Hirschberg
295367686e
merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 02:49:12 +00:00
Daniel Ankers
a26519680a
Fix bug accessing data above 4Gb in Sansa
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11828 a1c6a512-1295-4272-9138-f99709370657
2006-12-21 18:32:47 +00:00
Barry Wardell
4b54302b07
Combine USB code for all PortalPlayer targets since they most likely all use the same USB hardware. Add register defines for the USB hardware addresses, based off the Freescale i.MX31 datasheet. Use usb_init() from the iPod code, but modified to use the new register defines rather than oul/inl on the hardware addresses.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11823 a1c6a512-1295-4272-9138-f99709370657
2006-12-20 15:28:32 +00:00
Michael Sevakis
4b902679cc
Convert queues to use intptr_t for event data and return values as most of 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
2006-12-19 16:50:07 +00:00
Barry Wardell
2f16d4f1b3
Add working dual-boot bootloaders for H10 and Sansa, which allow booting the 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
2006-12-19 11:33:53 +00:00
Jens Arnold
5833f05acb
Forgot to remove the ata_address_detect() declaration.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11813 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 09:30:14 +00:00
Jens Arnold
28fd4b7228
Archos: Moved the ata_address_detect() code into ata_device_init(), removing 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
2006-12-19 09:27:41 +00:00
Barry Wardell
a69b53dc89
Add support for Sansa scrollwheel backlight. Turn light on when scrollwheel 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
2006-12-18 19:08:41 +00:00
Barry Wardell
e90006133b
Hardcode a value for the battery level until we figure out the power management on the Sansa.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11806 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 18:56:45 +00:00
Barry Wardell
1cf6cdf6ac
Fix more warnings. Don't compile PortalPlayer pcm code in bootloader builds.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11799 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 02:58:23 +00:00
Barry Wardell
f2c03e827e
Fix more compile errors/warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11798 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 02:37:35 +00:00
Barry Wardell
decef18a94
Fix some warnings from previous commit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11795 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 02:09:10 +00:00
Barry Wardell
df0dc2262e
FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod 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
2006-12-18 01:52:21 +00:00
Barry Wardell
d4a46cba30
I2S_MASTER is bit 25, not 0x25
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11787 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 14:00:29 +00:00
Michael Sevakis
c02e15fe26
Coldfire: More efficient and compact peaking code. Hope the build doesn't 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
2006-12-17 11:56:30 +00:00
Michael Sevakis
36c940555c
SWCODEC recording: More cleanup of stuff after queue additions and audio driver unification.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11783 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 11:03:19 +00:00
Barry Wardell
331e34bfd4
Add support for scroll wheel to Sansa button driver. Should be replaced with 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
2006-12-16 00:21:41 +00:00
Michael Sevakis
f51df0de21
Coldfire: Put DMA1 priority back at level 7 as that seems to be the cause of 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
2006-12-12 04:25:52 +00:00
Daniel Ankers
ca10d89d53
Improved charger detection for Sansa
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11713 a1c6a512-1295-4272-9138-f99709370657
2006-12-10 23:12:59 +00:00
Daniel Ankers
a5852f6855
Charger detection for Sansa
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11710 a1c6a512-1295-4272-9138-f99709370657
2006-12-10 22:58:59 +00:00
Daniel Ankers
65d6ab1396
Move I2S initialisation out of the Wolfson codec driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11701 a1c6a512-1295-4272-9138-f99709370657
2006-12-09 19:25:49 +00:00
Daniel Ankers
acbbe82a24
Move I2S initialisation out of the Wolfson codec driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11700 a1c6a512-1295-4272-9138-f99709370657
2006-12-09 19:18:18 +00:00
Jens Arnold
81f76f21d6
Fix some comments, and make code consistent with comments (CSMR2 was set to 1M instead of 64K).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11698 a1c6a512-1295-4272-9138-f99709370657
2006-12-09 11:36:40 +00:00
Michael Sevakis
9b720239a3
iRiver: Clearing CRSEL bit when using default CPU frequency caused audio 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
2006-12-08 23:33:22 +00:00
Jens Arnold
b774bae5fd
Coldfire targets: Fixed performance-hitting bug for unaligned transfers. Now 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
2006-12-06 18:44:45 +00:00
Jens Arnold
4c43d9422c
Removed extraneous #ifdef.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11678 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 18:33:57 +00:00
Marcoen Hirschberg
edbd1cde47
first step in audio driver unification: renaming the functions to audio_* (missed this one)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11672 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 10:44:40 +00:00
Marcoen Hirschberg
77d039bab8
first step in audio driver unification: renaming the functions to audio_*
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11670 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 10:24:59 +00:00
Miika Pekkarinen
46a608bf07
PLL was incorrectly initialized causing system to crash when ran from
...
ROM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11669 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 10:02:06 +00:00
Michael Sevakis
51189b4cb4
Small change to PCM recording API for low latency effects. Latency can be as 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
2006-12-06 08:34:55 +00:00
Michael Sevakis
81484e4b75
H1x0: Enable optical output to be switched on or off during playback and recording. Fixes FS#6414 - H120 opto out toggle freezes codec. Really DMA just needed a kickstart after setting the optical TXSRC if the peripheral requests were currently enabled (the method of detection).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11661 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 07:38:55 +00:00
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
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
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
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
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
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