summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-05Initial commit for the Sony NWZ linux portAmaury Pouly
SUPPORTED SERIES: - NWZ-E450 - NWZ-E460 - NWZ-E470 - NWZ-E580 - NWZ-A10 NOTES: - bootloader makefile convert an extra font to be installed alongside the bootloader since sysfont is way too small - the toolsicon bitmap comes from the Oxygen iconset - touchscreen driver is untested TODO: - implement audio routing driver (pcm is handled by pcm-alsa) - fix playback: it crashes on illegal instruction in DEBUG builds - find out why the browser starts at / instead of /contents - implement radio support - implement return to OF for usb handling - calibrate battery curve (NB: of can report a battery level on a 0-5 scale but probabl don't want to use that ?) - implement simulator build (we need a nice image of the player) - figure out if we can detect jack removal POTENTIAL TODOS: - try to build a usb serial gadget and gdbserver Change-Id: Ic77d71e0651355d47cc4e423a40fb64a60c69a80
2017-09-04Modernize toolchain script and add generic arm toolchainAmaury Pouly
I did some cleanup of redudant stuff, simplify some logic, also switch to bash because sh in the pain when ones want to locally define variables for functions calls. I also added support to download more stuff like alsa-lib and more recent gccs that use a different naming convention, as well as linux kernels. I also add some build to build linux toolchains without ct-ng. The biggest problem with ct-ng is that they regularly drop support for old stuff and as a result it rots really quickly for old toolchains. I add a new toolchain for generic linux arm with the minimum requirements, it works fine on Sony NWZ and also on YP-R0. Finally, rockboxdev.sh now understand options on its command line (see --help). Notably --target to give the list of targets (useful for noninteractive scripts), --restart to restart at a step, --makeflags and others (instead of the environment variables) Change-Id: I869760c1faeb00ab381796a4cda82ffbc9637123
2017-09-01Silence warnings in mp3_encoderFranklin Wei
`const' only needs to be used once (a const pointer to const data is `const type * const'). Change-Id: I47a0d69755cb7753ac64b82b930d14b4a19b7527
2017-09-01Fix typo in gobanFranklin Wei
Pointer wasn't dereferenced as it should be. Change-Id: I4b4993fef2290c22ab8f36ba8aafe7dcafcbfa2e
2017-09-01Add missing strings Italian translationFranklin Wei
Should make us all green once again. Change-Id: Icee92fa0a0e214a0e905e4df30739e22e623733e
2017-09-01puzzles: remove unused overlay loaderFranklin Wei
Just cluttering the plugins directory as there is no COMBINED support anymore. Change-Id: I05591d457055e67cd1a01e007bec7ce77dcecb4a
2017-08-28qeditor: fix compile error and some commentsAmaury Pouly
Change-Id: I157c83fea8173adc53254f15aa49e41ee1ba7549
2017-08-27Keybox: display the entry name along with the passwordFranklin Wei
The dereference of entry->name was originally omitted, which meant that only the password would ever be displayed. Change-Id: If368a2d3dd9ddf0a253d28b9db5b98d639cfb30b
2017-08-27fix yellow, commit f2f1889 left a variable unusedAmaury Pouly
Change-Id: I128bf509cb68860cc2c12b42d032621a5bc71008
2017-08-27Implement warning silencing in a cleaner wayFranklin Wei
Change-Id: Iae6356c7e9e04f4e975b1995f77a35f6252293a4
2017-08-27Revert "Silence GCC 7.x warnings when building simulator"Franklin Wei
This reverts commit b13f6e5b67abda2e466731f39d221eec2c9eb576.
2017-08-27zen/zenxfi: always set EMI frequency to 130MHzAmaury Pouly
The ZEN/X-Fi (STMP3700) don't handle memory frequency scaling really well, for this reason we run it at a fixed frequency. That frequency was previously set to 64Mhz because when the CPU run at its lowest frequency, we set the VDD voltage to 0.975 V and on STMP3700, VDDD=VDDDMEM and this is too low to run EMI at 130Mhz. This is not a good solution because under heavy load, running the EMI at 64Mhz results in frame drops and a sluggish device. Thus we now run the EMI at 130Mhz all the time now. To do so, increase the minimum VDD voltage to 1.275 V. This may result is a decreased battery life on those targets but it will also avoid all sorts of glictches and all the device to truly run at full speed. Change-Id: Ia8391492c29fe67bc2701aa7d8cfd00a9df349e8
2017-08-27imx233: fix potential bug in udelayAmaury Pouly
Change-Id: I5c8f5d9917f7a3353862c856bd9bbbbe9b291b1d
2017-08-27zen/zenxfi: increase LCD clock frequencyAmaury Pouly
Change-Id: I157e0d537a1b9d73eda4e18a4a64b10410c6fac4
2017-08-27imx233: update comment about vbusvalidAmaury Pouly
Change-Id: Ice1ece716657fa7f78f69736e5e733e1b7f67b59
2017-08-27zen/zenxfi: fix backlight white flash on backlight onAmaury Pouly
Change-Id: If028a208bd10f46dbe25e4aade085ba7ba13d7be
2017-08-23Silence GCC 7.x warnings when building simulatorFranklin Wei
Adds -Wno-expansion-to-defined and -Wimplicit-fallthrough=0 to sim opts. Change-Id: I62148e392446ae6a3fbe4c4d55770b72962e393d
2017-08-23puzzles: misc. changes and sync with upstreamFranklin Wei
This brings puzzles up-to-date with Simon's tree, along with the rockbox-specific changes I made. Note that I also got rid of some of the ugly floating-point code in rbwrappers.c and replaced it with wrappers for our fixed-point library. Change-Id: Ibfb79acb15517116a26de1c3ea89e025146b9e2e
2017-08-23puzzles: remove old combined build codeFranklin Wei
We don't really need it anymore. Change-Id: I7c8149faa6b80807ca718b73483bdb2e41830cbd
2017-08-23puzzles: faster, smaller sqrt()Franklin Wei
Change-Id: I18e170ee49bff131fe76fa4bb1b9e0f120818b82
2017-08-23Sokoban: enable restarting level via "Select Level"Sebastian Leonhardt
This patch disables the (deliberate) feature of "Select Level", that selecting the current level wouldn't restart but rather resume. (i.e. now selecting any level will always start this from scratch). There definitely should be a way to restart the current level via menu. Currently the only possibility to do this is via button presses, but (a) these are hard to remember combos, and (b) they are not defined on all targets. This patch is meant as a lightwight alternative to g#1356 (adding a "restart level" option to the menu). Change-Id: I18ee5aff5c922f95c28d1edf2ba71dd2e50687d2
2017-08-23Add myself to docs/COMMITTERSSebastian Leonhardt
Change-Id: Ieb7967d50d0046914d37bfed49c820dd2a2706ad
2017-08-23FS#11922: Lua game - Pixel PainterSebastian Leonhardt
* Changed keymaps to PLA and added to SOURCES and CATEGORIES file * improved keymaps: implement wrap-around and key repeat * change keymap according to screen orientation * fix font size calculation * use blocking button query in main loop * replace tabs with spaces * added manual entry * added original author to CREDITS Change-Id: Id67ae99cbb7a737c7f4608e278b77a389ac2ffa6
2017-08-16puzzles: fix buildFranklin Wei
Change-Id: Ifb6d7938968a48a1492483b33c84050abcfb75e0
2017-08-16puzzles: various useless tweaksFranklin Wei
Change-Id: Ibf9769f99d61581b184d0ffa4ef0614eb976f0e8
2017-08-16puzzles: enable long-press in MapFranklin Wei
This allows for stippling regions. Change-Id: If8f271b66f6f350c843d6669918ea39712acd818
2017-08-16puzzles: fix polygon drawing in InertiaFranklin Wei
Yet another hack to accommodate our polygon algorithm... Change-Id: Ic5d304be23d30c380b19771ab68cf01c416261b4
2017-08-16puzzles: add more parameter validation checksFranklin Wei
Fixes some annoying crashes. Change-Id: If3c293bd90e301c3e697d1e5fcb1b0aa2ea320fb
2017-08-16puzzles: fix floating-point formattingFranklin Wei
This is pretty ad-hoc, but the only other ways are to rewrite sprintf (which would use too much memory on the c200v2), or implement support for floats in rockbox's formatter, neither of which are acceptable. Change-Id: I70d59fd3e90a16e2db9ae0a84cd8c14807f50b46
2017-08-16puzzles: compress extensive help textFranklin Wei
This is only really needed to save a few bytes on the c200v2, but since it adds negligible overhead, so it's implemented for all targets. A stripped down version of the LZ4 reference implementation is found in lz4tiny.c. Change-Id: Ib914ba71c84e04da282328662c752e533912e197
2017-08-16Fix stupid omissionFranklin Wei
Change-Id: I9d65b8feeeb4c31e14fa60b370a12c0cc8b13f54
2017-08-16Remove mutex_* calls from the MR:500 SPI driverFranklin Wei
As before, they would trigger a panic. Change-Id: I3c140f2897a9d3ed21e13f0a9e45025ede311de5
2017-08-10Remove bad mutex lock/unlock from tcc780x SD driverFranklin Wei
This should make cowond2 work again. Change-Id: Ib23d1548f72f9b604adad46fa1a1c0adee53c29e
2017-08-10Remove bad mutex_* calls in telechips i2c driverFranklin Wei
These were being called in a cpu mode they shouldn't have been, leading to panics. Change-Id: I7fbd0e4af5c6cbaf7177f9dafa901b3924617d7f
2017-08-09puzzles: cut size for c200v2Franklin Wei
- font caching is disabled - font table is dynamically allocated - side effect: tlsf isn't reset between runs anymore, memory leaks will have a bigger impact Change-Id: I0b25c22665d956895e8007883d522256010d04ab
2017-07-31fix yellowAmaury Pouly
Change-Id: I682e8298aa926c3c9c073b22abdcef7f5dfef9aa
2017-07-31imx233: fix horrible bug in linreg offset calculationAmaury Pouly
This was actually harmless because it was only used for the debug screen. Change-Id: I76e802c947fdefa8df498ecfeb53e4b6ce0e12bb
2017-07-31imx233: don't print stmp3780 debug info on stmp3700Amaury Pouly
Change-Id: Iffad6f39b62af496e6bb5975610807228c2986c7
2017-07-30rbcodec: remove useless includeAmaury Pouly
metadata.c does not need cuesheet.h, which in apps/ and has nothing to do with rbcodec library. Change-Id: I914a49e8c182f5c367d7db3479c2ff39565e5f07
2017-07-30rbcodec: fix compilation in debug modeAmaury Pouly
Change-Id: I124cf59c641c2e161cc147b031d9bef5ef773dfb
2017-07-30atjboottool: cleanup and add support for atj2127Amaury Pouly
Several people asked me recently how to decrypt atj2127 firmware. Someone posted on github (https://github.com/nfd/atj2127decrypt) a decrypt utility clearly reverse engineered from some unknown source. The code is an absolute horror but I concluded that ATJ changed very little between ATJ213x and ATJ2127 so I added support for the ATJ2127, credit to this github code that I stole and rewrite (code was under MIT licence). At the same time do some small code cleanups. Note that there is not 100% sure way that I know to distinguish between the two firmware types, so the code tries to do an educated guess to detect ATJ2127. If this does not work, use --atj21217 option. Also note that contrary to the github tool that decrypts and unpack in one go, this tool only does one step at once. So first decrypt: HEX -> AFI, then unpack AFI -> files. I also added for a different version of AFI. Based on AFI files I have, there are, I think, two versions: the "old" ones (pre-ATJ213x) and "new" ones. The tool only supported the new one but for some reason the ATJ2127 uses the old ones without a mostly empty header. Strangely, even this mostly empty header does not seem to follow the old layout as reverse engineered by the s1mp3 project (https://sourceforge.net/p/s1mp3/code/HEAD/tree/trunk/s1fwx/heads.h), so in fact there might be three versions. In any case, only the header is different, the rest of the file is identical so at the moment I just don't print any header info for "old" files. Change-Id: I1de61e64f433f6cacd239cd3c1ba469b9bb12442
2017-07-27puzzles: enable MinesFranklin Wei
It should work now that arm memset() has been fixed for negative values. This is the last puzzle that was disabled due to a crash.
2017-07-27Fix arm memset() handling of negative argumentsFranklin Wei
This fixes the sgt-mines plugin. Same issue was present in an old glibc as well: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a7ed1adbecb6aac49af75aae3b3498798cf63abc
2017-07-27puzzles: new input scheme for Mines and MagnetsFranklin Wei
Both these puzzles now have long press mapped to spacebar.
2017-07-27puzzles: polish up the config menusFranklin Wei
2017-07-27puzzles: tweak text positioningFranklin Wei
2017-07-27puzzles: font cachingFranklin Wei
This lets puzzles remember which fonts were loaded previously so they can be preloaded when the puzzle is started (and the disk is spinning), instead of while the game is being played.
2017-07-27puzzles: add number chooser for integer settingsFranklin Wei
Sure beats typing on the virtual keyboard.
2017-07-27puzzles: update debug menuFranklin Wei
Add an option to visualize polygon rendering to aid in diagnosing artifacts.
2017-07-27puzzles: fix flag drawing in MinesFranklin Wei
Yet another workaround to accomodate our polygon drawing "algorithm" (if you can call it that).