summaryrefslogtreecommitdiffstats
path: root/firmware/export
AgeCommit message (Collapse)AuthorFilesLines
2020-10-17Define a USB storage type, and hook it up for hosted targetsSolomon Peachy4-2/+17
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
2020-10-17hosted: Fix HAVE_MULTIDRIVE to work properly with PIVOT_ROOTSolomon Peachy1-1/+1
Change-Id: Ibc97de5c345e88c19ad8ba8c05fefebbada08790
2020-10-17xduoox3ii/erosq: Fix CPU frequency declared in headerSolomon Peachy2-2/+2
(108 MHz -> 1008 MHz) Change-Id: I2baf416689e2afb68948609e226df8c5feeecc4a
2020-10-15m3k: Fixes for the M3K.Solomon Peachy1-2/+0
* Cannot turn off the LCD directly (have to rely on backlight) * Only insmod/rmmod the usb gadget modules if state changes Change-Id: I9ea90177d496cd035ada93e04a93a7c6f2e84706
2020-10-15hosted: Unify the USB code for the hiby-based players.Solomon Peachy4-0/+16
* Specify exported USB VID/PID in target config header * Don't fail if the sd filesystem has already been remounted (ie due to platform hotplug) Change-Id: Ifd2dae0c4f15086bf2bf89eb093018b3c4d2b75d
2020-10-14erosq: Add battery discharge curve and initial runtime estimation.Solomon Peachy1-3/+7
(playing mp3 with headphones inserted lasted just over 13 hours) Change-Id: Id610f911811eafd914db20000ae860c75e0d8a93
2020-10-13imx31: Work around an apparently not-quite-kosher abuse of CPPSolomon Peachy1-3/+4
(we were trying to foward-declare functions from within static initializer context. GCC no longer accepts this) Change-Id: I58f316ecc84c8ab45fffc054955727a55714b0a3
2020-10-13xduoox3ii: Update battery curve.Solomon Peachy1-2/+4
Change-Id: I2cc04d696631ba887fa8943d94360f902bf12e85
2020-10-12hosted: More PCM muting workSolomon Peachy1-0/+1
* Track mute state, only call hw if actual change is needed * Don't unmute in audiohw_postinit() * sample rate tracking fixes * erosq: Don't start up muted Change-Id: I004f787a4b7ea73c16b6ec9818ec29a12c89f46b
2020-10-12Hosted PCM: Rework auto-muting code a bitSolomon Peachy1-0/+8
* If AUDIOHW_MUTE_ON_PAUSE, no meaningful change * Unconditionally unmute on playback start * xduoox3ii: Mute on sample rate change * rocker/xduoo: Stay muted after startup This avoids the nasty "pop" on startup, without doing the full mute-on-pause stuff that causes unacceptable dropouts on the X3ii. Change-Id: I2e3ee0bb8094e288f37a0acada86a80016ce5cac
2020-10-11Turn on ROLO for M3K tooSolomon Peachy1-0/+5
Change-Id: I7e1b2168a70605c5a138d83fd69e847fd02af4a4
2020-10-11hosted: sanitize handling of HOME_DIRSolomon Peachy11-22/+22
* HOME_DIR is now either "/" or special "<HOME>" * target-specific "home dir path" is defined solely by PIVOT_ROOT * PIVOT_ROOT path is now defined in toplevel config files * Make Samsung YP-R0/R1 and SONY_NWZ use PIVOT_ROOT too * Do not prepend PIVOT_ROOT path if the path already has it! * Do not play these games for __PCTOOL__ builds Change-Id: I3d51ad902a5f9cafe45ba15ba654f30f1ec6113a
2020-10-11New port: AIGO EROS Q / EROS KSolomon Peachy10-4/+160
The Q and K have a slightly different case, but the hardware under the shell is completely identical. These models are rebadged versions: * Hifiwalker H2 (== Q) * AGPTek H3 (== K) * Surfans F20 (== K) Other notes: * Significant improvements in the shared Hiby-platform launcher/loader * SD card can theoretically be hot-swapped now * Support external USB mass storage! * Some consolidation of Hiby-platform targets * Some consolidation of plugin keymaps Todo/known issues: * Keymaps need to be gone over properly * Convert to HAVE_SCROLLWHEEL? Change-Id: I5a8a4f22c38a5b69392ca7c0a8ad8c4e07d9523c
2020-10-11hosted: Add ROLO support for hosted targetsSolomon Peachy4-0/+22
Change-Id: I2d46a63ee8225a9d9d77dd80a06c418af78c260c
2020-10-09New port: FiiO M3KSolomon Peachy5-1/+138
Most credit goes to: Roman Skylarov Additional integration and refactoring by myself. *** COMPLETELY UNTESTED *** Change-Id: Ia64c36d92e0214c6b15f7a868df286f8113ea27b
2020-10-09codecs: Add support for the 'VTX' ZX Spectrum chiptunes format.Solomon Peachy10-12/+14
This codec requires floating point. Original author: Peter Sovietov Ported to Rockbox: Roman Skylarov Further integration and bugfixes: Solomon Peachy Change-Id: I781ecd3592dfcdbbc694063334350342534f1d6c
2020-10-05FS13241: Get rid of the hacky hold switch emulation on the X3ii & X20Solomon Peachy2-6/+0
It doesn't work properly and interferes with the power button in the keymap. Rework WPS keymap a bit to make single-tap power emulate lock. Change-Id: I9d9b9b4adcea3764e6e427f484e051c9bab9d13b
2020-10-03imx233: Enable 96/192K playback for all imx233 targets that have roomSolomon Peachy11-26/+35
Change-Id: Ief00cc9243af3168f0c088520936137b64f3b581
2020-10-03Disable 88/96KHz from targets that lack the IRAM to hold the mix buffersSolomon Peachy8-42/+12
Change-Id: I67b15d4c517a74a23639f8659acbc89022c264b5
2020-10-03alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it.Solomon Peachy1-0/+2
Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f
2020-10-02For backlights that have a wide control, support skipping steps.Solomon Peachy3-3/+6
the rocker, x3ii, and x20 now take advantage of this, and fades are far faster now. Change-Id: Iceb1a5a6c1d1389c3fdb859b32016b5114a80a22
2020-10-01xduoox3: Work out clocks for 176/192KHz support.Solomon Peachy1-1/+1
Note: PCM mix buffer sizes are _way_ too small for these high bitrates (We really need to make the mixer stuff use dynamic buffer sizes based on the bitrate. Maybe pre-allocate a max size based on upper bitrate limit, but use only part of it at lower bitrates? So we can have sane latency..) Change-Id: Id7b4afd73dba7f1ffb84b2e1c016859fae5d6835
2020-10-01xduoox3ii/x20: Proper lineout detection and volume mangling.Solomon Peachy5-11/+5
hotplugging hp and lineout works, without blowing out eardrums. Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
2020-10-01fix some of the red introduced in e43726dSolomon Peachy3-10/+2
Change-Id: Id1abb0dd11f8a8e79a80fc54e58a5a22706a03ad
2020-10-01hosted pcm-alsa improvementsSolomon Peachy7-20/+17
* xduoo x3ii/x20: Better line out support * less granular volume settings (too many steps before) * Better handling of swiching sample rates * Log actual sample rate in debug menu Most credit goes to Roman Stolyarov Additional integration [re]work by myself Change-Id: I63af3740678cf2ed3170f61534e1029c81826bb6
2020-09-30audio: Add support for 192 and 176KHz playbackSolomon Peachy29-77/+118
* SAMPR_CAPS_ALL -> SAMPR_CAPS_ALL_48/96/192 * All targets claiming SAMPR_CAPS_ALL now get appropriate subset * No need to explicitly define HAVE_PLAY_FREQ * Rates that are a multiple of 44 or 48KHz can be used for playback Inspired by a patch by Roman Stolyarov, but substantially rewritten by myself. Change-Id: Iaca7363521b1cb9921e047ba1004d3cbe9c9c23e
2020-09-30Leave HOME_DIR out of default recording and playlist pathsSolomon Peachy1-2/+2
The hosted filesystem code will automatically prepend HOME_DIR. Change-Id: I36a76e51637ab2bb68353f8eb9ffac25ca75bad1
2020-09-28xduoo: x3ii and x20 also have their CPUs clocked at 1008 MHz.Solomon Peachy2-2/+2
Change-Id: I59fbd1edc934a6e2b2323e13b4efc3cc1caad903
2020-09-28xduoox20: UI Simulator supportSolomon Peachy1-1/+1
Change-Id: I2a03cea07fbad9fb5862ca69e4cfca2e8ca6b17f
2020-09-29rocker: CPU is actually running at 1008MHz, not 532.Solomon Peachy1-1/+1
Change-Id: If5204574cb604d1ea82f0863d300468bedcf541d
2020-09-17jz4760: Heavily rework USB driver to add working DMA supportSolomon Peachy1-0/+12
* DMA Bulk IN (ie our TX) results in sequential transfers 33-68% faster. * DMA Bulk OUT (ie RX) is mostly stripped out due to complete brokenness. * Interrupt and control endpoints remain PIO-driven. Other improvements: 1) Use consistent endpoint references (no magic numbers) 2) Greatly enhanced logging 3) DMA support can be compiled out completely 4) Setting lockswitch will disable all DMA operations at runtime 5) Much more robust error checking and recovery Change-Id: I57b82e655e55ced0dfe289e379b0b61d8fe443b4
2020-09-04jz47xx: Audio path tweaks:Solomon Peachy1-0/+4
* Increase audio buffer size to better handle IRQ latency (256->2048) * Ensure DMA engine is idle prior to starting transfers * Set AIC to repeat last sample in case of underflows Change-Id: I9c45c20481ee072e5882b7586fb7d50bd8ef2f35
2020-08-30XduooX3 Tweak LCD drive strength and slewWilliam Wilgus1-3/+3
Change-Id: Ic5ee9e700a0c8acffc39b51cedc24ff44d230fd3
2020-08-29jz4760: Disable dynamic clocking entirely.Solomon Peachy1-3/+3
Back off to 480MHz [max] clock, bus/mem clock of 120MHz. 576 is unstable on at least one unit, and 528 still glitches. Change-Id: I020e48532524e739f3bfa42bed570381ccd34959
2020-08-29cs4398: Change default volume to -25 dB (from 0 dB)Solomon Peachy1-1/+1
Change-Id: Iac216951b6f21bd83bb1d529e231bbb3e0aa0da6
2020-08-29Xduoo X3 Tweak LCD settingsWilliam Wilgus1-0/+7
Adds contrast setting which actually sets the drive voltage Change-Id: I173238e2efe9e50c6ef4cda9bf991e7ee5568ff5
2020-08-29xduoox3: When not using dynamic clocks, use max cpuSolomon Peachy1-3/+5
Change-Id: I789bb4eccc5b663156f5d1b7cd5d291b60ccb18d
2020-08-28xduoox3: enable HAVE_GUI_BOOSTSolomon Peachy1-0/+3
Change-Id: I719057b3539d6fb80cef10238a13c5071def1be5
2020-08-27Xduoo X3 - Grey scale lib updateWilliam Wilgus1-25/+25
greylib on the xduoo x3 now matches the rest of the 1bit targets Change-Id: I2685869da6734404356552cc9f4ed5f59ebd6650
2020-08-26xduoox3: Include curves for both battery typesSolomon Peachy1-1/+1
There is no way to detect this at runtime so it is a user setting Change-Id: Ibc5b87312238c59e3678d512af27e3a3bcb9a58a
2020-08-26xduoox3: Update battery discharge curve and runtime estimatesSolomon Peachy1-0/+4
(Brand new unit lasted one minute shy of 12 hours!) Change-Id: I0330f43065412d432a45b555bb310f943eb526e7
2020-08-20Revert root_redirect :(William Wilgus3-13/+0
This reverts commit 31fc46ded69be7438cca2ba2c2b93c1f200165a6. Change-Id: Ia78618c0e8b25ca65f7c8ae0db1cb9c9b321bad9
2020-08-20Allow mounting of any directory as the root directory.William Wilgus3-0/+13
Provide definitions for the macros: * RB_ROOT_VOL_HIDDEN(v) to exclude certain items from the root. * RB_ROOT_CONTENTS to return a string with the name of the directory to mount in the root. Defaults are in export/rbpaths.h It's a bit much for those that don't need the full functionality. Some conditional define can cut it back a lot to cut out things only needed if alternate root mounts are required. I'm just not bothering yet. The basic concept would be applied to all targets to keep file code from forking too much. Change-Id: I90b5c0a1c949283d3102c16734b0b6ac73901a30
2020-08-19Enable boot from SD for Sansa e200Johannes Rauh2-3/+27
Change-Id: I0940f2cd5fc914d6d5061b5798b1a636009649b7
2020-08-12xduoox3: Fix build when disabling adjustable cpu freqSolomon Peachy1-4/+3
Change-Id: Ia8526ad81d7a9744972d9c4fb394e61175ad2391
2020-08-09Enable full sample rate sets for X3ii, X20, and RockerSolomon Peachy3-0/+12
Change-Id: I89e139efb8a7662afaaabec360e6579907f8d025
2020-08-09Fix HOME_DIR path for Rocker, X3ii, and X20Solomon Peachy1-1/+3
Prevented plugins from accessing their config files properly Change-Id: Ic3b115aaa9168fa30b98607aeacb1a12b5498a5f
2020-08-07jz4760: Support dynamic reclocking!Solomon Peachy1-2/+12
default/low speed is 192 MHz, Max is 576 Downclock PCLK/MCLK/etc to 96MHz to save a bit of juice Honestly the high speed could be dialed down to, eg 384 as this thing is so bloody fast.. Change-Id: Ie65597c74290f1603e65f69dae8e75b59c8ba0b4
2020-08-07xduoox3: Enable HAVE_PLAY_FREQSolomon Peachy1-0/+1
This way the player can natively play back 48KHz audio Change-Id: I1d525ec7cb5540062b9e13489d3b53479e68435f
2020-08-07xduoox3: Set PLL0 to 480MHz, not 492.Solomon Peachy1-1/+1
PLL0 Needs to be a multiple of 48MHz for sane USB operation! (Indeed, "typical" clock for this part is 528, but that seems a waste of power) Also fixes a minor bugaboo in the jz4670 usb divisor calculation that won't matter until we enable reclocking Change-Id: I40b1fd1ae48871e50885981ccc8b01feb711b9a5