summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-10-09xduoox3ii/x20: Define a sane BUTTON_LEFT/RIGHT aliasSolomon Peachy1-2/+2
Change-Id: If11dfa50aeb8cb8b80de730c494d81a9e87880c4
2020-10-08Undo the hacks that allowed targets without LEFT/RIGHT (UP/DN) to build.Solomon Peachy8-18/+31
Replaced them with warnings until they are fixed *PROPERLY* Change-Id: I4425200e60f8b5224262a54f105b974cec471d22
2020-10-08Don't compile audio codecs into native bootloader builds.Solomon Peachy4-8/+16
Change-Id: I0b2cc143572bf88423bdf7647cee0af567aee684
2020-10-08get rid of ACTION_F3 (leftover from Archos days)Solomon Peachy6-30/+3
Change-Id: I8f602299bbc8caf6c8189361dbd41af31f19c1b3
2020-10-07more DEBUG build fixesMoshe Piekarski1-1/+1
Change-Id: I4ae2b79f53ce59c37ccc9ef06f5ebd145e988763
2020-10-06Fix DEBUG buildsMoshe Piekarski1-4/+0
Change-Id: Ie3b4caebf448444b7400541e44d11d40961781cb
2020-10-05FS13241: Get rid of the hacky hold switch emulation on the X3ii & X20Solomon Peachy6-48/+8
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-05agptekrocker: Rework WPS keymap a bit; replace direct pitchscreen access ↵Solomon Peachy1-8/+7
with browse Change-Id: If5cb1e1fae6ed74397cd7f56cd54c14224a4bab0
2020-10-05lua add better memory statsWilliam Wilgus3-3/+100
lua gives you a memory used number that only reflects the current allocations if fact it doesn't even give you a way to get the amount of ram free rb.mem_stats() seeks to fill this gap by marking the memory allocated for lua with a sentinel value which can later be checked to get a high water mark of the ram used by lua and a pretty good idea of how much ram is available Also includes an example script usage: used, allocd, free = rb.mem_stats() Change-Id: Ia282869f989848324d7d88c7df4827fdbce4fb4e
2020-10-04rbutil: Replace sysinfo filesystem cluster size with type.Dominik Riebeling4-14/+52
The cluster size isn't too useful. Show the filesystem type instead, since that makes it easier to identify a device not showing up because of its filesystem type. Change-Id: I8f58ea23ab90808ab0c37978b211a5470ed8bb8e
2020-10-04lua misc tweaks and cleanupWilliam Wilgus6-24/+25
checks button_status in rockev strpbrk_n custom implementation allows setting max search len in source string add some branch prediction where appropriate fix formatting in splash_scroller script Change-Id: Id5d8e9d83f4b3e361ccb67b403af8f9a8a31b8f0
2020-10-03hosted: control buttonlights along with the display backlight.Solomon Peachy1-0/+6
Change-Id: I03385db46e94ca1bb6a4e35c89f630145c9d40e5
2020-10-03alsa: Refactor pcm_dma_apply_settings_nolock()Solomon Peachy1-14/+7
Change-Id: I32190e6987afca99b24197ca7ae2853053062d30
2020-10-03lua Add scrollable stack traceback WIPWilliam Wilgus5-3/+141
lua currently splashes a stack traceback on error for deep tracebacks and especially on devices with smaller screens this leaves out a lot of vital information in the past I have resorted to splitting the traceback string or even saving the return to a file This patch provides a scrollable buffer with rudimentary text reflow to allow you to read the whole traceback string Upon traceback if you press nothing the screen will display for 5 seconds If you press OK or CANCEL it will quit immediately PREV/NEXT scrolls the list on button press timeout is disabled lua now provides rb.splash_scroller(timeout, str) example script provided too Change-Id: Idbc8ce0c514196f0fae48c43aeaea8b60d6da1a5
2020-10-03imx233: Enable 96/192K playback for all imx233 targets that have roomSolomon Peachy11-26/+35
Change-Id: Ief00cc9243af3168f0c088520936137b64f3b581
2020-10-03coldfire: Fix iAudio M5 buildSolomon Peachy1-2/+2
Change-Id: Iecbcfa16918be3abfaab0936a0dae9c9ed48933e
2020-10-03coldfire: Allow building when 88KHz audio is disabledSolomon Peachy2-3/+5
Change-Id: Ieeacf591ad4233428dca99c347043e61abae1d1f
2020-10-03Disable 88/96KHz from targets that lack the IRAM to hold the mix buffersSolomon Peachy8-42/+12
Change-Id: I67b15d4c517a74a23639f8659acbc89022c264b5
2020-10-03pcm: Dynamically-size the mixer buffer at higher audio bitrates.Solomon Peachy1-10/+29
Basically, existing sizes apply for <= 48KHz audio. Up to 96K, we double the mix buffer. up to 192K, we double it again. Will help reduce the interrupt load and overall latency, keeping it roughtly constant as a function of time, regardless of bitrate. (It is acutally a fixed-size buffer, statically-allocated to handle the worst-case bitrate the player supports. However, at runtime if we are using a lower bitrate we will only use a portion of it in order to keep latancies down) Change-Id: I61ca23180a86502732b0903fe9691c1a8c2aeaea
2020-10-03alsa: introduce AUDIOHW_MUTE_ON_PAUSE, and have rocker use it.Solomon Peachy3-8/+15
Change-Id: I1edbb8e71a9c73baaeecb01b66cbee6c3f7b5f8f
2020-10-03xduoo codec cleanupsSolomon Peachy1-6/+5
Change-Id: I6c3437bde2d9f781a02ffc6b3a83148b9a7af872
2020-10-03xduoox3ii/x20: Rework the mute control to actually function properly.Solomon Peachy1-12/+22
(By switching the output away from the audio jacks) Change-Id: Ib8511c9d45029bba038dc4d1d187174d56cb3043
2020-10-03alsa: Explicitly mute the output when we stop playing, and unmute after ↵Solomon Peachy1-1/+14
playback starts Allows us to avoid hearing the codec powering on and off. Change-Id: Idaaff437932009952ed248be97eedf54cb4cf28e
2020-10-03alsa: Handle underruns when starting a new streamSolomon Peachy1-47/+69
Unsure why this is happening, but now we detect and recover errors at startup. Also clean up the mismash of printf(), DEBUGF(), etc in favor of panicf() for the really serious stuff and logf() for everything else. Change-Id: I9aaa620d55d556645c9a6d108541b987983b32a8
2020-10-02alsa: Use larger playback buffers for higher bitratesSolomon Peachy1-4/+16
(existing ones apply up to 48KHz, scale up linearly to 192KHz) Change-Id: Iac32d49b8073b63a5d40fd21f41437e6051cb8de
2020-10-02imx233: Hardware codec supports up to 192KHz. Make it so!Solomon Peachy2-2/+8
Change-Id: If08a1d244f28092a5d5332d666fb9afdc78f35a9
2020-10-02hosted: Don't use O_SYNC for the framebuffer handle.Solomon Peachy1-1/+1
Change-Id: Iff4b1947fe053313d677b894c78250760aaef967
2020-10-02For backlights that have a wide control, support skipping steps.Solomon Peachy4-3/+28
the rocker, x3ii, and x20 now take advantage of this, and fades are far faster now. Change-Id: Iceb1a5a6c1d1389c3fdb859b32016b5114a80a22
2020-10-02hosted: Fix overzealous spamming of backlight and lcd enableSolomon Peachy2-10/+27
This caused random delays in LCD activity, and also caused key inputs to go nuts Change-Id: Ie483c86f7461455308f8c5f8999df313521c6b55
2020-10-01xduoox3: Work out clocks for 176/192KHz support.Solomon Peachy2-12/+13
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-01fix more red.Solomon Peachy1-7/+0
Change-Id: If5fee31d633e5f75272ba85f5293ad01b1ce573a
2020-10-01Fix warnings and errors introduced in b030bf5Solomon Peachy3-0/+10
Change-Id: I23966b6a79c0d2cbab2e01c649c1b991f460d8ad
2020-10-01xduoox3ii/x20: Proper lineout detection and volume mangling.Solomon Peachy10-48/+80
hotplugging hp and lineout works, without blowing out eardrums. Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
2020-10-01fix some of the red introduced in e43726dSolomon Peachy6-13/+5
Change-Id: Id1abb0dd11f8a8e79a80fc54e58a5a22706a03ad
2020-10-01hosted pcm-alsa improvementsSolomon Peachy15-91/+218
* 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-10-01scrobbler: Fix logfile location on most hosted targets.Solomon Peachy1-3/+3
Change-Id: Ie07fdbd8e99b5c492b87bb5c6a7f916e28143943
2020-10-01hosted: fix shutdown crash in framebuffer code.Solomon Peachy1-1/+9
Change-Id: I78315b81ab8df0408abc64d5edb6af37db568ad7
2020-10-01Hosted: Improvements in the LCD code. (Roman Stolyarov)Solomon Peachy2-21/+31
* Kill LCD when turning off the backlight * Fix logic errors in lcd_enable() calls * Use ioctls instead of sysfs to twiddle lcd enable Change-Id: I6864ff63d87b747ac48719b0f4ba2de00333a1d3
2020-09-30Add 192 and 176KHz to mikmod and test_sampr pluginsSolomon Peachy2-0/+4
Change-Id: I34e835ae0ae39da1ce50153eee86c14747705c4e
2020-09-30pcm: Missed a file for the 192/176K playback.Solomon Peachy1-0/+4
Change-Id: Ie9b5299bfb074604db5a9ac340f67c5ed75aa926
2020-09-30audio: Add support for 192 and 176KHz playbackSolomon Peachy32-79/+160
* 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-10-01lua: fix ipod builds broken by 127862cSolomon Peachy1-1/+1
Change-Id: Ibef7de6b4e87568206ede66c399093b66b827b69
2020-09-30lua: Include $TARGET when preprocessing the headers for the button helperSolomon Peachy1-2/+1
Change-Id: I3ab98b52991949adb1db2f13ea99ed24d827e575
2020-09-30xduoox3: Fix an error in a commentSolomon Peachy1-1/+1
Change-Id: Ic4994a7215d95f24c5d599cad762b2d0b6a03921
2020-09-30rbutil: Fix unnecessary implicit cast.Dominik Riebeling1-2/+2
Change-Id: Id05220a700eb826d38023575b02f568b1c1a7580
2020-09-30rbutil: Add postinstall hint for rocker and xduoo player.Dominik Riebeling1-2/+3
Change-Id: I4f679228a354019d830afbbd402db566abd743d3
2020-09-30Leave HOME_DIR out of default recording and playlist pathsSolomon Peachy2-5/+5
The hosted filesystem code will automatically prepend HOME_DIR. Change-Id: I36a76e51637ab2bb68353f8eb9ffac25ca75bad1
2020-09-30lua rockevents reduce context switching for action and buttonsWilliam Wilgus2-16/+31
check if any buttons are waiting in the queue before triggering the event thread for action & button events makes button events quicker and also spend less time interrupting lua both wins Change-Id: I38346c084afdd99e4608f40b52053ee39730fb40
2020-09-29configure: Compact the target selection a bitSolomon Peachy1-57/+52
Change-Id: Ic20f4085d2a135f6596d3e80be8ff1017c6b7480
2020-09-28fix x20 and yp-r1 builds.Solomon Peachy1-1/+1
Change-Id: Ifc6638c2ed6bc862ded389f1b81f30c7a0419ec0