summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
AgeCommit message (Collapse)AuthorFilesLines
6 daysDefine LCD_STRIDEFORMAT unconditionallyAidan MacDonald1-3/+3
Instead of putting "#ifdef LCD_STRIDEFORMAT" at every usage of the macro it's simpler to have config.h define LCD_STRIDEFORMAT to the default of horizontal stride when the target leaves it unspecified. Change-Id: Ib187012aad65ac678dbd837b1464a83bad722411
2022-05-03add const to const * stringsWilliam Wilgus3-4/+4
I don't think this will amke any difference except maybe for hosted ports Change-Id: I84f898aea92a6963901a6d889dd18b63f24c9a41
2022-03-31hosted: call 'sync' before poweroffAidan MacDonald1-0/+1
Might be needed to avoid filesystem corruption with buggy OF kernels. Change-Id: I589eec6c1536beccf849716f11204b4b83a942a1
2022-03-11multiboot: Remove bad multiboot code from hosted RoLoAidan MacDonald1-16/+0
This looks like it was copy-pasted blindly from elsewhere and it wouldn't even compile, since hosted RoLo is completely different from native RoLo. Change-Id: I4074f5323dcbdae85db8a04f222c858e9a228432
2022-03-03Fix Red SDL, Android mounting root directory, and all the yellow tooWilliam Wilgus2-30/+0
Change-Id: Ic5077140fdcb1e3168111336bc428c27a782123c
2022-03-03Fix Red SDL, Android mounting root directoryWilliam Wilgus2-0/+30
Not actually used in either atm Change-Id: I40e0143fdde1970ac485bf664962c62d4c493d57
2021-12-10m3k simulator: remove white borderChristian Soffke1-3/+3
Change-Id: I1503dadc966af568c8a4482e1d7f5641092594f0
2021-12-10m3k simulator: add screen bezelChristian Soffke1-4/+4
Change-Id: I4a34e5be7a459f909b81266b70c30f2968068696
2021-12-05Remove a couple of #ifdefsAidan MacDonald2-0/+0
Give iBasso DX50/DX90 empty adc-target.h headers like all the other hosted targets to avoid special cases. Change-Id: Iaae15642fdec4ff18bc9ac01245753135128f676
2021-11-18WIP: Samsung YPR0/1: switch to generic SI47xx pollingWolfram Sang1-59/+0
Should work(tm). But I don't have the hardware, so it needs to be tested. Change-Id: Ic086434f570dcddacb5b7e7a1acce4b8cafc5c03
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-09-26win32: Add a stub for os_modtime() to make sim builds happySolomon Peachy1-0/+7
Change-Id: Iea90776df2a92777c8e07c5a6b6635b6734d6690
2021-08-12Eros Q Hosted: Apply DC Bias to PCM DataDana Conrad1-2/+7
Similar to the native port, the hosted port benefits from adding a -1 dc bias to the PCM data. This prevents almost all clicking artifacts. Change-Id: Ic6378716774b6d88df23c476e2ef54d49f33dc72
2021-08-06Fix wrong printf format in system-hosted.cAidan MacDonald1-1/+1
Change-Id: I73722f0711a295152a98ab784cd6cf76379ef52e
2021-08-06Fix hosted glibc backtraceAidan MacDonald1-1/+1
According to backtrace(3) man page, the string returned from backtrace_symbols() contains the return address so we shouldn't need to print it ourselves. Change-Id: Ia779207285c9ea0052b9aee3d84ee8380bf46d82
2021-08-05hosted: Fix rtc_write_datetime() error handlingSolomon Peachy1-0/+3
(if mktime() fails, don't attempt to write its result to the RTC) Change-Id: Ib09b8dccafdef032119db76f10af74dfc220cc21
2021-07-25pcm: 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