Commit graph

3564 commits

Author SHA1 Message Date
Magnus Holmgren
c0b2862956 Fix freeze/crash problems when scrolling very long strings (like filenames or tags).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11789 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 15:40:13 +00:00
Michael Sevakis
84a013ea41 Attempt at fixing 64-bit sim warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11788 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 14:47:12 +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
Michael Sevakis
98fa14bfd1 SWCODEC: More recording simplifications and less UI hanging in some cases using queue_send.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11781 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 01:24:51 +00:00
Michael Sevakis
42b0208253 Commit the kinds of changes that queue_send is mean for.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11778 a1c6a512-1295-4272-9138-f99709370657
2006-12-16 20:19:58 +00:00
Michael Sevakis
8b4970031f Goofed some preprocessor stuff finalizing things.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11777 a1c6a512-1295-4272-9138-f99709370657
2006-12-16 18:41:45 +00:00
Michael Sevakis
43c15921e4 Add queue_send synchronous message sending. Right now only for SWCODEC. 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
2006-12-16 18:35:12 +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
Karl Kurbjun
1e0fb0246b Some fixes and additions to sscanf - Still has bugs but it works for doom 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
2006-12-13 04:55:48 +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
f28a15f949 Remove useless code from rolo.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11708 a1c6a512-1295-4272-9138-f99709370657
2006-12-10 15:53:26 +00:00
Daniel Ankers
cb51abb77c Slightly improved RoLo for PortalPlayer targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11707 a1c6a512-1295-4272-9138-f99709370657
2006-12-10 15:20:26 +00:00
Michael Sevakis
eca9f7fd60 Place all recording functionality on pcmrec thread to serialize all 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
2006-12-10 14:21:31 +00:00
Dave Chapman
0a8d88228b Remove unused code in (and hence simplify) the ipod bootloader - the image 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
2006-12-10 13:33:12 +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
Magnus Holmgren
d00f1d599a Add "m4b" to the list of supported filename extensions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11689 a1c6a512-1295-4272-9138-f99709370657
2006-12-08 13:55:14 +00:00
Michael Sevakis
a5ececcfef Oops, that'll just keep resetting the timeout to 20s every time sys_poweroff 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
2006-12-07 19:46:36 +00:00
Michael Sevakis
0d768a37f9 SWCODEC Recording: 1) Fix minor bug of not subtracting line aligment 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
2006-12-07 19:34:26 +00:00
Miika Pekkarinen
aec4bab6ee Small delay before cutting off power to allow all hardware (especially
eeprom chip) to flush.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11682 a1c6a512-1295-4272-9138-f99709370657
2006-12-07 10:34:25 +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
998f1c57e2 put back the return types which got lost in the previous commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11676 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 13:48:50 +00:00
Marcoen Hirschberg
1b967f41df move some audio driver specific code to the correspoding files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11675 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 13:34:15 +00:00
Jonathan Gordon
3e24665c41 Fix settings not saving to disk correctly, (fixes FS#6408)
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
2006-12-06 12:11:57 +00:00
Dan Everton
761122dcff Fix for FS#6328. Simulator battery level now goes down in roughly 1% increments roughly every second.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11673 a1c6a512-1295-4272-9138-f99709370657
2006-12-06 11:20:43 +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
Miika Pekkarinen
1ff7652adf And this too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11667 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 20:21:11 +00:00
Miika Pekkarinen
c5d57f0aae Removed the cpu boost tracking debug feature for now because of
different kind of problems. Better implementation can be done later.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11665 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 20:01:48 +00:00
Marcoen Hirschberg
2c154219f6 add a RTC driver for the Samsung S3C2440 used in the Gigabeat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11662 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 09:35:16 +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
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