mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 23:55:42 +01:00
alsactl: ucm - try both fixed boot and boot sequences
The -ENOENT error means that there's no special configuration. Try to fall-back to the legacy config. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
a589d88862
commit
0fe5048a30
1 changed files with 4 additions and 1 deletions
|
@ -46,9 +46,12 @@ int init_ucm(int flags, int cardno)
|
||||||
return err;
|
return err;
|
||||||
if (flags & FLAG_UCM_FBOOT) {
|
if (flags & FLAG_UCM_FBOOT) {
|
||||||
err = snd_use_case_set(uc_mgr, "_fboot", NULL);
|
err = snd_use_case_set(uc_mgr, "_fboot", NULL);
|
||||||
if (err < 0)
|
if (err == -ENOENT && (flags & FLAG_UCM_BOOT) != 0) {
|
||||||
|
/* nothing */
|
||||||
|
} else if (err < 0) {
|
||||||
goto _error;
|
goto _error;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (flags & FLAG_UCM_BOOT) {
|
if (flags & FLAG_UCM_BOOT) {
|
||||||
err = snd_use_case_set(uc_mgr, "_boot", NULL);
|
err = snd_use_case_set(uc_mgr, "_boot", NULL);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
Loading…
Reference in a new issue