1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/export
William Wilgus 7100090f99 Remove NVRAM infavor of a separate cfg file
remove nvram and use the existing settings framework for it

add a crc check to the user_settings data to see if we need to save
the user setting file or if we can just save the status file (resume.cfg)

move volume to the system_status struct so we don't write the whole settings file
over volume changes

allow user to still export volume with save sound settings

allow the user to also export pitch and speed

name the file .resume.cfg

Rename all the SYSTEM_STATUS save file variables to TLAs to save space and
discourage tinkering

Cleanup DEBUG_AVAIL_SETTINGS output

when saving user_settings it calls status_save as well this cause the resume
file to be written twice. instead remove the callback for status_save
when setting_save is called

remove header text when saving .resume.cfg

convert status_save() to status_save(bool force)
add SYSTEM_STATUS_UPDATE_TICKS

for ATA device set this to 5 minutes
since we arlready wait for the disk to be up before saving
we don't want to miss our window

for all other every 15 minutes

that way if the battery is too low by the time shutdown comes around you
don't lose much progress

Change-Id: I27214ffd6e5d5494ee5ca83b14f04a41ba426ad7
2025-01-21 00:04:32 -05:00
..
config erosqnative: hw4 units prefer egauge battery percentage 2025-01-19 17:30:21 -05:00
adc.h
aic3x.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
ak4376.h FiiO M3K: audio recording 2022-01-29 19:28:03 +00:00
ak4537.h Radio and radio recording for Samsung YH-920. 2014-06-18 18:06:17 +00:00
akcodec.h
as3514.h as3514: document hardware setting based on as3514.c 2016-12-12 13:10:52 +01:00
as3525.h
as3525v2.h as3525v2: use the new USB DesignWare driver 2016-08-15 02:56:23 +02:00
ascodec.h AMS: Return ascodec to interrupt-based I2C2 driver 2017-01-25 00:05:13 +01:00
at91sam9260.h
ata-defines.h
ata-driver.h
ata.h ata: Prefer using "virtual" sector size where possible 2024-11-15 07:24:08 -05:00
ata_idle_notify.h events: Rework event subsystem (add_event, send_event) to be more versatile. 2014-03-14 23:36:30 +01:00
ata_mmc.h Unify storage threads into one 2017-10-26 14:35:41 -04:00
audio.h Remove obsolete alias for audio_record function 2023-08-17 13:40:09 +02:00
audiohw.h ErosQ New Revision HW volume 2024-01-02 06:51:07 -05:00
audiohw_settings.h Add new audiohw capability: POWER_MODE_CAP 2021-03-22 13:00:11 +00:00
axp-2101.h erosqnative: hw4 units prefer egauge battery percentage 2025-01-19 17:30:21 -05:00
axp-pmu.h axp-pmu: adc refactor 2022-01-09 20:12:41 +00:00
backlight-sw-fading.h
backlight.h Ability to control backlight for soft lock action 2023-09-09 22:00:14 -04:00
backtrace.h mips: add native backtrace implementation 2022-05-22 07:16:11 -04:00
bidi.h
bitswap.h
bootchart.h
bootdata.h multiboot: Add v1 boot protocol 2024-03-31 16:57:19 +01:00
button.h [BugFix] YesNo screen wait for button release on exit 2025-01-17 00:42:25 -05:00
codec-dx50.h Fix checkwps build for dx50 & dx90 targets 2020-04-14 08:15:19 +02:00
codec-dx90.h Fix checkwps build for dx50 & dx90 targets 2020-04-14 08:15:19 +02:00
config.h erosqnative: hw4 units prefer egauge battery percentage 2025-01-19 17:30:21 -05:00
config_caps.h audio: Add support for 192 and 176KHz playback 2020-09-30 21:37:11 -04:00
cpu.h Merge s5l8700.h and s5l8702.h into s5l87xx.h 2024-11-24 15:56:23 +02:00
cs42l55.h iPod Classic: capture support for CS42L55 codec 2015-10-07 06:15:03 +02:00
cs4398.h cs4398: Change default volume to -25 dB (from 0 dB) 2020-08-29 08:51:35 -04:00
cscodec.h
cw2015.h New port: Shanling Q1 native 2021-07-13 22:01:33 +01:00
dac3550a.h Straighten out the mad twisted state of sound.c and related areas. 2013-04-15 12:02:05 -04:00
debug.h
devicedata.h erosqnative hw1/hw2: Check for DAC in bootloader 2024-12-06 11:39:24 -05:00
df1704.h ma9: Slightly change df1704 driver API. 2013-11-05 09:59:45 +04:00
disk.h storage: Support a default virtual sector size 2024-11-09 17:48:00 -05:00
dm320.h DM320: Regorganize LCD and TTB memory layout 2021-07-09 09:24:38 +00:00
ds2411.h
dsp-util.h
dummy_codec.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
eeprom_24cxx.h
eeprom_settings.h iriver_flash: update valid bootloaders table 2020-11-16 11:57:18 +00:00
enc_base.h Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
eros_qn_codec.h erosqnative hw1/hw2: Check for DAC in bootloader 2024-12-06 11:39:24 -05:00
erosqlinux_codec.h ErosQ (both): avoid clipping due to DC offset bandaid 2021-09-05 15:50:21 +00:00
es9018.h Add Xuelin iHIFI 770/770C/800 support 2019-01-02 08:10:01 -05:00
es9018k2m.h ErosQ Native ES9018K2M: Add digital filters capability 2024-01-02 08:19:23 -05:00
es9218.h New port: Shanling Q1 native 2021-07-13 22:01:33 +01:00
events.h USB add Insertion and Extraction callback events 2021-10-31 12:02:38 -04:00
fat.h filestr_cache: Some more 64-bit sector_t fixes 2024-11-11 10:38:58 -05:00
fiiolinux_codec.h pcm: Get rid of pcm_play_pause() and associated APIs 2020-10-31 01:18:27 +00:00
fmradio.h
fmradio_3wire.h Radio and radio recording for Samsung YH-920. 2014-06-18 18:06:17 +00:00
fmradio_i2c.h
font.h font.c cleanup 2023-02-15 23:02:36 -05:00
ft6x06.h Shanling Q1: enable multi-touch reporting 2021-11-24 18:49:03 -05:00
gdb_api.h Nuke the never-functional iriver ifp-7xx port 2021-04-26 07:42:58 -04:00
general.h [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
generic_i2c.h Sansa Connect: Use deviceid in USB Serial Number 2021-07-10 08:56:32 +02:00
hangul.h
hd66789r.h
hosted_codec.h iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
hostfs.h More red fixes: 2024-07-07 15:40:27 -04:00
hwcompat.h [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
i2c-async.h Make inline functions in headers 'static inline' 2021-12-02 21:31:54 +00:00
i2c-coldfire.h Add INIT_ATTR to i2c_init() 2023-01-12 06:33:50 -05:00
i2c-pp.h
i2c-rk27xx.h Add INIT_ATTR to i2c_init() 2023-01-12 06:33:50 -05:00
i2c-s5l8700.h Add INIT_ATTR to i2c_init() 2023-01-12 06:33:50 -05:00
i2c-s5l8702.h Add INIT_ATTR to i2c_init() 2023-01-12 06:33:50 -05:00
i2c.h Fix red in 7e5fc4076a 2023-01-12 11:56:47 +00:00
i2s.h
iap.h iAP: lingo 1 (microphone) 2015-10-07 06:15:04 +02:00
imx31l.h
imx233-codec.h imx233: slightly rework 3D audio setting 2016-12-12 12:15:24 +01:00
imx233.h imx233: fix soc header for stmp3600 and stmp3700 2013-06-18 15:33:07 +02:00
ipod_remote_tuner.h Improve radio RDS driver and framework 2017-02-11 22:19:32 -05:00
isp1362.h
isp1583.h
jz4740-codec.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
jz4740.h Convert non-ASCII characters to UTF-8 2024-12-15 21:16:12 -05:00
jz4760b.h Convert non-ASCII characters to UTF-8 2024-12-15 21:16:12 -05:00
jz_mxu.h
lcd-remote.h lcd_framebuffer bugfixes, sanity checks 2020-10-31 01:11:30 -04:00
lcd.h Fix red in c36d7768c5 2024-04-01 16:30:41 +01:00
led.h
linuxboot.h x1000: bootloader: fix Linux self-extracting kernel boot 2022-03-24 23:40:07 +00:00
load_code.h Rewrite filesystem code (WIP) 2014-08-30 03:48:23 +02:00
logdiskf.h
logf.h logf: Fix two issues with logf_panic_dump() 2021-08-06 10:08:00 -04:00
ltv350qv.h
lv24020lp.h
m5636.h
m66591.h
mc13783.h imx31: Work around an apparently not-quite-kosher abuse of CPP 2020-10-13 15:48:31 -04:00
mcf5249.h
mcf5250.h
mi4-loader.h multiboot: Refactor duplicated functions to a separate file 2022-03-11 10:58:20 -05:00
mips-archdefs.h
mips.h
mipsregs.h
mmc.h storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
mpr121.h zenxfi3: rewrite mpr121 driver 2016-06-01 23:09:27 +02:00
multiboot.h multiboot: Refactor boot data validation, add version numbers 2024-03-31 16:57:19 +01:00
mv.h storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
nand.h storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
nand_id.h
nwzlinux_codec.h nwzlinux: add support for radio 2017-11-06 21:37:06 +01:00
ohci.h
panic.h panicf doesn't return so why not tell GCC and $AVE : 2014-08-25 13:55:16 -04:00
pathfuncs.h talk: Voice the volume name when browsing and when voicing full paths 2024-07-28 16:54:33 -04:00
pca9555.h Introduce HiFi E.T MA9 port. 2013-05-06 14:09:24 +04:00
pcf5060x.h
pcf5063x.h iPod Classic: ADC updates 2016-08-12 14:17:46 +02:00
pcf50605.h
pcf50606.h
pcf50635.h
pcm-internal.h pcm: Remove unused function pcm_play_dma_get_peak_buffer() 2021-07-25 14:07:41 +00:00
pcm.h pcm: Further cleanup of unused bits of the PCM ACPI: 2020-11-12 15:59:09 +00:00
pcm1792.h Introduce HiFi E.T. MA8/MA8C ports. 2013-11-05 09:59:45 +04:00
pcm_mixer.h hosted: Improve buffer underrun handling in the ALSA driver 2020-11-18 14:38:12 -05:00
pcm_sampr.h [BugFix] Fix some Shif related UB -- ASAN 2023-01-04 22:00:25 -05:00
pcm_sw_volume.h Provide high resolution volume and prescaler to hosted targets. 2013-04-27 06:59:27 +02:00
pl080.h headers: Don't blindly include <inttypes.h> in files used by ASM 2020-03-29 00:49:06 +01:00
pl081.h
pl180.h
pnx0101.h
power.h
powermgmt.h powermgmt: Remove CURRENT_USB 2023-09-30 03:21:52 -04:00
pp5002.h
pp5020.h H10 PP Crash -- Fixed 2021-04-01 00:52:57 -04:00
pp5024.h
pp6100.h sansaview: fix lcd code 2014-05-11 19:56:43 +02:00
profile.h
qt1106.h
r61509.h
ramdisk.h storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
rbpaths.h Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
rda5802.h
rds.h Improve radio RDS driver and framework 2017-02-11 22:19:32 -05:00
rectangle.h Add rectangle utility functions 2022-12-01 12:36:28 -05:00
rk27xx.h Add Xuelin iHIFI 770/770C/800 support 2019-01-02 08:10:01 -05:00
rk27xx_codec.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
rkw-loader.h
rocker_codec.h pcm: Get rid of pcm_play_pause() and associated APIs 2020-10-31 01:18:27 +00:00
rolo.h hosted: Add ROLO support for hosted targets 2020-10-11 14:18:42 +00:00
rtc.h [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
s3c2440.h
s5l87xx.h S5L8702: Move I/O addresses and bit masks from clocking driver to SoC definitions, reuse existing definitions 2024-12-15 01:06:09 +02:00
screendump.h firmware: allow screendump in bootloader 2022-03-24 18:59:50 -04:00
scroll_engine.h scroll engine calculate stringsize only when scroll line updated 2024-12-20 10:31:46 -05:00
sd.h storage: 64-bit sector offsets 2024-08-12 14:23:44 -04:00
sdmmc.h sdmmc: the tCardInfo.initialized field needs to be an integer, not bool 2024-11-23 23:07:12 -05:00
serial.h serial: Add serial_tx_raw() function for sending raw bytes to the serial port 2025-01-20 08:17:48 -05:00
si4700.h RFT: convert Gigabeat RDS to thread 2022-02-07 22:01:20 +01:00
sound.h Revert "sound: add sound_numdecimals() to round out the sound setting query API" 2021-04-09 10:52:02 +00:00
spdif.h
spi.h
stfm1000.h
storage.h ata: Rework how flushing, sleeping, and power off interacts 2024-10-31 12:51:54 -04:00
sw_i2c.h
synaptics-mep.h
synaptics-rmi.h fuze+: rewrite touchpad driver 2016-06-01 23:08:17 +02:00
system.h ata: Ensure that the bounce buffer is minimum 32-bit aligned 2024-11-15 07:24:08 -05:00
tcc780x.h
tea5760.h
tea5767.h
timer.h Fix timer Agptek Rocker (other hosted players) 2019-10-17 21:19:00 +02:00
tlv320.h tlv320: document audiohw setting based on tlv320.c 2016-12-12 13:13:52 +01:00
touchpad.h touch devices: Disable touch on softlock. 2013-09-05 20:02:07 +02:00
touchscreen.h fix red 2013-09-05 20:35:51 +02:00
tsc200x.h
tsc2100.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
tuner.h [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
uc87xx.h Rename UC870x to UC87xx 2024-11-21 20:07:50 -05:00
ucl_decompress.h Add standalone UCL decompressor 2021-05-12 10:35:20 +00:00
uda1341.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
uda1380.h uda1380: document audiohw setting based on uda1380.c 2016-12-12 13:14:22 +01:00
udacodec.h
usb-designware.h usb-designware: port to new USB API 2021-10-16 21:14:42 +01:00
usb-s3c6400x.h
usb-tcc.h
usb.h usb: remove "Ask" USB Mode (FS#13317) 2022-06-21 18:11:53 -04:00
usb_ch9.h gcc9: Move structure packing to the struct definition 2024-10-12 09:23:37 -04:00
usb_core.h usb: introduce new control request API 2021-10-16 15:58:43 -04:00
usb_drv.h usb: introduce new control request API 2021-10-16 15:58:43 -04:00
wifi.h Sansa Connect: Initial libertas WiFi driver port 2021-07-04 07:41:44 +00:00
wm8731.h wm8731: document audiohw settings 2016-12-12 13:11:25 +01:00
wm8740.h Add Xuelin iHIFI 770/770C/800 support 2019-01-02 08:10:01 -05:00
wm8751.h wm8751: document and fix audiohw settings 2016-12-12 13:12:15 +01:00
wm8758.h wm8758: document and fix audiohw settings 2016-12-12 13:12:47 +01:00
wm8975.h wm8975: document audiohw settings 2016-12-12 13:13:13 +01:00
wm8978.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
wm8985.h Do some cleanup, adjustment and a couple fixes to recent sound changes. 2013-04-22 20:38:17 -04:00
wmcodec.h
x1000-codec.h x1000: internal codec audio driver 2022-01-16 19:17:25 -05:00
x1000.h x1000: Clarify definition & usage of RAM areas 2022-03-11 11:15:56 -05:00
xduoolinux_codec.h xduoox3ii: Add "Super Slow" filter roll-off 2021-07-17 08:18:31 -04:00