summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* Do some adjustments to alleviate IRAM congestion on some targets from ↵Michael Sevakis2011-06-29
| | | | | | r30097. Include removing pointless IRAM declarations in pcmbuf.c because that callback code runs at a fairly relaxed pace. M5 is still the biggest problem. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30100 a1c6a512-1295-4272-9138-f99709370657
* Get android to build. Forgo optimized mixing code for app builds for the ↵Michael Sevakis2011-06-29
| | | | | | moment; work it out later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30099 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#12150 - Fully-functional audio mixer - and finally whip old ↵Michael Sevakis2011-06-29
| | | | | | limitations about playback of voice and other sounds when paused. Channels are independent in state and amplitude. Fade on stop/pause is handled by the channel's volume control rather than global volume which means it now works from anywhere. Opens up the possibility of plugin sounds during music playback by merely adding an additional channel enum. If any PCM drivers were not properly modified, see one of the last comments in the task for a description of the simple change that is expected. Some params are tunable in firmware/export/pcm-mixer.h as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30097 a1c6a512-1295-4272-9138-f99709370657
* Define an LCD_DPI for the mini2440 (this change makes the mini2440 compile ↵Bertrik Sikken2011-06-25
| | | | | | again) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30068 a1c6a512-1295-4272-9138-f99709370657
* Fix loading dircache stat on h100. Relocating the data was broken due to ↵Thomas Martitz2011-06-22
| | | | | | struct alignment problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30051 a1c6a512-1295-4272-9138-f99709370657
* Workaround/fix (I'm not sure!) for buffer_alloc() returning unaligned ↵Frank Gevaerts2011-06-21
| | | | | | addresses in case other parts of the code increase audiobuf behind buffer.c's back. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30049 a1c6a512-1295-4272-9138-f99709370657
* Try to handle dircache rebuild event properly. Playlist should nowMiika Pekkarinen2011-06-21
| | | | | | | | | cache new pointers to dircache items when dircache goes offline and comes back onlineagain (during tagcache commit). This should prevent wrong filenames to appear in playlist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30047 a1c6a512-1295-4272-9138-f99709370657
* Use ALIGN_UP() macro for alignment, in a more correct way also.Thomas Martitz2011-06-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30041 a1c6a512-1295-4272-9138-f99709370657
* Dircache: A bit of follow-up code cleanup suggested by Amaury Pouly.Thomas Martitz2011-06-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30040 a1c6a512-1295-4272-9138-f99709370657
* Optimize new dircache_copy_path so that the helper (strlcat) doesn't need to ↵Thomas Martitz2011-06-20
| | | | | | | | walk through the entire string repeatedly. Also fix a off-by-one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30039 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Don't expose struct dircache_entry and pointers into the cache, ↵Thomas Martitz2011-06-20
| | | | | | | | | use IDs instead. Only integer IDs are exposed from dircache with this. This way the cache is isolated from other modules. This is needed for my buflib gsoc project. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30038 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Move struct maindata declaration to dircache.c and actually check ↵Thomas Martitz2011-06-20
| | | | | | for DIRCACHE_MAGIC when loading from disk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30037 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Change internal cache layout.Thomas Martitz2011-06-20
| | | | | | | | | The dircache_entry structs are now allocated subsequently from the front, allowing to treat them as an array. The d_names are allocated from the back (in reverse order, growing downwards). This allows the cache to be moved around (needed for my buflib gsoc project). It is utilized when loading the cache from disk (on the h100), now the pointer to the cache begin doesn't need to be the same across reboots anymore. This should save a bit memory usage, since there's no need for aligning padding bytes after d_names anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30036 a1c6a512-1295-4272-9138-f99709370657
* Fix dircache_size calculation bug introcuced 3 revisions ago.Thomas Martitz2011-06-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30035 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Return the size of the result string in dircache_copy_path() so ↵Thomas Martitz2011-06-20
| | | | | | that callers don't need to call strlen on it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30034 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Rework and simplify dircache_copy_path().Thomas Martitz2011-06-20
| | | | | | Use a recursive helper function with strlcat to build up the path backwards. This way the tree doesn't need to be walked twice and no extraneous size calculation is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30033 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Remove dircache_entry::name_len.Thomas Martitz2011-06-20
| | | | | | It's reduntant, and enlarges the dircache unnecessarily. Saves 4 byte per file in the whole filesystem. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30032 a1c6a512-1295-4272-9138-f99709370657
* Move buffer.h to firmware/include.h to replace a useless malloc header.Thomas Martitz2011-06-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30026 a1c6a512-1295-4272-9138-f99709370657
* Submit final part of FS#12154. Optimization for WM8758 used in iPod Video: ↵Andree Buschmann2011-06-20
| | | | | | Significantly reduce popping noise during startup. Additionally improve crosstalk, THD and noise level. Thanks to Seheon Ryu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30025 a1c6a512-1295-4272-9138-f99709370657
* Submit first part of FS#12154. Whitespace removal and correction of several ↵Andree Buschmann2011-06-20
| | | | | | defines in WM8758 driver according to data sheet, no functional change. Thanks to Seheon Ryu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30024 a1c6a512-1295-4272-9138-f99709370657
* Optional dual-boot support in iAudio X5 and M5 bootloader, based on FS#5289.Jens Arnold2011-06-19
| | | | | | | | | | | | | | | | | | In order to enable it, #define HAVE_DUALBOOT when building the bootloader. Do not use the automatically created x5_fw.bin or m5_fw.bin, but use mkboot to create a new firmware file from an OF x5_fw.bin resp. m5_fw.bin and bootloader.bin. The dual-boot bootloader boots the OF when pressing Play (main or remote) for more than 3 seconds. Hold it a bit longer because the OF also checks buttons. Short press boots rockbox. As a bonus, the Play button read (for hold check) is done a bit earlier for single-boot mode as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30018 a1c6a512-1295-4272-9138-f99709370657
* fuze+: add more clocking code, add dma code, add ssp code, add stub usb ↵Amaury Pouly2011-06-17
| | | | | | code, update storage to SD + MMC, beginning of the driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30010 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Fix the modification of IMR. Interrupts must be masked at the core ↵Michael Sevakis2011-06-17
| | | | | | level at at least the level of the interrupt being masked. Not following the datasheet and relying strictly on and/or_l causes unhandled 'Levelx' exceptions (showing itself quite often in PCM mixer work which more greatly stresses PCM lockout). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30009 a1c6a512-1295-4272-9138-f99709370657
* Slightly more typesafe ALIGN_DOWN/UP macros.Thomas Martitz2011-06-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30004 a1c6a512-1295-4272-9138-f99709370657
* Remove superfluous executable bits on a bunch of files.Torne Wuff2011-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29986 a1c6a512-1295-4272-9138-f99709370657
* rda5802: don't use the si4700-specific exceptions for putting the tuner to sleepBertrik Sikken2011-06-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29984 a1c6a512-1295-4272-9138-f99709370657
* Make the histogram code usable for playback as well. Move the recording ↵Peter D'Hoye2011-06-05
| | | | | | histogram code to peakmeter, rename it to remove the recording reference, and rename anything referring to it as well. Change the drawing code so there are more options to position them. This may change your histogram settings, so check after upgrading. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29969 a1c6a512-1295-4272-9138-f99709370657
* fix redMarcin Bukat2011-06-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29966 a1c6a512-1295-4272-9138-f99709370657
* Move dbg_hw_info() into target tree. FS#11735 by meMarcin Bukat2011-06-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29964 a1c6a512-1295-4272-9138-f99709370657
* Android: Greatly simplify the pcm callback mechanism on both, the Java and ↵Thomas Martitz2011-06-05
| | | | | | the C side. Should be more reliable now (if the old wasn't already). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29963 a1c6a512-1295-4272-9138-f99709370657
* FS#12094 - RDA5802 tuner: clean up register 0x4 handling, drop implicitly ↵Bertrik Sikken2011-06-04
| | | | | | enabled soft-mute by Stephan Grossklass and me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29959 a1c6a512-1295-4272-9138-f99709370657
* Android: listen to ACTION_AUDIO_BECOMING_NOISY for headphone (FS#12097).Dominik Riebeling2011-06-04
| | | | | | | | | | | This event is sent before the audio is routed back to the speaker so we get the information about the unplugged headphone notably earlier. Decrease the debouncing of the headphone status from 1s to 0.5s to work around audio still getting played back via the speaker due to the pause delay by debouncing. On Android we shouldn't need the debouncing at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29957 a1c6a512-1295-4272-9138-f99709370657
* Android: implement headphone detection thus enabling pause on unplug (FS#12097).Dominik Riebeling2011-06-04
| | | | | | | | | | | Listen to headphone plug events. There are currently two glitches with this: - Android takes a while until it reports the unplug event, so there will be some delay until playback gets paused. This is an Android limitation. - Rockbox debounces headphone state changes for one second. Therefore playback will shortly be routed to the speaker on unplug until Rockbox does the actual pause. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29956 a1c6a512-1295-4272-9138-f99709370657
* iAudio boot: Unify common macro valuesJens Arnold2011-06-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29955 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - missing semicolonMarcin Bukat2011-06-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29953 a1c6a512-1295-4272-9138-f99709370657
* fix rockchip i2c driverMarcin Bukat2011-06-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29952 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#11813 - Frequency is not tuned the first time the radio is turned onBertrik Sikken2011-06-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29946 a1c6a512-1295-4272-9138-f99709370657
* Android: install codecs as native libs instead of extracting them (FS#12134).Dominik Riebeling2011-05-31
| | | | | | | | | | Codec files are loaded as dynamic libraries. Instead of extracting them from the packaged libmisc.so and therefore having them present twice on the device put them into the apk as native libraries. Decreases the size of the installed Rockbox by the compressed size of the codecs. Also, the extraction on first Rockbox startup gets notably faster since it's less data to extract. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29940 a1c6a512-1295-4272-9138-f99709370657
* Android: ignore swap16 and swap32 from NDK.Dominik Riebeling2011-05-31
| | | | | | | The NDK includes swap16 and swap32 macros, Rockbox as well. Use the Rockbox ones and avoid a macro redefined warning. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29939 a1c6a512-1295-4272-9138-f99709370657
* Rockchip rk27xx port initial commit. This is still work in progress.Marcin Bukat2011-05-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29935 a1c6a512-1295-4272-9138-f99709370657
* Fix an implicit declaration warning.Dominik Riebeling2011-05-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29930 a1c6a512-1295-4272-9138-f99709370657
* Fix SDL touch screen handling on the screen edgesThomas Jarosch2011-05-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29925 a1c6a512-1295-4272-9138-f99709370657
* Fix a problem where hardware keypresses dont reset the idle poweroff timer ↵Jonathan Gordon2011-05-25
| | | | | | on android git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29924 a1c6a512-1295-4272-9138-f99709370657
* FS#12120. Convert FRACMUL macros into inline functions and fix typecasting ↵Nils Wallménius2011-05-24
| | | | | | for 64 bit platforms so that sims produce the same results as targets. Tweak the cf inline asm to not require an immediate value but add a FORCE_INLINE attribute to one of the cf functions to make sure it gets inlined as that saves both codesize and cycles. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29921 a1c6a512-1295-4272-9138-f99709370657
* A few people have reported problems running the fuzev2 LCD at max ↵Michael Giacomelli2011-05-18
| | | | | | brightness. I don't have one of these players, but as a precaution lets lower the max brightness a bit until someone figures out why. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29896 a1c6a512-1295-4272-9138-f99709370657
* The gigabeat S needs special casing so that you can still hold vol down to ↵Michael Giacomelli2011-05-16
| | | | | | access its firmware partition. Additionally, the same logic should apply to firewire on the iPods. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29890 a1c6a512-1295-4272-9138-f99709370657
* Enter USB charging mode on devices that support it if any key is held down ↵Michael Giacomelli2011-05-16
| | | | | | during USB insert (except on Archos where certain keys need to be avoided and players like the iRiver H1x0 which do not charge over USB and the iAudios/AMSv2 which do not yet support USB fully). Update the manual to explain the new behavior. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29889 a1c6a512-1295-4272-9138-f99709370657
* fuze+: implement a full-blown debug screen for touchpad with graphical feedbackAmaury Pouly2011-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29869 a1c6a512-1295-4272-9138-f99709370657
* fuze+: implement Synaptics RMI driver on top of i2c, add touchpad debug ↵Amaury Pouly2011-05-11
| | | | | | | | screen, bootloader enters debug screen by default Since the bootloader currently always fails at storage point (unimplemented), always enter touchpad debug screen and power off which pressing power button. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29859 a1c6a512-1295-4272-9138-f99709370657
* fuze+: add init/enable/disable lcd sequences for the second lcd kind (only ↵Amaury Pouly2011-05-10
| | | | | | based on disassembly, untested) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29852 a1c6a512-1295-4272-9138-f99709370657