summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* iBasso DX50/DX90: User selectable freq scaling governor.Udo Schläpfer2015-02-02
| | | | | | | | | | | | | | | | | | | | | | Depends on http://gerrit.rockbox.org/r/#/c/1043/. This patch adds a new setting in Settings -> General -> System: Freq Scaling Governor Usable in Quickscreen and Shortcuts. Possible settings are: - Conservative: Slow frequency switching. - Ondemand or Interactive: Fast frequency switching. - Powersave: Allways lowest frequency. - Performance: Allways highest frequency. German translation provided. This may be genric for Android kernel based devices but is only enabled for iBasso Devices. Other maintainers may choose do adopt this. Change-Id: I10296f5be9586ad3a409105db0cd03682a30e9c1
* iBasso DX50/DX90: Major code cleanup and reorganization.Udo Schläpfer2015-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* iBasso DX50/DX90: Rockbox loader, replacement for original firmware MangoPlayer.Udo Schläpfer2015-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This loader is needed to use Rockbox on iBasso DX50/DX90 devices. It replaces /system/bin/MangoPlayer. It expects - the original firmware MangoPlayer as /system/bin/MangoPlayer_original - the chooser.bmp file as /system/chooser.bmp - the rbmissing.bmp file as /system/rbmissing.bmp - the usb.bmp file as /system/usb.bmp - Rockbox in /mnt/sdcard/.rockbox/ (internal device storage accessable via USB) On first boot or if the device is booted with the hold switch engaged (upper, locked position) this loader will let the user choose between Rockbox and the orginal firmware MangoPlayer. It remembers the last choice and will start the choosen player an following boots. In the chooser screen - the device can be powered off with a power button long press. - Rockbox can be startet with the "Next/Fast Forward" button or by touching the right part of the touchscreen. - the orginal firmware MangoPlayer can be startet with the "Previous/Rewind" button or by touching the left part of the touchscreen. If Rockbox can not be found/executed than a "Rockbox is missing" screen will be shown and the orginal firmware MangoPlayer will be started after 30 seconds. This loader will (try to) restart Rockbox or the orginal firmware MangoPlayer if something unexpected happens. This loader can be installed via a customized firmware image (update.img) or manually via the Android Debug Bridge (if you get adbd started on the device). This is a rewrite and code clean up of the original submission, eliminating the need for a custom Android Vold. This loader "knows", when Rockbox has exited due to a USB mass storage connection remounting /mnt/sdcard and acts accordingly, displaying a "USB connection" screen while waiting to restart Rockbox. Change-Id: I2698e173437f9c7aa1ff40649a290220e2ee0439
* CPUFreq scaling governor interface for Linux/Android hosted devices.Udo Schläpfer2015-01-30
| | | | | | For a usage example see http://gerrit.rockbox.org/r/#/c/1074/ Change-Id: I1d61e0eba6552a9b5d6e15a2e3169435b2f7079d
* iBasso DX50/DX90: CPU info enhancements.Udo Schläpfer2015-01-30
| | | | | | | | | | | | System -> Debug (Keep Out) -> View CPU stats Will now show the current cpufreq scaling governor, minimum, current and maximum cpufreq scaling frequency for each CPU. This may be genric for Android kernel based devices but is only enabled for iBasso Devices. Other maintainers may choose do adopt this. Change-Id: I53e212f8707bf2abaa557e297293fb559ac37058
* fix surround & pbe dsp crashChiwen Chang2015-01-30
| | | | | | check handle before clean up buffer in flush(). Change-Id: I36a130c45c9f5dce97aa723ef98922b6935ead75
* ypr0/ypr1: GPIO handling API refactoringLorenzo Miori2015-01-29
| | | | | | | | | | The GPIO APIs for ypr0 and ypr1 targets was messy, requiring a direct communication via several ioctls calls. Since it is planned to add support to other devices, more GPIO are going to be used. For that reason the functions shall be clear and easy to use. Change-Id: Ia2304335e1fed1305cc2c4320bd4c097e13079be
* yp-r0: improve the charging codeLorenzo Miori2015-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some people reported strange charging times and strange battery life. Charging by OF: 25 hours; RB: 18 hours It has been found that there are at least two issues here: 1) the way of getting battery charging status wasn't really accurate. This attempts to fix that issue. This patch also simplifies some code (opening a device is no more needed, for example). To technically explain, battery charging implies first a constant current mode (where the voltage increases) and then a constant voltage mode (where, obviously, the voltage reads more or less the same). The old way the End Of Charge was detected was based solely on the voltage, while now it is based on chip's EOC interrupt, which should be more accurate. 2) OF explicitly sets a constant current 350 mA, while we usually had 55 mA (by as3543 default). This wasn't discovered before since there is a caching problem ("an accurate guess") in the Samsung power mgmt Linux module, thus its debugging dumper wasn't really working, reporting a 55 mA current. Strangely this option should have been set by the bootloader but apparently it does not. Some testing is still needed, but I confirm that with this patch I could run a benchmark for 25 hours (vs. 18 hours), by charging within Rockbox of course. Change-Id: I3bd921e86b9018d1cc3c720d15cc46896e8490b3
* atj213x: Fix DMAC block in description fileMarcin Bukat2015-01-23
| | | | Change-Id: I4afc17b06f85d552248c0248e6b4b921ffc1e7a7
* atj213x: fix desc file errorsMarcin Bukat2015-01-22
| | | | | | | Catched by swiss_knife check there are some overlaping fields and invalid characters in some names. Change-Id: Ia26ffd2e29452f4ddd9f8229f78bb2a2cc325ab4
* Fix some language in the sound settings manual.Michael Giacomelli2015-01-22
| | | | Change-Id: Ia487a903a221dda6cb81cf409cd18d1fb6522123
* fix pbe/haas surround dsps: surround_enabled, redo flush functions.Chiwen Chang2015-01-22
| | | | | | | | surround_enabled was never true, end up dsp_surround_flush didn't work; Thats why a cracking noise occurs in right channel when moving track positions. redo pbe/surround flush in a much simpler way suits the current single buffer style. Change-Id: I394054ddfb164b82c90b3dcf49df4442db87d8d2
* Fix typo in zxbox.tex that broke the manual builds for some targetsFrank Gevaerts2015-01-20
| | | | Change-Id: I38e5ba2a99c807e6d24f39e9e75ad3df39cc0bf1
* Bypass the AS3543 audio mixer at higher volumes.Mihail Zenkov2015-01-19
| | | | | | This change reduces noise and distortion very slightly at higher volumes. Change-Id: I1a2eb160c2956de90764c0bb11677fdac8d96dec
* Enable buflib and core_alloc for warble.Frank Gevaerts2015-01-19
| | | | | | | Most of the work comes from http://gerrit.rockbox.org/r/#/c/1088/ by Thomas Jarosch. Change-Id: Iaa673dad2388d1e44fc95ffaa14bafadc6158101
* three new DSPsChiwen Chang2015-01-19
| | | | | | | | | | | | | | | perceptual bass enhancement - a bbe-ish group delay corrction with Biophonic EQ boost. - precut auditory fatigue reduction -reduce signal in frequency that may trigger temporary threshold shift haas surround -frequency between f(x1) and f(x2) is always bypassed. -can apply to side only. Change-Id: Icb6355ce9b1c99bf2c58c9385c3c411c0ae209d3
* hwstub: implement read/write data abort recoveryAmaury Pouly2015-01-13
| | | | Change-Id: I1625873b6864584c40984723d82548ad242ee08e
* Fix crash on uninitialized variableThomas Jarosch2015-01-13
| | | | | | | | | | | The WRITE() macro checks if the "fw" pointer is open upon fwrite() error. Since fw was not initialized before use, it might crash for non-zero fw. cppcheck reported. [utils/jz4740_tools/HXFreplace.c:187]: (error) Uninitialized variable: fw Change-Id: I558170f9f17828c9fd515a5da36ad8b5cb30a9ad
* Don't return pointer to array allocated on the stackThomas Jarosch2015-01-13
| | | | | | | | | | It will be out of scope once the function is left. cppcheck reported: [firmware/drivers/rtc/rtc_zenvisionm.c:31]: (error) Pointer to local array variable returned. [firmware/drivers/rtc/rtc_zenvisionm.c:38]: (error) Pointer to local array variable returned. Change-Id: Ibf28ba9b3d20cadcaff22398e143488c86746660
* Clean up bogus 'make compiler happy' codeThomas Jarosch2015-01-12
| | | | | | Less code makes the compiler even happier. Change-Id: I24cf586ba44f432b541fd17079f93dbd52314828
* ARM unwinder for thumb: Fix broken MOV opcodeThomas Jarosch2015-01-12
| | | | | | | | | | | | | | | | | The origin of the register value was never moved in the desired register state due to a typo ('rhs' vs. 'rhd'). While looking at the code, I noticed the action taken for the register value is another copy'n'paste error from the ADD opcode above -> it added to the register value instead of MOVing the current value. Patch submitted upstream. cppcheck reported: [lib/unwarminder/unwarm_thumb.c:473]: (warning) Redundant assignment of 'state.regData[rhd].o' to itself. Change-Id: I78cdbf37a191007a3bddbaa350b906dbce2fe671
* Fix redThomas Jarosch2015-01-12
| | | | Change-Id: Ia7565dac0f6b9703a5dfff723167620deb218bc3
* ARM unwinder for thumb: Fix broken SUB opcodeThomas Jarosch2015-01-12
| | | | | | | Detected while looking through the code. Patch submitted upstream. Change-Id: I7ebe7b5f5947cf3df1b054d545dba92829f21b99
* ARM unwinder: Add missing 'register' variable in debug outputThomas Jarosch2015-01-12
| | | | | | | Also fix a wrong format specifier for an unsigned variable. Detected by cppcheck, patch submitted upstream. Change-Id: I9b84d91eeb242ed77b53ecc16252c5b35190bb9f
* ARM unwinder: Add missing va_end() call.Thomas Jarosch2015-01-12
| | | | | | Detected by cppcheck, patch submitted upstream. Change-Id: Ieeec9d2e7e2c22d64c94936958f5a4ff02d3548b
* SVG image of the Samsung YP-R1 and other formats for the manual.Szymon Dziok2015-01-12
| | | | Change-Id: I95cdba5f8db0f4789e7c954f49c1ee9c79cba29f
* Fix red/yellow round #2Marcin Bukat2015-01-12
| | | | Change-Id: Ife25eac11fc6f6cedeca8f3fa59536bce0efe2cd
* Set latex input to /dev/null to avoid blocking on errorsFrank Gevaerts2015-01-12
| | | | Change-Id: If8878efb5d4244f5d25b9bfd4751a262080af53f
* Fix red/yellowMarcin Bukat2015-01-12
| | | | Change-Id: Ie01251af2cd843979b5fdefcfa541ba377d13bd7
* regtools/headergen: Make generator more flexibleMarcin Bukat2015-01-12
| | | | Change-Id: I2328ec021ed990a40257d4ce6f4fc5b3db2ba998
* Get rid of stupid _backlight_* function namesMarcin Bukat2015-01-12
| | | | | | _remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
* Limit more variables to file scopeThomas Jarosch2015-01-11
| | | | Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
* Improve readability by adding parenthesisThomas Jarosch2015-01-11
| | | | Change-Id: Iff51ab441a59f1ba842132b809a49d1fe7232e05
* Make a few local variables staticThomas Jarosch2015-01-11
| | | | Change-Id: Ieb77a7f2cdf765afa3121320d03c0478cd97eb0f
* maemo: Clean up unused variablesThomas Jarosch2015-01-11
| | | | Change-Id: I5fbb0b0cc56fa565499345844464d1c94ff3ba1a
* Remove playback control from XWorld, fix comments a bitFranklin Wei2015-01-08
| | | | | | XWorld grabs the audio buffer when it starts, so there can be no playback, making the playback control menu useless :P Change-Id: Ia4e2c207f41619ef9b028917130d6dbf7dfba054
* usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usbAmaury Pouly2015-01-08
| | | | | | | | For some reason, the bootloader and config files didn't define HAVE_BOOTLOADER_USB_MODE, also remove the special cases in usb.c which they implied. Change-Id: I68c29be7d03627e64cac4ff7678e0c211e087a8c
* imx233: add a comment in the bootloaderAmaury Pouly2015-01-08
| | | | Change-Id: I4bf82565e730a40f37f4a29244fd461cb3214318
* Include scrreprt.4ht from ↵Frank Gevaerts2015-01-08
| | | | | | | | | http://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/generic/tex4ht/ This is needed because the version in scrreprt.4ht in debian isn't compatible with other current bits of the TeX installation. Change-Id: Ibf31f387ecc9fdb8a6ad7b7362d5b650e657bb5b
* usb: make usb_release_exclusive_storage privateAmaury Pouly2015-01-08
| | | | | | Change-Id: I0383760b7d8e67cc99bbe4e4979bca92ef436c8d Reviewed-on: http://gerrit.rockbox.org/1098 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Clarify usb_powered() and fix some code.Amaury Pouly2015-01-08
| | | | | | | | | | Either by mistake or because its meaning changed, usb_powered() doesn't mean what the name suggest, so clarify its meaning by renaming it to usb_powered_only. So use of usb_powered() are replaced by usb_inserted() when it makes more sense. Change-Id: I112887e2d8560e84587bee5f55c826dde8c806d8 Reviewed-on: http://gerrit.rockbox.org/1097 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* usb: document usb states, powering and detectionAmaury Pouly2015-01-08
| | | | | | Change-Id: Ia3b7d6c6294bfb9272355c3f28a994dd0e83cbce Reviewed-on: http://gerrit.rockbox.org/1096 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* usb: document usb_status_event and #ifdef it with USB_STATUS_BY_EVENTAmaury Pouly2015-01-08
| | | | | | Change-Id: I62cdb8ad71a598279fe99cc91d87eafda26cbbc7 Reviewed-on: http://gerrit.rockbox.org/1095 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* usb: move usb charging function prototype from usb_core.h to usb.hAmaury Pouly2015-01-08
| | | | | | Change-Id: Id29c60d3aa26f8badca6c38c1cbb2e5a39c554dc Reviewed-on: http://gerrit.rockbox.org/1094 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Get rid of USE_ROCKBOX_USBAmaury Pouly2015-01-08
| | | | | | | | | | | Except for unfinished or experimental ports, it isthe case that USE_ROCKBOX_USB and HAVE_USBSTACK are both defined or both undefined. Furthermore, it is a leftover of some early developments on the USB stack and doesn't make sense anymore. Change-Id: Ic87a865b6bb4c7c9a8d45d1f0bb0f2fb536b8cad Reviewed-on: http://gerrit.rockbox.org/1091 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* Fix yellowThomas Jarosch2015-01-05
| | | | Change-Id: I8685198c208b5324b09b5ad59f7379502e9ed977
* Make thirty functions static to reduce binary sizeThomas Jarosch2015-01-05
| | | | | | | | | | | If any of those functions should be (unused) API functions, they can easily be turned back once really needed. Detected using a new cppcheck check that uses the internal symbol database to catch functions that are only used in the current file. Change-Id: Ic2b1e5b8020b76397f11cefc4e205f3b7ac1f184
* jz4740 usbtool: Fix undefined behavior in set_reg()Thomas Jarosch2015-01-04
| | | | | | | | | | | | | | The variable 'i' should actually be 'size'. See the read_reg() function above it. Confirmed via private email from Maurus Cuelenaere. Thanks! (who also remembered having trouble reading/setting registers over USB back then ;)) cppcheck reported: [rockbox/utils/jz4740_tools/jz4740_usbtool.c:281]: (error) Uninitialized variable: i Change-Id: I0f34834335e89d2504e7597e8db22cf69b5ca7e7
* mktime(): Remove redundant assignment of 'result'Thomas Jarosch2015-01-04
| | | | | | | | | | | Checked with upstream lynx source code and the second calculation line is the upstream one, too. (In fact I diffed the whole function to check for changes) cppcheck reported: [rockbox/firmware/libc/mktime.c:43] -> [rockbox/firmware/libc/mktime.c:44]: (performance) Variable 'result' is reassigned a value before the old one has been used. Change-Id: Ia04c5f55da7d86cd74cff4fce675a9c85ddce3e2
* hosted target: Fix uninitialized variable in dirinfo.attributeThomas Jarosch2015-01-04
| | | | | | | | cppcheck reported: [rockbox/firmware/target/hosted/filesystem-app.c:509]: (error) Uninitialized struct member: ret.attribute [rockbox/firmware/target/hosted/filesystem-app.c:517]: (error) Uninitialized struct member: ret.attribute Change-Id: Ie8cab727faa8110a6fe3926dbcf852e8b9e96ca7