summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-02-02 21:44:29 +0100
committerUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-02-02 21:57:55 +0100
commitdbabd0d9c34a33bc0c51243ec37f230d117db955 (patch)
tree46de348929ce739702a230a2587fdb5539585753 /lib
parentcef17e3d59ad93f766e8ee23b1610540a33dfe5e (diff)
downloadrockbox-dbabd0d9c34a33bc0c51243ec37f230d117db955.tar.gz
rockbox-dbabd0d9c34a33bc0c51243ec37f230d117db955.zip
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.c10
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,
185 auto_gain ? "Auto" : "Off"); 185 auto_gain ? "Auto" : "Off");
186 } 186 }
187 187
188 if (settings->ratio != cur_set.ratio) 188 if (settings->ratio != curr_set.ratio)
189 { 189 {
190 if (ratio) 190 if (ratio)
191 { logf(" Compressor Ratio: %d:1", ratio); } 191 { logf(" Compressor Ratio: %d:1", ratio); }
@@ -193,16 +193,16 @@ static bool compressor_update(struct dsp_config *dsp,
193 { logf(" Compressor Ratio: Limit"); } 193 { logf(" Compressor Ratio: Limit"); }
194 } 194 }
195 195
196 if (settings->knee != cur_set.knee) 196 if (settings->knee != curr_set.knee)
197 { 197 {
198 logf(" Compressor Knee: %s", soft_knee?"Soft":"Hard"); 198 logf(" Compressor Knee: %s", soft_knee?"Soft":"Hard");
199 } 199 }
200 200
201 if (settings->release_time != cur_set.release_time) 201 if (settings->release_time != curr_set.release_time)
202 { 202 {
203 logf(" Compressor Release: %d", release); 203 logf(" Compressor Release: %d", release);
204 } 204 }
205 if (settings->attack_time != cur_set.attack_time) 205 if (settings->attack_time != curr_set.attack_time)
206 { 206 {
207 logf(" Compressor Attack: %d", attack); 207 logf(" Compressor Attack: %d", attack);
208 } 208 }
@@ -357,7 +357,7 @@ static bool compressor_update(struct dsp_config *dsp,
357 for (int i = 1; i <= 65; i++) 357 for (int i = 1; i <= 65; i++)
358 { 358 {
359 DEBUGF("%02d: %.6f ", i, (float)comp_curve[i] / UNITY); 359 DEBUGF("%02d: %.6f ", i, (float)comp_curve[i] / UNITY);
360 if (i % 4 == 0) DEBUGF("\n"); 360 if (i % 4 == 0) { DEBUGF("\n"); }
361 } 361 }
362 DEBUGF("\n"); 362 DEBUGF("\n");
363 363