summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Rework rbspeex dependency generation to use single dependency files.Dominik Riebeling2013-05-11
| | | | | | | | | | | | Similar as done in d2b8f91 change dependency generation to use one file per source file. This removes the need to have external tools installed on Windows. Previously Cygwin or msys tools needed to be in the system PATH which was problematic at times. This means that now building on Windows (using MinGW) doesn't require additional tools anymore. Change-Id: I4c0675e99c3cc3a729b91beefd58320db498ae0a
* Update mkrk27boot Makefile for libtools.make changes.Dominik Riebeling2013-05-11
| | | | Change-Id: Iebcb3be6024c2fa6ec94a38b8bb1cb0c7274eb85
* Implement dependency generation in libtools.make.Dominik Riebeling2013-05-11
| | | | | | | | | Automatically generate dependency files for all sources so changes in headers are picked up automatically. Use one dependency file for each source file, since that allows to create them without using external tools (except the compiler of course). Change-Id: I246c1ceb525692547af22a2e32c4bab0c11507e1
* ucl: Replace use of uname by checking the compiler output.Dominik Riebeling2013-05-11
| | | | | | | | Similar as done for libtools.make ask the compiler for the binary it creates instead of using uname to figure the target to avoid special handling when cross compiling. Change-Id: Icb4654616e4339bf9e6e3be5177b35e0bb313bcd
* Change mkdir -p to work on Windows.Dominik Riebeling2013-05-11
| | | | | | | | Windows mkdir doesn't know about the -p option and requires paths to use \ as path separator. Try to detect when building on Windows and use the Windows internal function instead of relying on a compatible mkdir in the path. Change-Id: I47d47d45edeb38c672321f77d6e91268bf744dba
* Make libtools compile rule more generic.Dominik Riebeling2013-05-11
| | | | | | | | | | Create the object - source dependency internally and use a more generic rule for compiling. Removes the need for explicit rules for source files located in a different folder. This adds the limitation for SOURCES and LIBSOURCES to only hold C files. Change-Id: I56f6a4b1e7df36347cd2f54051e072251f456092
* rk27xx: Use DMA for lcd_update_rect()Marcin Bukat2013-05-11
| | | | | | | | | | | | | | | This speeds up partial updates quite a bit but what is more important it opens up a way to efficiently implement lcd_blit_yuv() using hw colorspace conversion. Tested on rk27generic, hm60x v1 and v2 and on ma9. Benchmark for hm60x v1 (by mortalis): HEAD patched 1/1 141fps 138fps 1/4 315fps 395fps Change-Id: I4cc115786c3139000fc14c49a7290e289cfd6c42
* rk27xx: Slightly refactor lcd_set_gram_area()Marcin Bukat2013-05-11
| | | | Change-Id: I1040164220dd87b19b58be560eb5b628857bc284
* rk27xx: Decide lcd databus width at compile timeMarcin Bukat2013-05-11
| | | | Change-Id: I013da0f3f862e733c5245a48dceb08219f43bf2d
* Set APPVERSION globally for extralibs Makefile.Dominik Riebeling2013-05-10
| | | | | | | Make sure its value quotes are properly escaped. Otherwise make on Windows causes problems. Also, expand CPPDEFINES only once. Change-Id: I52e91f17626b2596f389811b22abc12d94f721d1
* Restructure options passed to libs Makefile.Dominik Riebeling2013-05-10
| | | | | | | | Setup AR before checking for ccache to avoid adding ccache to ar. Setup CC and CFLAGS in the beginning as well. Quote ar and system speex options to fix building with ccache enabled. Change-Id: I21714f0849e990abeac72dcda52c81474e090934
* Fix FS#12860 - iPod 5g line out silentMichael Sevakis2013-05-09
| | | | | | | | | | | Conversion from centibels to register values was left out of audiohw_set_lineout_volume(). Credit goes to Dave Marsh for providing the fix. Just another little oversight from sound/audiohw rework. Change-Id: I7f8b1c5fb575ac95b5d595c2f4824fbb5ebbd3c8
* Only pass AR to extralibs Makefile if the compiler is gcc.Dominik Riebeling2013-05-09
| | | | | | | | We need this only for cross compiling. Trying to figure the compiler prefix fails if the compiler isn't gcc (i.e. clang), and we only support gcc when cross compiling. Change-Id: I822e1b47ec7e9d7e9fdeae8ccf3b8d417a472ef9
* Fix Rockbox Utility building on OS X.Dominik Riebeling2013-05-09
| | | | | | | Fix a typo that broke building. Also extend the extralibs Makefile to allow calling it directly. Change-Id: I2d4dd1689a8654a6b092dfcc58d2753423831816
* hm60x: Implement lcd_enable() for v2 display.Andrew Ryabinin2013-05-09
| | | | Change-Id: I5ed0cba03711b3ba6db58405fe805d92aece974e
* hm60x: Implement lcd_update_rect for v2 display.Andrew Ryabinin2013-05-08
| | | | Change-Id: I9d6b14bcbd26cfd760516f1ef3bf421698507806
* Rename all the "lin_resample..." stuff to simply "resample_...".Michael Sevakis2013-05-07
| | | | Change-Id: I79f44f0dcc1b23b33a5040795220713660a1d18a
* Remove leftover debugging warning.Dominik Riebeling2013-05-06
| | | | Change-Id: Icb7d2de4284c1db5766f0039e5546b8956ef5afa
* Introduce HiFi E.T MA9 port.Andrew Ryabinin2013-05-06
| | | | Change-Id: I79aadc958fd5222f26f91ed127f8c6fb2c465dc2
* Purge the usage of DSP_SWITCH_FREQUENCY.Michael Sevakis2013-05-05
| | | | | | | | DSP_SWITCH_FREQUENCY has been deprecated and the same enumerated value as DSP_SET_FREQUENCY since major DSP revisions were committed. This task should have been performed much earlier but, oh well, do it now. Change-Id: I3f30d651b894136a07c7e17f78fc16a7d98631ff
* Fix FS#12859 - Bass/Treble not doing anything in new buildsMichael Sevakis2013-05-04
| | | | | | | | | Just one more SNAFU after redoing sound.c. Software bass/treble controls in the DSP expect .1 dB gain increments but the gains were being set as 1 dB increments because that's what the AUDIOHW_SETTING specifies. Just x10 the gains given to audiohw_set_bass/treble. Change-Id: Id5296f93908ec0036a5605d3a60a2cb5eec91bb5
* Change the order of global linker options and -T.Dominik Riebeling2013-05-04
| | | | | | | | | | | 95e23de made -Wl,--gc-sections appear after -T by combining it with the global linker options. Moving the global linker options in front of -T seems to fix the crash observed on mini2g after that change -- as it seems the linker behaves differently if --gc-sections is passed after -T. Fixes FS#12857. Change-Id: Id64dc6b91726760d75a1a0cd85bb7c06208d2f45
* Move building libraries to separate Makefile.Dominik Riebeling2013-05-04
| | | | | | | | | | | | | | | | | Previously several additional rules were added by qmake to build the required libraries. This has a couple of problems on Windows, requiring the use of a msys shell. Additional variables are passed as environment variables. Windows doesn't understand this. Passing the variables via make command line argument works but make won't be able to change those variables anymore, breaking things. Use intermediate variables passed via make command line that are then exported by the called Makefile. This doesn't work in the generated Makefile since the export lines must not be part of a rule. Also cleans up the project file a bit. Change-Id: Iaffb059ce8bafe17a35bd1e0a74ae7acd966c138
* Replace use of uname by checking the compiler output.Dominik Riebeling2013-05-04
| | | | | | | | | | Similar as done in ea0bfe7 ask the compiler for the binary it creates instead of using uname to figure the target. Simplify source file preprocessing to avoid using grep to improve compatibility with Windows. Change-Id: I39ecfe690c9bb70b07b0af5a7804d7e5ab512d71
* Allow overriding make variables via environment variables.Dominik Riebeling2013-05-04
| | | | | | Fixes cross compiling for Rockbox Utility. Change-Id: I3419cb4c89836ec3bee10072495042b3732fd66b
* Revert "Don't set CORE_GCSECTIONS in fixedpoint.make."Dominik Riebeling2013-05-04
| | | | | | | | | | | While it made the mini2g not crash during startup anymore further tests showed that other mini2g devices still exhibit the crash, or end up with a "No partition found" error; furthermore the device tested first still crashes on USB disconnect. Therefore the change doesn't really help with the problem, and at the expense of increasing binary size for all other targets there is no point in keeping it for now. This reverts commit 850491a043a9341ef31ffb8c02eedd2ae7b2c53e.
* Fix missed optimization opportunity in dsp_process.Michael Sevakis2013-05-04
| | | | | | | | | Input type can only change once per call because the DSP parameters are only copied at the start and input is always taken from the src buffer which means sample input format switching can be once per call instead of once per loop. Change-Id: Ifa3521753428fb0e6997e4934f24a3b915628cc7
* Cleanup and simplify latest DSP code incarnation.Michael Sevakis2013-05-04
| | | | | | | | | | | | | | Some things can just be a bit simpler in handling the list of stages and some things, especially format change handling, can be simplified for each stage implementation. Format changes are sent through the configure() callback. Hide some internal details and variables from processing stages and let the core deal with it. Do some miscellaneous cleanup and keep things a bit better factored. Change-Id: I19dd8ce1d0b792ba914d426013088a49a52ecb7e
* Fix red.Andrew Ryabinin2013-04-30
| | | | Change-Id: I64cf91a2ddc4fbf89d83bb5a401e9e4021f8c160
* rk27xx: initialize i2c driver in bootloader.Andrew Ryabinin2013-04-30
| | | | | | Change-Id: I0b343425d0cfef4d4609cabca79c1f31d8327d3b Reviewed-on: http://gerrit.rockbox.org/459 Reviewed-by: Andrew Ryabinin <ryabinin.a.a@gmail.com>
* European Portuguese update by Tiago Roque MedeirosFrank Gevaerts2013-04-29
| | | | Change-Id: Ifab5276fa746d7c989913428a30d408987ee23f4
* Don't set CORE_GCSECTIONS in fixedpoint.make.Dominik Riebeling2013-04-28
| | | | | | | | | | | fixedpoint.make is not a subdir Makefile but a lib Makefile. Setting CORE_GCSECTIONS in it will affect the final link and make it always use --gc-sections (for SWCODEC Rockbox), since libfixedpoint is always needed (bootloader and HWCODEC don't use libfixedpoint). Fixes FS#12857. Change-Id: Ib30bd03cbcea9c339a73daf7b673868aa3cc7a88
* Provide high resolution volume and prescaler to hosted targets.Michael Sevakis2013-04-27
| | | | | | | | | | | | | | | | | | | | | HAVE_SW_VOLUME_CONTROL is required and at this time only affects the SDL targets using pcm-sdl.c. Enables balance control in SDL targets, unless mono volume is in use. Compiles software volume control as unbuffered when PCM_SW_VOLUME_UNBUFFERED is defined. This avoids the overhead and extra latency introduced by the double buffer when it is not needed. Use this config when the target's PCM driver is buffered and sufficient latency exists to perform safely the volume scaling. Simulated targets that are double-buffered when made as native targets remain so in the sim in order to run the same code. Change-Id: Ifa77d2d3ae7376c65afecdfc785a084478cb5ffb Reviewed-on: http://gerrit.rockbox.org/457 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
* Properly seek to next id3v2 frame for unsynced tags.Dominik Riebeling2013-04-26
| | | | | | | | | | | When seeking to the next id3v2 frame we need to consider if the tag has the unsync flag set. Not doing so will likely make parsing end up in the middle of the current frame if the frame size exceeds the upper limit set during read. The latter usually happens for album art frames. Fixes FS#12849. Change-Id: Ic92853eef4374508d84df347bcc66b6661d5037d
* Adapt logic in configure script to cope with both x86 and x86_64 ↵Bryan Childs2013-04-26
| | | | | | | | | architecture Android NDKs Change-Id: I520443a17f1d9ced43222e14182ca4726717bc32 Reviewed-on: http://gerrit.rockbox.org/458 Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Tested-by: Frank Gevaerts <frank@gevaerts.be>
* Properly implement volume in warble. dB cut only.Michael Sevakis2013-04-25
| | | | Change-Id: I34b77287ba0b1a0002db3d52e893a52c50593362
* Add $(SHARED_CFLAGS) to fixedpoint.make to quash amd64 errors in 95e23de.Michael Sevakis2013-04-25
| | | | | | Thanks to Frank Gevaerts. Change-Id: I6ca1d0258bfc70950d0ad5c2975d2bd88060b8a3
* Make fixepoint.c as a shared library (libfixedpoint.a).Michael Sevakis2013-04-26
| | | | | | | Change-Id: Icc10d6e85f890c432f191233a4d64e09f00be43d Reviewed-on: http://gerrit.rockbox.org/456 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
* Bass/Treble caps should exist implicitly with HAVE_SW_TONE_CONTROLS.Michael Sevakis2013-04-25
| | | | | | | | | | | | | If AUDIOHW_CAPS is defined without explicit BASS_CAP/TREBLE_CAP while HAVE_SW_TONE_CONTROLS is defined, AUDIOHW_HAVE_BASS/TREBLE should be defined or otherwise the tone controls won't show up. TREBLE/BASS were being defined if AUDIOHW_CAPS was NOT defined, but the same rule should apply if the codec needs to specify other caps but doesn't use hardware tone controls. (I'm surprised noone noticed some settings gone missing :-) Change-Id: I85b5c467bab07bb62362a0dc2d582267ac2d8ec9
* Add Serial Port 1 support for iPod Photo/Color/4G/Mini2Gandypotter2013-04-25
| | | | | | | | | | | | | | | | | | Based on FS#9920 by Ryan Press with changes to selection logic so that it works on my iPod Photo. Should also work on iPod Color/4G and Mini2G. Moved all target specific code from firmware/drivers/serial.c into new file firmware/target/arm/pp/uart-pp.c in the same manner as other target specific uart code. Update to fix build error on ipodmini2g by adding defines in config file. Removed unwanted whitespace Tested on iPod Photo. Change-Id: Ia5539563966198e06372d70b5adf2ef78882f863 Reviewed-on: http://gerrit.rockbox.org/455 Reviewed-by: andypotter <liveboxandy@gmail.com> Tested-by: andypotter <liveboxandy@gmail.com> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* Update instructions in docs/README to change 'Check out from SVN' to 'Clone ↵Bryan Childs2013-04-24
| | | | | | from git' Change-Id: Ic462909f66edf66894a17e91f34f92261df47f11
* Make pcm_sw_volume.c a bit less verbose by merging volume code.Michael Sevakis2013-04-23
| | | | | | | | pcm_set_master_volume had two implementations, one for a prescaler and one without one but the differences can be made minimal enough to combine them. Change-Id: I889e60b50b9f046c093853cb1685058796fe9067
* Oops. Revert a pointless change.Michael Sevakis2013-04-22
| | | | Change-Id: I082411145a411ca7d41b359dea419ef8190d70ce
* Do some cleanup, adjustment and a couple fixes to recent sound changes.Michael Sevakis2013-04-22
| | | | | | | | | | | | | | | | | | | | | * SOUND_x enum can be generated by audiohw_settings.h along with settings entries and sound_val2phys. * VOLUME_MIN and VOLUME_MAX are no longer necessary within sound.c. If you need them, they are for target-defined purposes. * Fix up SDL volume implementation in sdl.c. Move sim volume calculation code to pcm-sdl.c. * Min trigger tresholds were based upon VOLUME_MIN for some reason. These setting have nothing to do with playback volume. Since it is no longer present, set these at -89dB which is the minimum peak meter sensitivity setting. * Fix an oversight in wm8758.c. I forgot to add the dB->register conversion to audiohw_set_volume. Change-Id: Ie1df33f1793eee75e6793f16bc7bddd16edb7f75
* Manual: fix minor error with D2 OF filenamesAlex Parker2013-04-20
| | | | Change-Id: Ieeca972ae819d33309d204f96d17471e5e390139
* imageviewer: fix animated gifs handlingMarcin Bukat2013-04-18
| | | | | | | | | | | If disposal method is set to BACKGROUND one would expect that canvas should be restored to global background color. That is what gif standard suggests. Most (all?) decoders however treat this as reseting canvas to transparency or fixed, decoder specific background color. Virtually all gifs are prepared with this in mind so to not break them we can't follow standard here. Change-Id: I90ca712bba89d4190771eb5320eabda353d3e2bb
* Forget about fixedpoint.c in any HWCODEC bin.Michael Sevakis2013-04-15
| | | | | | | It bloats to much just for one simple use. Just use a simple function for shifting sound setting decimal places. Change-Id: I1a7d37cce6ada3c6e6600dc0d301f354ffeff231
* Fix final error from 0c7b787 in Player sim.Michael Sevakis2013-04-15
| | | | Change-Id: Ifeebed8f594fc56acbbd2439fb8186566cc04de8
* rk27load: Fix stage1 (dram init routine)Marcin Bukat2013-04-15
| | | | Change-Id: I9f7bbb7e938bd5886c11533b1aa939bd27cab555
* Still at it for 0c7b787. Might be done now.Michael Sevakis2013-04-15
| | | | Change-Id: Idf45731dc6554954747f6036dc6dfcd4b63981a1