From 98f0a371840d6fc58014f45e230096094d208668 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 15 May 2007 08:20:31 +0000 Subject: [PATCH] Fix alsa-lib on 2.6 kernels, add an hotplug rule to populate /dev with the sound peripherals (#1677) git-svn-id: svn://svn.openwrt.org/openwrt/packages@7246 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/alsa-lib/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libs/alsa-lib/Makefile b/libs/alsa-lib/Makefile index 44e2f28d8..3ee12b408 100644 --- a/libs/alsa-lib/Makefile +++ b/libs/alsa-lib/Makefile @@ -21,7 +21,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(INCLUDE_DIR)/package.mk - +ifeq ($(KERNEL),2.4) define Package/alsa-lib SECTION:=libs CATEGORY:=Libraries @@ -32,6 +32,18 @@ define Package/alsa-lib have enabled the ALSA support in the kernel. URL:=http://www.alsa-project.org/ endef +else +define Package/alsa-lib + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+kmod-soundcore @USB_SUPPORT + TITLE:=ALSA (Advanced Linux Sound Architecture) library + DESCRIPTION:=\ + This is the library package for alsa, needed by some userspace programs. You must \\\ + have enabled the ALSA support in the kernel. + URL:=http://www.alsa-project.org/ +endef +endif define Build/Configure $(call Build/Configure/Default,\