alsa-lib: install also /usr/share/alsa/ctl or alsa-mixer fails with: 16206/head
authorJavier Marcet <javier@marcet.info>
Mon, 19 Jul 2021 05:50:09 +0000 (05:50 +0000)
committerJavier Marcet <javier@marcet.info>
Fri, 23 Jul 2021 17:15:34 +0000 (17:15 +0000)
❯ alsamixer
ALSA lib conf.c:827:(get_char_skip_comments) Cannot access file /usr/share/alsa/ctl/default.conf
ALSA lib conf.c:1994:(_snd_config_load_with_include) _toplevel_:61:26:No such file or directory
ALSA lib conf.c:4040:(config_file_open) /usr/share/alsa/cards/aliases.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3962:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib control.c:1481:(snd_ctl_open_noupdate) Invalid CTL cards.ctl.default
cannot open mixer: No such file or directory

Signed-off-by: Javier Marcet <javier@marcet.info>
libs/alsa-lib/Makefile

index 691ab4fbfe7ba15f7fe3ef9c40649043c3db7bbb..ffdba1103acead8cab86c2a3d112e7701beab3d4 100644 (file)
@@ -100,10 +100,13 @@ define Package/alsa-lib/install
                $(PKG_INSTALL_DIR)/usr/lib/libatopology.so.* \
                $(1)/usr/lib/
 
-       $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
+       $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,ctl,pcm}
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
                $(1)/usr/share/alsa/
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/share/alsa/ctl/* \
+               $(1)/usr/share/alsa/ctl/
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
                $(1)/usr/share/alsa/pcm/