﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
18530	alsactl init exits with non zero error code	pierre	pierre	"Commit [sha:a0da9419fd] has added the `alsactl init` instruction for setting up sound cards, but now I get:
{{{
pierre [ ~ ]$ sudo alsactl init
alsa-lib parser.c:2783:(load_toplevel_config) Unable to find the top-level configuration file '/usr/share/alsa/ucm2/ucm.conf'.
alsa-lib main.c:1560:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
Found hardware: ""HDA-Intel"" ""Intel Haswell HDMI"" ""HDA:80862807,80860101,00100000"" ""0x1043"" ""0x8534""
Hardware is initialized using a generic method
alsa-lib parser.c:2783:(load_toplevel_config) Unable to find the top-level configuration file '/usr/share/alsa/ucm2/ucm.conf'.
alsa-lib main.c:1560:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -2
Found hardware: ""HDA-Intel"" ""Realtek ALC887-VD"" ""HDA:10ec0887,10438616,00100302"" ""0x1043"" ""0x8616""
Hardware is initialized using a generic method
pierre [ ~ ]$ echo $?
99
}}}
Note that it is not a problem with ucm2 configuration not found: if I run `alsactl --no‐ucm init`, I get:
{{{
pierre [ ~/downloads/blfs ]$ sudo alsactl --no-ucm init
Found hardware: ""HDA-Intel"" ""Intel Haswell HDMI"" ""HDA:80862807,80860101,00100000"" ""0x1043"" ""0x8534""
Hardware is initialized using a generic method
Found hardware: ""HDA-Intel"" ""Realtek ALC887-VD"" ""HDA:10ec0887,10438616,00100302"" ""0x1043"" ""0x8616""
Hardware is initialized using a generic method
pierre [ ~/downloads/blfs ]$ echo $?
99
}}}
I think a lot of cards can use a ""generic method"", and don't need to be recognized, so that a 99 error code is normal for them. But it breaks scripts running with `set -e`"	defect	closed	normal	12.1	BOOK	git	medium	fixed		
