alsactl: add missing call to clean card specific config files
The card specific configuration files created at runtime must be removed before UCM fixed boot sequence in the standard restore operation. Fixes: https://github.com/alsa-project/alsa-lib/issues/492 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7b97437d78
commit
120568fbb5
1 changed files with 6 additions and 0 deletions
|
|
@ -1790,6 +1790,12 @@ int load_state(const char *cfgdir, const char *file,
|
|||
finalerr = lock_fd;
|
||||
continue;
|
||||
}
|
||||
err = snd_card_clean_cfgdir(cfgdir, iter.card);
|
||||
if (err < 0) {
|
||||
initfailed(iter.card, "cfgdir", err);
|
||||
finalerr = err;
|
||||
continue;
|
||||
}
|
||||
/* error is ignored */
|
||||
err = init_ucm(initflags | FLAG_UCM_FBOOT, iter.card);
|
||||
/* return code 1 and 2 -> postpone initialization */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue