From 0fe5048a309523bc360d0142f3edec4d94b26400 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 13 Apr 2021 19:18:38 +0200 Subject: 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 --- alsactl/init_ucm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'alsactl') 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); -- cgit v1.2.1