From: Jaroslav Kysela Date: Tue, 13 Apr 2021 17:18:38 +0000 (+0200) Subject: alsactl: ucm - try both fixed boot and boot sequences X-Git-Tag: v1.2.5~40 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0fe5048a309523bc360d0142f3edec4d94b26400;p=alsa-utils.git 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 --- 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);