The Advanced Linux Sound Architecture (ALSA) - tools
Find a file
Jasmin Fazlic c0e69055fa hdspmixer: enhance saving of presets
Changing the version in the file header would make
a preset file not readable by older versions of the
tool. If we just append new data always at the end
of the save procedure we should have no problems
reading them with different versions, as they all
just read to a certain point and ignore the rest
of the file.

This patch implements the logic to save the presets
first to a file called file_name.tmp and appends any
extra data that would come after in a possibly present
file_name file.

Any data written by newer versions would remain in
the preset file and from now on no old version should
remove data written by newer versions.

Also since we write to a temporary file and rename
afterwards an extra feature is gained of not corrupting
the preset should we crash.

Signed-off-by: Jasmin Fazlic <superfassl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-02-27 09:24:08 +01:00
as10k1 Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
echomixer echomixer: add .desktop and icon files 2017-11-15 11:15:27 +01:00
envy24control envy24control: add .desktop and icon files 2017-11-15 11:15:35 +01:00
hda-verb Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
hdajackretask hdajackretask: add .desktop and icon files 2017-11-15 10:34:16 +01:00
hdajacksensetest hdajacksensetest: add gitcompile to EXTRA_DIST 2017-11-20 19:06:39 +01:00
hdspconf hdspconf: move .desktop and icon files to desktop, use modern destination for icons 2017-11-15 11:15:12 +01:00
hdsploader Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
hdspmixer hdspmixer: enhance saving of presets 2021-02-27 09:24:08 +01:00
hwmixvolume hwmixvolume: mention the new dependencies in the README 2018-09-20 09:09:18 +02:00
ld10k1 ld10k1: define _GNU_SOURCE and use sighandler_t 2018-06-12 14:30:58 +02:00
mixartloader Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
pcxhrloader Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
qlo10k1 Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
rmedigicontrol Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
sb16_csp Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
seq Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
sscape_ctl Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
us428control us428control: Fix clang -Wreserved-user-defined-literal warnings 2018-04-24 21:32:03 +02:00
usx2yloader Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
vxloader Change FSF address (Franklin Street) 2017-11-14 14:47:19 +01:00
.gitignore hwmixvolume: add .desktop and icon files 2017-11-15 12:59:43 +01:00
compile improved compile script (too look also to subdirs) 2008-06-03 11:54:50 +02:00
gitcompile remove .hg files and renamed hgcompile to gitcompile 2008-05-20 13:38:30 +02:00
Makefile Release v1.2.2 2020-02-19 10:35:44 +01:00