summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/agptek
AgeCommit message (Collapse)AuthorFilesLines
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-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-11-18hosted: Improve buffer underrun handling in the ALSA driverSolomon Peachy1-0/+1
* Bump internal mix buffer size by 4x, to 1K frames (matching ALSA period) * Handle an underrun that occurs when filling the audio buffer * Log underruns and make them available in the debug info Change-Id: I28d56dd35d88851fa167ad92368a5882937a758f
2020-11-12Rocker Add WPS and Tree Hotkey, button codes in debug menuWilliam Wilgus1-0/+1
VolUp+VolDown becomes the wps and tree (file browser) hotkey Change-Id: I0cba96927420c318506bc0c15dabcb809cd81647
2020-10-31hosted: Consolidate common /dev/input code shared by the hiby targetsSolomon Peachy2-83/+3
* Enable dynamic number of input devices, needed for bluetooth support Change-Id: Ic2425834eb9b0fff298899ab45f3115ce1d95e91
2020-10-17hosted: Drop a bootloader version string in /etc, and report it in debug menuSolomon Peachy1-0/+21
Change-Id: I4d72d7800dbff56619898b6bc9d0f81a6c561598
2020-10-16hosted: open input device as read-only.Solomon Peachy1-3/+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-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-08Don't compile audio codecs into native bootloader builds.Solomon Peachy1-1/+1
Change-Id: I0b2cc143572bf88423bdf7647cee0af567aee684
2020-10-01xduoox3ii/x20: Proper lineout detection and volume mangling.Solomon Peachy1-0/+7
hotplugging hp and lineout works, without blowing out eardrums. Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
2020-10-01hosted pcm-alsa improvementsSolomon Peachy1-3/+49
* 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-29rocker: Increase the long-press shutdown delay a bit.Solomon Peachy1-1/+1
Change-Id: Ief64f3d39556efa7de7df32eb7613a29a466a02e
2020-04-08hiby: Refactor X3ii/X20 and Rocker LCD codeSolomon Peachy1-146/+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 Bukat5-515/+0
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
2019-05-31Agptek rocker: do not update display when not activeMarcin Bukat1-17/+23
Change-Id: I963a9098b82a09aed8050123932a128f2d08dee0
2018-06-28Agptek: Fix headphones detectionMarcin Bukat1-1/+1
Change-Id: Id43bfee7357eef8dda6a617c1207b930f3ea90a0
2018-06-28Agptek: Fix support for empty strings in sysfs helper functionsMarcin Bukat1-5/+19
Change-Id: Id5573059da2b454f5336b3cebce7c09a83a7826f
2018-06-20Agptek Rocker: Add missing lcd_set_active(true) in lcd_init_device()Marcin Bukat2-0/+6
This should fix problem introduced in 5c015ad resulting in not updating screen properly in wps. Change-Id: Ie36b6edfcfc7d425c84381402adae79d77fcc92f
2018-06-14Agptek Rocker: Slightly tweak build procedureMarcin Bukat1-0/+1
In bootloader build create stripped binary bootloader.rocker Change-Id: Id67bebe82251fac22ad905ad3d49525691816746
2018-06-14Agptek Rocker: Implement lcd_enable()Marcin Bukat2-1/+30
In theory this should slightly improve battery life. Change-Id: Iaf55beb7dbc20e7562017958aeb0386459d49a31
2018-06-12Agptek Rocker: Callibrate power discharge/charge curveMarcin Bukat1-5/+3
Thanks 'elakir' and 'pechenyh' rockbox forum users for performing battery bench. Change-Id: I25d350deaa805a9ecdc236f81f0ad127a169de52
2018-06-12Agptek Rocker: Implement USB mass storage driverMarcin Bukat4-12/+135
Agptek uses composite android driver. Change-Id: Iece188ad640f3dfd24c171946c14da4c3516b6d5
2018-06-12Agptek Rocker: Initial commitMarcin Bukat16-0/+1063
Change-Id: I26b51106c7b1c36a603fba6d521e917d79b5a95b