summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/xduoo
AgeCommit message (Collapse)AuthorFilesLines
2021-11-03xduoox3ii: Ignore the remote events when headphones aren't plugged inSolomon Peachy1-3/+3
This prevents the actual insertion/removal from triggering false events Change-Id: I54114ce903e110c31eca6b2ce258a0cf5f6b782b
2021-03-27xduoox3ii: Wrap the remote key detection in USE_REMOTESolomon Peachy1-1/+3
Makes it straightforward to disable for debugging or defective hardware Change-Id: Ie72786f6e9eabf396a05ef8a02e422c34c97691a
2021-03-25build: Get rid of suplerflous '-Os' references in linker callsSolomon Peachy1-2/+2
We should be using global optimization flags, and -Os is already our default. Change-Id: Iaba511b2b4fa2ee0f1eb1ad28024be954f4c5f03
2021-03-10xduoo_x3ii: Improvements in the meymappings!Solomon Peachy2-2/+15
* PREV/NEXT now swapped so they do what is expected in most contexts * List and setting context retains prior behavior * Enable the ADC that reads the headset remote and map the keys. * As ADC-based remote "events" arrive as press/release pairs, delay the button release. Change-Id: I22d4eac3bfe1573b50eca795cf377bdafdeb5336
2021-03-10hosted: Consolidate the code that polls the battery charging statusSolomon Peachy3-36/+0
affects all hiby targets, fiiom3k, and ibasso dx50/dx90 As well as deduplicating a small pile of code, this also implements hysteresis so we're not doing a sysfs read/lookup multiple times back-to-back every time the power management tick fires. Change-Id: I2f7672acbb36341becf67e07960c24c681270d09
2020-10-31hosted: Consolidate common /dev/input code shared by the hiby targetsSolomon Peachy2-87/+3
* Enable dynamic number of input devices, needed for bluetooth support Change-Id: Ic2425834eb9b0fff298899ab45f3115ce1d95e91
2020-10-16hosted: open input device as read-only.Solomon Peachy1-2/+2
Change-Id: I4dcd98f45f41fe06a0a75a2a0dd45c753c2cf365
2020-10-15hosted: Unify the USB code for the hiby-based players.Solomon Peachy1-118/+0
* 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-13xduoox3ii: Update battery curve.Solomon Peachy1-2/+2
Change-Id: I2cc04d696631ba887fa8943d94360f902bf12e85
2020-10-11New port: AIGO EROS Q / EROS KSolomon Peachy1-1/+0
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: Use O_CLOEXEC for all open() and "e" for fopen() callsSolomon Peachy1-1/+1
This way we'll automatically close the files upon exec() Change-Id: Ic0daca8fb56432830de4a2f4a86a77337121ecc7
2020-10-09xduoox3ii/x20: Define a sane BUTTON_LEFT/RIGHT aliasSolomon Peachy1-2/+2
Change-Id: If11dfa50aeb8cb8b80de730c494d81a9e87880c4
2020-10-08Don't compile audio codecs into native bootloader builds.Solomon Peachy2-5/+9
Change-Id: I0b2cc143572bf88423bdf7647cee0af567aee684
2020-10-05FS13241: Get rid of the hacky hold switch emulation on the X3ii & X20Solomon Peachy2-36/+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-01Fix warnings and errors introduced in b030bf5Solomon Peachy1-0/+1
Change-Id: I23966b6a79c0d2cbab2e01c649c1b991f460d8ad
2020-10-01xduoox3ii/x20: Proper lineout detection and volume mangling.Solomon Peachy1-16/+7
hotplugging hp and lineout works, without blowing out eardrums. Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
2020-10-01hosted pcm-alsa improvementsSolomon Peachy1-6/+1
* 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-04-08hiby: Refactor X3ii/X20 and Rocker LCD codeSolomon Peachy1-140/+0
Once some missing power optimization stuff was added to the X3ii code, they were completely identical. Change-Id: I68e4db5e270e8ff22f91e521616a054bd7baa95d
2020-04-06xDuoo X3II and X20 portMarcin Bukat12-0/+799
Provided by Roman Stolyarov Integration, Refactoring, and Upstreaming by Solomon Peachy X3II confirmed working by forum tester, X20 is nearly identical. This includes bootloader, main firmware, and the flash image patcher. Eventual Todo: * Further refactor AGPTek Rocker & xduoo hiby bootloaders * Further refactor AGPTek Rocker & xduoo hosted platform code Change-Id: I34a674051d368efcc75d1d18c725971fe46c3eee