summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-07-22keyboard add ability to specify temporary custom layoutsWilliam Wilgus37-69/+173
rb core allows you to load custom keyboard layouts this patch adds the ability to load a keyboard layout in a buffer the custom layout is temporary and does not overwrite the current layout use like so: unsigned short kbd[64]; unsigned short *kbd_p = kbd; if (!kbd_create_layout("ABCD1234\n", kbd, sizeof(kbd))) kbd_p = NULL; rb->kbd_input(buf,sizeof(buf), kbd_p); Change-Id: I7be2bd4a1b4797a147fa70228a9749dc56ac052a
2020-07-21build: Tweaks to better support non-English as primary languageSolomon Peachy3-7/+6
* get rid of $(LANGUAGE) in top-level makefile (and configure script) * un-hardcode English-as-primary-language in a couple more places * allow DEFAULT_VOICE_LANG to be overriden To actually change the primary from English, one must change: * $english in voice.pl * hardcoded 'english' in rbutil * $ENGLISH in apps/lang/lang.make * DEFAULT_VOICE_LANG in apps/talk.c * configure script (default prompt) Of course, if one wants to change the default UI language, it's simpler to change the default language setting variable at compile time, or perhaps by adding a configuration file with the desired value into the .rockbox directory when the .zip is assembled. Change-Id: If5cf76019d416e838628a2eccd4ec7d6cbaeeb74
2020-07-21genlang: More voice-related fixes.Solomon Peachy3-50/+22
* Use consistent ID numbering * Use consistent logic for voicelist and voicebin files * Fix situations where English <-> English would fail in strange ways * Delete leftover tmpfile. * Off-by-one error in voice validation code * Off-by-one error in voicelist generation Change-Id: Ib3cea2c6612138b1cbe614dacbe51000199cc9ad
2020-07-20Fix the sea of red introduced in bf546fbSolomon Peachy1-1/+2
Change-Id: Ic158771d8dae6b587e0f567e7a6bb005b5e2ac50
2020-07-21Run-time validation of INT settings.Solomon Peachy1-1/+7
Check against min/max/step parameters Many places this value is used as an index into an array; this will help prevent array overflows and undefined/undesireable behavior. Some fields accept arbitary values, continue to accept those. Change-Id: Idbb5a17b7ceae5500660987703e2d6c16e920c92
2020-07-20rbutil: Fix the X3ii's USB VID/PIDSolomon Peachy1-1/+1
Change-Id: I009b19b922874b9cce04da3d2cdd7bd142510dc2
2020-07-20rbutil: Add support for the xDuoo X3, X3ii, X20, and AGPTek Rocker.Solomon Peachy5-2/+296
* All include full bootloader installation! * X20 lack USB VID/PIDs so cannot be autodetected. * Benjie T6 (variant/OEM of the Rocker) USB VID/PID unknown. Change-Id: Ia823de072c83506d36410ec436be15a0caf97151
2020-07-20bspatch: Fix compiling on macOS.Dominik Riebeling1-0/+1
u_char is a nonstandard type. On macOS this requires to explicitly include sys/types.h. Change-Id: I929ceafc12c7cbdcc96e85cdd05cce27d8aa6795
2020-07-20menu.c fix redraw bugWilliam Wilgus1-5/+5
fix redraw bug added with c39f95465 Change-Id: I9ce232d4b760f20edb6f8274e090d2fd67c8bd78
2020-07-19Fix the yellow in the player build from c39f95465Solomon Peachy1-1/+4
Change-Id: Iae3a8f4eccd3708b41d43da6e12a3199b1d657c6
2020-07-19Fix more of the red from c39f95465Solomon Peachy1-2/+2
Change-Id: I8c9510774803f7164f7a003575711f3dd980223c
2020-07-19menus: Fix some of the red from c39f95465Solomon Peachy1-1/+1
Change-Id: Ic22123a83bf119605c8ddf686b6a8e21f9555c6a
2020-07-19do_menu pass internal synclist reference to callbackWilliam Wilgus39-110/+343
keep running into the rigid nature of do_menu it isn't too bad when you don't need voice but once you do the fun awaits do_menu likes to talk on menu enter which is in a loop when you use do_menu I would like to move the processing to the callback TOO BAD you only get an action and the menu_item_ex struct you sent it when calling the function Change-Id: Iaefd0cc133435d675b7dd27a558c504d6ccb327a
2020-07-19gitignore: We don't care about files ending in '~'Solomon Peachy1-0/+1
Change-Id: I0ed8ae6caaba0b2f04f55b08cb54abc358e9ce0d
2020-07-19rbutil: Add in missing voicefile languagesSolomon Peachy1-4/+8
Change-Id: I6b38bc7ba1c9dc6f399297142d007fcd7736eb36
2020-07-19rbutil: Support 'espeak-ng' and 'mimic' TTS enginesSolomon Peachy4-0/+92
Change-Id: Ibf6e46254f42b28800351fdb303539b2ec13d422
2020-07-19voice: Allow use of an existing (textual) voiceids fileSolomon Peachy1-31/+57
If it's present, we don't need to generate one, which means we don't need to know the target name and features list. The next step is to accept the binary variant that rbutil uses so we can generate a complete voice file on the cmdline. Change-Id: I1a355f985e6af46b11610de781996000110ae9de
2020-07-16storage: Clean up storage_xxxx macros when STORAGE_MULTI is not setSolomon Peachy3-19/+20
Change-Id: I1652eac1743f4b8b84da08ea5a6d04ac7e17e21d
2020-07-16statusbar: explicitly #include <button.h>Solomon Peachy1-0/+1
This header relies on stuff that might get defined in button.h, and was reliant upon being implicitly included. The last thing we want is a struct to change layout underneath us! Change-Id: If96451bc5e2219031a592ab82c56045188dbe645
2020-07-15Add support for ID3 tags embedded in AIFF filesMoshe Piekarski3-5/+43
Change-Id: I15eb50b6ba1c26052f08e01861f47faede3b9b3b
2020-07-15imx233: rtc: Explicitly clear the soft reset bit when initializingSolomon Peachy1-0/+2
If we come up and the RTC is in a reset state, we need to release that before trying to initialze anything else. (See IMX23RM 23.8.1 and 39.3.10) Change-Id: I1820ab771ba81f7d428d07040b7d188d9f688127
2020-07-15rk27xx: rename 'start' to '__start'Solomon Peachy3-5/+5
Change-Id: I3c5bbbc952222e840e82171431ba996a6a5d298b
2020-07-15mkinfo: Make memory size computation more accurateSolomon Peachy1-0/+6
* imx233 had disjoint memory map * hosted binaries not computing start address properly Change-Id: Ia45571e0c41f07f1d4f34f6e1a0067dcac530148
2020-07-15xduoox3: Add HID mappings for multimedia and presentation modesSolomon Peachy1-1/+55
Change-Id: I7264fed77c448db4b54104d81a10e118923c361d
2020-07-15mips: Adjust stack sizesSolomon Peachy2-4/+4
Main/IRQ from: 7.5/0.75 to: 7.25/1.0 With the reduction of the opus codec stack usage, giving the IRQ stack some additional breathing room is now possible. Change-Id: Id0cd3747fcaab70e2360667ac8c1a97ba7234ccf
2020-07-15opus: shrink stack usage by nearly 700 bytesSolomon Peachy1-28/+33
By moving three structures to the heap. None are in the hot decode loop, instead having to do with file sync / header state. Has neglible impact on performance (within measurement noise) on Clip+, Rocker, and Xduoo X3. On PP5022 (ipodmini2g) performance drops from 138.66% to 138.22% realtime. (0.3%) Unknown effect on Coldfire which lacks D$. Stack savings are pretty significant especially on lowmem devices. Change-Id: Ic8a1e93062ff5a46230e824134032053c4e1986d
2020-07-15Buflib_init Bugfix MinsizeWilliam Wilgus1-0/+6
when buflib_init is called with a buffer smaller than sizeof(union buflib_data); size will be zero Later when the alloc fails buflib will keep try to free items in order to satisify the request this crashes in the sim I suspect this behavior holds true on device as well but I havent verified this as of yet. patch adds minimal overhead to the buflib and panics when the size is too small Change-Id: I46e510367fc1cac19ce01ee6f92d8cf0d65ef914
2020-07-14puzzles: always reset input state before pause menuFranklin Wei1-3/+3
We were improperly conditioning the state reset with `do_pausemenu'. We should reset the input state no matter what. Change-Id: Iaafc59b95e9f1f053b57a34f0f28f7c672c0e327
2020-07-14puzzles: more verbose debug output in font loadingFranklin Wei1-3/+38
No functional changes. Change-Id: I7baa7bf37b3bdd57064c654a72d0e4e0d5600245
2020-07-15talk: only show the "failed reading .voice" splash if talking is enabledSolomon Peachy1-1/+2
Change-Id: I4046294e39c621ddeeceeb6f21eab05a1e687cb5
2020-07-15debug ata: Distinguish between Advanced power management and basic PMSolomon Peachy1-1/+4
The old debug menu item covered APM, which is optional in the ATA spec However, despite basic power management being mandatory, several popular ATA/CF->SD adapters do not advertise PM support and have problems when it is used. An earlier patch (g#2500 / 5462907) disabled sleep when the PM capability bit was not set; this makes it visible in the debug menu. Change-Id: I2f3dd1244798d7bbb8239ac159c6470774b0c05e
2020-07-14FS#13215: Russian translation update (Alexander Levin)Solomon Peachy1-147/+99
Change-Id: I0c53ef10b7cd3488176ffd670ab273ba4638e8de
2020-07-14FS#13214: Update Italian translation (Alessio Lenzi)Solomon Peachy2-0/+100
Enable the Italian voice nightly build too. Change-Id: I34f36202714c51ec65d6b5ce288a3e10a2b32f37
2020-07-14Pictureflow manual updateWilliam Wilgus1-2/+10
Change-Id: Id917971792fefb842f855e14ed809cc830ff518e
2020-07-14rbutil: Handle the new Retired target status.Solomon Peachy2-3/+8
It's considerd stable, but does not have dev builds any more So don't display download options to get RC or dev builds. Change-Id: I68ed6adc2dd72d54464d3ff8d8e8df28088f8020
2020-07-14Enabled hotkey for Sansa Clip playersIgor B. Poretsky6-8/+9
Change-Id: Ic0fb331415bf0cc0fce5916befce64f4a41c46ee
2020-07-14Pictureflow Bugfixes & Usability fixesWilliam Wilgus1-531/+1208
First I discovered a bug in the code to display the currently playing album from the WPS --on a NULL id3->albumartist field PF would crash now checks for a match in id3->albumartist and then id3->artist if neither exists then the search uses <untagged> ditto for album The album index feature (recently added) did not check for enough room in the buffer on restore --save and restore code cleaned up a bit moved all buffers to their own struct tracks with no title now show filename rather than <UNTAGGED> Reworked album search function album search was going quadriatic resulting in some outrageous index build times [40mins+ for 4000 albums] building now done in stages and duplicates removed at end *MUCH FASTER* Album art empty album art is no longer stored in the art cache PF will now allow you to cancel building album art without forcing a rebuild next run, it will continue searching for album art in the background album art is now updated in the background on each start as well tracklist now rolls over at the end artist_index is now discarded after album_index is created Cleaned up some of the myriad of global variables Added quit prompt for index building Added sanity checking for album_index loaded from disk Change-Id: I8494cb7abcb1ae8645c223fc3c11dc0ee749883a
2020-07-13builds.pm: Enable Greek and Slovak voice builds.Solomon Peachy1-0/+2
Change-Id: Idf322dd4367cf250885b7f040b1e0de10ee8b945
2020-07-13builds: Allow voices to be filtered by an 'enabled' flag.Solomon Peachy1-9/+16
(So only voices that are confirmed okay are built) Change-Id: I78dae45182352e5939941744fba2c0e015866804
2020-07-13Fix warnings in Estonian languageSolomon Peachy1-0/+2
Change-Id: I2ec07665a5d09703a67fa13852ed99bfb13d9f6e
2020-07-13lang: Fix boneheaded mistake in ca31bad8Solomon Peachy1-2/+2
Change-Id: Iee3842ab7b5d4660855b683141a45a09c187b29f
2020-07-13voice: Ensure all voicelist files in voicefiles.zip are completeSolomon Peachy1-1/+3
Backfill all missing strings from the English master translation. Change-Id: Ie28f4cf804c22141a2c62f82ed8b2d71c822c74a
2020-07-13genlang: Skip strings not present in english in all voicelist modesSolomon Peachy1-1/+2
Change-Id: If4a4c8c42ce68ecac4aee4400ea82cc709e26c1a
2020-07-12build: We don't want '-r' in MAKEFLAGS for toolchain builds.Solomon Peachy1-4/+5
Change-Id: Id1a96fb2274572ae7520a146b13f044f68e0c3aa
2020-07-12voice: Ensure there are no missing strings when generating the voicelist.Solomon Peachy1-1/+5
If the translation is not 100% complete, we need to make sure anything missing is copied from English so there won't be any gaps in the voice files. (This behavior is similar to what we do for the regular binary lang files) Change-Id: I5fd2a50d08317eb8445926145a74a38033e0ebcc
2020-07-11ATA: Make sure "hard disk" supports power managementSolomon Peachy1-0/+5
The FC-1307 CF->SD converter that is the basis of a lot of ATA->CF devices (including several iflash iFlash models) claims to not support ATA power management commands. Rockbox unconditionally issues those commands as support is mandated by the ATA spec. This patch checks the capability bit, and if it's not supported, does not attempt to put the ATA subsystem to sleep. It is not clear if the problems lie with the SLEEP commands or the wakeup process, but who knows where else the FC1307 violates the ATA specs, and reliability is much more important than power savings. Change-Id: I8b539c579d0449a8a3cfa63cdd1387db990fe820
2020-07-11fat: Validate FS Info Sector signature when attempting to mount volumeSolomon Peachy1-0/+11
The "try to mount as superfloppy" fails with some partitioning layouts because sector 0 can have a mostly-valid FAT32 signature. However, in all dumps I've looked at, sector 0's fsinfo offset value points at a place which lacks the fsinfo signature. Resolves FS#13213, no known regressions. Change-Id: Ib323d35cca6ca54e11aca6ba77041bf33a05a277
2020-07-11voice: Two more fixes.Solomon Peachy2-3/+3
Change-Id: I5aaf10c588f4396e61942b8fcd6c62c792ea175b
2020-07-11voice: More fixes, and add more languagesSolomon Peachy2-9/+47
* Pass strings via stdin where possible * Add German, Italian, and Norweigan to the build list. (in other words, everything with >=95% coverage) Change-Id: I0154b178b15ddd0b79566c1cb62f76ade32824aa
2020-07-11voice: Further enhancements for multi-lingual voice generationSolomon Peachy3-11/+139
* configure: allow use of full tts engine names when making selection * voice.pl: fixes for espeak-ng * build.pm: Add a list of "standard" voices for tooling use The latter will be used by the nightly builder infrastructure to determine what voices to generate. Change-Id: Iff55288f94a30fbe08d8345b730969b7264b5e0f