diff options
author | Jaroslav Kysela <perex@perex.cz> | 2021-04-13 19:18:38 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-04-13 19:19:01 +0200 |
commit | 0fe5048a309523bc360d0142f3edec4d94b26400 (patch) | |
tree | 964baaa7ef403567849fa0fe9ab98141a769c69d /alsactl | |
parent | a589d8886236983cb3bed16831b8ef44120991dd (diff) | |
download | alsa-utils-0fe5048a309523bc360d0142f3edec4d94b26400.tar.gz |
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>
Diffstat (limited to 'alsactl')
-rw-r--r-- | alsactl/init_ucm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alsactl/init_ucm.c b/alsactl/init_ucm.c index 9ac8db0..b326601 100644 --- a/alsactl/init_ucm.c +++ b/alsactl/init_ucm.c @@ -46,8 +46,11 @@ int init_ucm(int flags, int cardno) return err; if (flags & FLAG_UCM_FBOOT) { 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; + } } if (flags & FLAG_UCM_BOOT) { err = snd_use_case_set(uc_mgr, "_boot", NULL); |