summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
AgeCommit message (Collapse)AuthorFilesLines
11 dayspcm: Remove unused function pcm_play_dma_get_peak_buffer()Aidan MacDonald5-40/+0
Change-Id: Ifd20fb14a22489cdb99154c01f69809a1e70d0c5
2021-07-18add Eros Q native simulator buildAidan MacDonald1-1/+1
Change-Id: Ifdc882d19020da2e18234d6276409ad3e7efa138
2021-07-13New port: Shanling Q1 nativeAidan MacDonald1-0/+8
- Audio playback works - Touchscreen and buttons work - Bootloader works and is capable of dual boot - Plugins are working - Cabbiev2 theme has been ported - Stable for general usage Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps. There's a few minor known issues: - Bootloader must be installed manually using 'usbboot' as there is no support in jztool yet. - Keymaps may be lacking, need further testing and feedback. - Some plugins may not be fully adapted to the screen size and could benefit from further tweaking. - LCD shows abnormal effects under some circumstances: for example, after viewing a mostly black screen an afterimage appears briefly when going back to a brightly-lit screen. Sudden power-off without proper shutdown of the backlight causes a "dissolving" effect. - CW2015 battery reporting driver is buggy, and disabled for now. Battery reporting is currently voltage-based using the AXP192. Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a
2021-07-11filesystem: implement os_modtime for unixJames Buren3-0/+14
Change-Id: If030d526f29aa786b5a37402413d804752286cf5
2021-04-26Nuke the never-functional iriver ifp-7xx portSolomon Peachy1-7/+0
It never worked, and hasn't compiled in something like a decade, Given the HW capabilities (limited onboard flash, no expandability) there's really no point in trying to fix/complete it. Change-Id: I7d175089840396f8891645bd10010d730dd5bfdc
2021-04-26Nuke all TCC77x targets: iAudio 7, Sansa C100, M200(v1-3), Logik DAXSolomon Peachy1-7/+0
They were never finished, never saw any release ever, and haven't compiled for the better part of a decade. Given their HW capabilities [1], they are not worth trying to fix. [1] 1-2MB RAM, ~256MB onboard flash, no expandability Change-Id: I7b2a5806d687114c22156bb0458d4a10a9734190
2021-04-13ibasso: Found a reliable way to determine if SD card is present at startupSolomon Peachy1-1/+1
Change-Id: If02788a50e141cc2e5b1a6cde2df2a5ef5713e30
2021-04-12ibasso: Default to assuming the external SD card is insertedSolomon Peachy1-1/+6
Detection at startup is proving to be unreliable. Even if card is not present at startup, upon insertion it will sort itself out properly. Change-Id: I9ee90b724c90c530a39264f698c200a48aa72b1d
2021-04-12ibasso: Implement proper PIVOT_ROOT filesystem accessSolomon Peachy3-1/+61
Including direct use of the external SD card mount Known issue: If SD card is inserted at startup, it must be ejected and reinserted to be registered. Change-Id: I5f420160bda32135cbb088c1e8b04b6e3a73018e
2021-04-10ibasso: Get rid of #include "settings.h" in the button codeSolomon Peachy1-3/+0
(It mucks with paths causing the input device open to fail) Change-Id: I1e8a63d09c229ed9bacbd599a7869e875df21fd2
2021-04-09erosq: When mucking with the clickwheel, ensure we keep the screen awake!Solomon Peachy1-4/+29
Change-Id: I49d39f301f4b44c2477a657e2af964b97d73cf6b
2021-04-08erosq: Switch to 32-bit PCM output, and do volume scaling in driverSolomon Peachy1-1/+1
Should improve audio output quality, especially at lower volumes. Change-Id: I31c38f05fe4b554b092511f0fe7aaad9f346f6c5
2021-04-08alsa: Fix an #ifdef typo in 54fcb907c1Solomon Peachy1-1/+1
HAE_ALSA_32BIT -> HAVE_ALSA_32BIT Change-Id: Icf375d42f6b20e8393b6ffe6d23b3ac96abb571b
2021-04-08alsa: instead of per-target tests, use HAVE_ALSA_32BITSolomon Peachy2-26/+30
Affects all Sony NWZ (linux) and the fiio m3k linux targets. Change-Id: I2fcf121bd026103d2b72332a5a52cc2b5e93949f
2021-04-05fiiom3k_linux: Enable HAVE_TOUCHPAD and add in missing bitsSolomon Peachy2-0/+16
Change-Id: I78fa5fdb3648adfaa40f6d5f3c255666a85e2761
2021-03-28Add M3K native to the simulatorSolomon Peachy1-0/+8
Change-Id: If3e877d2df189e44076631fd571cf6aa70ce6ca8
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 Peachy7-12/+12
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 Peachy3-12/+45
* 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-10fiiom3klinux: Fix a build warning.Solomon Peachy1-0/+3
Change-Id: I1355c87d17376422d54b259db2078ea5f886bedb
2021-03-10hosted: Consolidate the code that polls the battery charging statusSolomon Peachy14-187/+62
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-12-16erosq: Enable HAVE_SCROLLWHEEL for saner scroll wheel handlingSolomon Peachy1-15/+31
Basically no longer treat SCROLL_FWD/BACK as "button" events, instead relying on the scrollwheel hooks to handle things properly. Change-Id: I9bf18595ab3ca68e912f6dfb1f2eac2544578e73
2020-11-18hosted: Improve buffer underrun handling in the ALSA driverSolomon Peachy3-19/+62
* 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-13ibasso: Hopefully hack usb into building again.Solomon Peachy1-3/+5
Change-Id: I6f369d60319704ab4d2c18b80ba6e78902630790
2020-11-13ibasso: Fix red introduced in 60f581eSolomon Peachy1-0/+1
Change-Id: I9095e9e9213dde252de836851b743001b9483a1b
2020-11-13usb: Add ability to prompt user about what to do upon usb insertionSolomon Peachy2-22/+0
v3: Add in config option v4: Bugfixes v5: Force a redraw upon exiting v6: keypress-in-chargeonly mode enables mass storage (and vice versa) v7: Fix bootloader builds v8: Update manual, and have bootloader respect keypresses v9: Change default to mass storage (ie no change in behavior) todo: * test-build dx50/dx90 * Switch from yes/no to proper menu? * prevent WPS progress bar from drawing over us Change-Id: I82e0ccb08497b7a5aa756ce77f1332ee963703a7 ... Change-Id: I7946cf240b18a4fa8ace5e25e1eb6e97b8b12d7c
2020-11-12pcm: Further cleanup of unused bits of the PCM ACPI:Solomon Peachy5-29/+0
* pcm_get_bytes_remaining() * pcm_calculate_peaks() * pcm_get_peak_buffer() Nothing in-tree uses these at all (except for the lua plugin wrapper) Change-Id: I971b7beed6760250c8b1ce58f401a601e1e2d585
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-11-03erosq: Fix scrollwheel regression introduced in 125e97b0Solomon Peachy1-5/+11
Change-Id: Ie1a53d7140ffb09d8e3a19a41617fdc51344a619
2020-10-31hosted: Consolidate common /dev/input code shared by the hiby targetsSolomon Peachy8-274/+143
* Enable dynamic number of input devices, needed for bluetooth support Change-Id: Ic2425834eb9b0fff298899ab45f3115ce1d95e91
2020-10-31nwz/alsa: various improvementsAmaury Pouly5-82/+112
Also audiohw driver to specific device name, rewrite alsa controls code to cache more data, thus making the code easier and use less stack. Avoid using short/long in pcm alsa code since it's the wrong size on 64-bit (simulator for example) Change-Id: Ibc1ec44396e37b6cbdedbcf37300878638e5d2d3
2020-10-31hosted: fix warning when LOGF is enabledSolomon Peachy1-0/+1
Change-Id: I67b4cbf8899860411869399143424a0e55d0d4ca
2020-10-31fix red introduced in the android pcm driver (rev fe2d52c)Solomon Peachy1-1/+1
Change-Id: I2fa160fd39842a5434cf11573b50061786e610ca
2020-10-31pcm: Get rid of pcm_play_pause() and associated APIsSolomon Peachy5-79/+9
Nothing in the core has used it for some time. It's exported to the plugin API but the last plugins to use it were switched to the mixer API back in 2011. This allows us to get rid of pcm_play_dma_pause() from all audio drivers Change-Id: Ic3fa02592316f84963e41d792d1cabb436d1ff6b
2020-10-26LCD core move buf ptr and address look up function viewport structWilliam Wilgus2-3/+3
I'm currently running up against the limitations of the lcd_draw functions I want these functions to be able to be used on any size buffer not just buffers with a stride matching the underlying device [DONE] allow the framebuffer to be decoupled from the device framebuffer [DONE need examples] allow for some simple blit like transformations [DONE] remove the device framebuffer from the plugin api [DONE}ditto remote framebuffer [DONE] remove _viewport_get_framebuffer you can call struct *vp = lcd_set_viewport(NULL) and vp->buffer->fb_ptr while remote lcds may compile (and work in the sim) its not been tested on targets [FIXED] backdrops need work to be screen agnostic [FIXED] screen statusbar is not being combined into the main viewport correctly yet [FIXED] screen elements are displayed incorrectly after switch to void* [FIXED] core didn't restore proper viewport on splash etc. [NEEDS TESTING] remote lcd garbled data [FIXED] osd lib garbled screen on bmp_part [FIXED] grey_set_vp needs to return old viewport like lcd_set_viewport [FIXED] Viewport update now handles viewports with differing buffers/strides by copying to the main buffer [FIXED] splash on top of WPS leaves old framebuffer data (doesn't redraw) [UPDATE] refined this a bit more to have clear_viewport set the clean bit and have skin_render do its own screen clear scrolling viewports no longer trigger wps refresh also fixed a bug where guisyncyesno was displaying and then disappearing [ADDED!] New LCD macros that allow you to create properly size frame buffers in you desired size without wasting bytes (LCD_ and LCD_REMOTE_) LCD_STRIDE(w, h) same as STRIDE_MAIN LCD_FBSTRIDE(w, h) returns target specific stride for a buffer W x H LCD_NBELEMS(w, h) returns the number of fb_data sized elemenst needed for a buffer W x H LCD_NATIVE_STRIDE(s) conversion between rockbox native vertical and lcd native stride (2bitH) test_viewports.c has an example of usage [FIXED!!] 2bit targets don't respect non-native strides [FIXED] Few define snags Change-Id: I0d04c3834e464eca84a5a715743a297a0cefd0af
2020-10-25pcm-alsa: fix red.Solomon Peachy1-1/+1
Change-Id: Id8d5442b0b3eb4ce3c20d1c9d24f07b5378cc22f
2020-10-25hosted: alsa: Fix two bugs when recordingSolomon Peachy1-4/+6
Change-Id: Ib97857874676ea4aa8f04d44e048de8465a4da4f
2020-10-23ALSA: Further rework:Solomon Peachy2-192/+370
* Get rid of non-async (ie tick task) mode due to inherent brokenness * Get rid of nonblock mode; we never write if buffers aren't sufficient * Move driver init into pcm_open() instead of pcm_init() * Much better underrun handling * Better error handling in some situations * Add in recording functionality * Use smaller audio buffers to avoid glitching * Don't start audio buffer with silence * Allow device name to be overridden by target Recording portions based on work done by Lorenzo Miori in g#633 Change-Id: I0197bdc1749c28109eb79def1e6a3e1d62d8cef3
2020-10-23Hosted targets Fix timer cycle calculation overflowWilliam Wilgus1-1/+1
at 1 GHZ the intermediate calculation for cycles overflows 32 bits this makes timer fail even with sensible values solution divide both sides by 100 Change-Id: I18a4054c2d06fb72531d5496bba562f71b03984f
2020-10-21hosted: Allow ALSA driver to switch output device at runtimeSolomon Peachy1-19/+28
* Allow output device name to be specified * Set hw/swparams prior to actual playback start, not at init * If told to open a new device, cleanly close down old one. Change-Id: Ib97310ec23588136c031466ee9c22312ab0f9f5a
2020-10-21Add UI Simulator for Eros Q / K seriesSolomon Peachy1-0/+7
Change-Id: I9ffc101bd904b3f0e2d6a86a43fb1ae3fda73a19
2020-10-18nwzstools: add NW-A820 nvp nodesAmaury Pouly1-1/+131
Change-Id: Iab79eb0c9b0bbf8fb7622f5630f385d56878507a
2020-10-18sonynwz: Properly support multidrive, with hotswap of the SD cardSolomon Peachy1-8/+66
Change-Id: I7eb8efb0986a395d5ffbcc06a54bb680e0b59e9d
2020-10-17hosted: Drop a bootloader version string in /etc, and report it in debug menuSolomon Peachy1-0/+21
Change-Id: I4d72d7800dbff56619898b6bc9d0f81a6c561598
2020-10-17hosted: Fix USB mounting code to work with HAVE_MULTIDRIVE enabledSolomon Peachy3-9/+50
Change-Id: I48944c28903db117d3d883a5e777cafe5d055600
2020-10-17hosted: Support hot-swappable internal and external storageSolomon Peachy2-8/+39
Change-Id: I321e9da4d5087dbd91194e6faa35cd4a685a0495
2020-10-17Define a USB storage type, and hook it up for hosted targetsSolomon Peachy2-2/+9
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
2020-10-17hosted: ROLO: Fixes for PIVOT_ROOT targetsSolomon Peachy1-3/+20
Change-Id: I4888bd5db6f8a419d312c6b017f676ba6c749d89
2020-10-17hosted: Fix HAVE_MULTIDRIVE to work properly with PIVOT_ROOTSolomon Peachy1-4/+12
Change-Id: Ibc97de5c345e88c19ad8ba8c05fefebbada08790
2020-10-17samsung yp-r0/r1: use os-native opendir() in the low-level driver codeSolomon Peachy2-7/+7
Fixes blank LCD on both R0/R1 and the PMU on the R1 Change-Id: I356907676f7a0a009897fd4895bf78c1022b71d1