From 43824c6f469ece23ea6b3024c87477cf06c95a3d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 19 Sep 2020 22:03:12 -0700 Subject: [PATCH 1/2] alsa-ucm-conf: add This is needed by some alsa utilities such as alsactl. Signed-off-by: Rosen Penev --- libs/alsa-ucm-conf/Makefile | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 libs/alsa-ucm-conf/Makefile diff --git a/libs/alsa-ucm-conf/Makefile b/libs/alsa-ucm-conf/Makefile new file mode 100644 index 000000000..5f3462e23 --- /dev/null +++ b/libs/alsa-ucm-conf/Makefile @@ -0,0 +1,47 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=alsa-ucm-conf +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \ + http://distfiles.gentoo.org/distfiles/ +PKG_HASH:=1bc24da04bb27a75e323c9f0fb03e44705b6bb8a8baf255b94b41d457d590d00 + +PKG_MAINTAINER:= +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk + +define Package/alsa-ucm-conf + SECTION:=libs + CATEGORY:=Libraries + SUBMENU:=Sound + TITLE:=ALSA Use Case Manager configuration (and topologies) + URL:=https://www.alsa-project.org/ + PKGARCH:=all +endef + +define Package/alsa-ucm-conf/description + This is a set of configuration files needed for some ALS utilities like alsactl. +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/alsa-ucm-conf/install + $(INSTALL_DIR) $(1)/usr/share/alsa + $(CP) $(PKG_BUILD_DIR)/ucm2 $(1)/usr/share/alsa +endef + +$(eval $(call BuildPackage,alsa-ucm-conf)) From 850d124b15d4486c7a8d1f386e6b79b813d1b12c Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 19 Sep 2020 22:13:29 -0700 Subject: [PATCH 2/2] alsa-utils: add alsa-ucm-conf dependency Fixes issues such as: root@MI-R3G:~# alsactl init alsa-lib parser.c:2101:(parse_toplevel_config) Syntax field not found in /usr/share/alsa/ucm2/ucm.conf alsa-lib main.c:983:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -22 Signed-off-by: Rosen Penev --- sound/alsa-utils/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/alsa-utils/Makefile b/sound/alsa-utils/Makefile index 58db00d91..89bd7aae1 100644 --- a/sound/alsa-utils/Makefile +++ b/sound/alsa-utils/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=alsa-utils PKG_VERSION:=1.2.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \ @@ -29,7 +29,7 @@ include $(INCLUDE_DIR)/package.mk define Package/alsa-utils SECTION:=sound CATEGORY:=Sound - DEPENDS:=+alsa-lib +libncursesw +libpthread + DEPENDS:=+alsa-lib +alsa-ucm-conf +libncursesw +libpthread TITLE:=ALSA (Advanced Linux Sound Architecture) utilities URL:=https://www.alsa-project.org/ endef