diff options
author | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-02 21:44:29 +0100 |
---|---|---|
committer | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-02 21:57:55 +0100 |
commit | dbabd0d9c34a33bc0c51243ec37f230d117db955 (patch) | |
tree | 46de348929ce739702a230a2587fdb5539585753 /lib | |
parent | cef17e3d59ad93f766e8ee23b1610540a33dfe5e (diff) |
iBasso DX50/DX90: Major code cleanup and reorganization.
Reorganization
- Separated iBasso devices from PLATFORM_ANDROID. These are now standlone
hosted targets. Most device specific code is in the
firmware/target/hosted/ibasso directory.
- No dependency on Android SDK, only the Android NDK is needed.
32 bit Android NDK and Android API Level 16.
- Separate implementation for each device where feasible.
Code cleanup
- Rewrite of existing code, from simple reformat to complete reimplementation.
- New backlight interface, seperating backlight from touchscreen.
- Rewrite of device button handler, removing unneeded code and fixing memory
leaks.
- New Debug messages interface logging to Android adb logcat (DEBUGF, panicf,
logf).
- Rewrite of lcd device handler, removing unneeded code and fixing memory leaks.
- Rewrite of audiohw device handler/pcm interface, removing unneeded code and
fixing memory leaks, enabling 44.1/48kHz pthreaded playback.
- Rewrite of power and powermng, proper shutdown, using batterylog results
(see http://gerrit.rockbox.org/r/#/c/1047/).
- Rewrite of configure (Android NDK) and device specific config.
- Rewrite of the Android NDK specific Makefile.
Misc
- All plugins/games/demos activated.
- Update tinyalsa to latest from https://github.com/tinyalsa/tinyalsa.
Includes
- http://gerrit.rockbox.org/r/#/c/993/
- http://gerrit.rockbox.org/r/#/c/1010/
- http://gerrit.rockbox.org/r/#/c/1035/
Does not include http://gerrit.rockbox.org/r/#/c/1007/ due to new backlight
interface and new option for hold switch, touchscreen, physical button
interaction.
Rockbox needs the iBasso DX50/DX90 loader for startup, see
http://gerrit.rockbox.org/r/#/c/1099/
The loader expects Rockbox to be installed in /mnt/sdcard/.rockbox/. If
/mnt/sdcard/ is accessed as USB mass storage device, Rockbox will exit
gracefully and the loader will restart Rockbox on USB disconnect.
Tested on iBasso DX50.
Compiled (not tested) for iBasso DX90.
Compiled (not tested) for PLATFORM_ANDROID.
Change-Id: I5f5e22e68f5b4cf29c28e2b40b2c265f2beb7ab7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbcodec/dsp/compressor.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rbcodec/dsp/compressor.c b/lib/rbcodec/dsp/compressor.c index 685851ec29..93281d276c 100644 --- a/lib/rbcodec/dsp/compressor.c +++ b/lib/rbcodec/dsp/compressor.c @@ -185,7 +185,7 @@ static bool compressor_update(struct dsp_config *dsp, auto_gain ? "Auto" : "Off"); } - if (settings->ratio != cur_set.ratio) + if (settings->ratio != curr_set.ratio) { if (ratio) { logf(" Compressor Ratio: %d:1", ratio); } @@ -193,16 +193,16 @@ static bool compressor_update(struct dsp_config *dsp, { logf(" Compressor Ratio: Limit"); } } - if (settings->knee != cur_set.knee) + if (settings->knee != curr_set.knee) { logf(" Compressor Knee: %s", soft_knee?"Soft":"Hard"); } - if (settings->release_time != cur_set.release_time) + if (settings->release_time != curr_set.release_time) { logf(" Compressor Release: %d", release); } - if (settings->attack_time != cur_set.attack_time) + if (settings->attack_time != curr_set.attack_time) { logf(" Compressor Attack: %d", attack); } @@ -357,7 +357,7 @@ static bool compressor_update(struct dsp_config *dsp, for (int i = 1; i <= 65; i++) { DEBUGF("%02d: %.6f ", i, (float)comp_curve[i] / UNITY); - if (i % 4 == 0) DEBUGF("\n"); + if (i % 4 == 0) { DEBUGF("\n"); } } DEBUGF("\n"); |