commit
a3c62bf8f0
|
@ -8,13 +8,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=alsa-lib
|
PKG_NAME:=alsa-lib
|
||||||
PKG_VERSION:=1.1.9
|
PKG_VERSION:=1.2.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
|
||||||
http://distfiles.gentoo.org/distfiles/
|
http://distfiles.gentoo.org/distfiles/
|
||||||
PKG_HASH:=488373aef5396682f3a411a6d064ae0ad196b9c96269d0bb912fbdeec94b994b
|
PKG_HASH:=d8e853d8805574777bbe40937812ad1419c9ea7210e176f0def3e6ed255ab3ec
|
||||||
|
|
||||||
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
|
||||||
Peter Wagner <tripolar@gmx.at>
|
Peter Wagner <tripolar@gmx.at>
|
||||||
|
@ -32,7 +32,7 @@ define Package/alsa-lib
|
||||||
TITLE:=ALSA (Advanced Linux Sound Architecture) library
|
TITLE:=ALSA (Advanced Linux Sound Architecture) library
|
||||||
URL:=http://www.alsa-project.org/
|
URL:=http://www.alsa-project.org/
|
||||||
DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
|
DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
|
||||||
LICENSE:=LGPLv2.1-or-later
|
LICENSE:=LGPL-2.1-or-later
|
||||||
LICENSE_FILES:=COPYING
|
LICENSE_FILES:=COPYING
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -41,6 +41,20 @@ define Package/alsa-lib/description
|
||||||
You must have enabled the ALSA support in the kernel.
|
You must have enabled the ALSA support in the kernel.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/aserver
|
||||||
|
SECTION:=sound
|
||||||
|
CATEGORY:=Sound
|
||||||
|
TITLE:=ALSA (Advanced Linux Sound Architecture) server
|
||||||
|
URL:=http://www.alsa-project.org/
|
||||||
|
DEPENDS:=+alsa-lib
|
||||||
|
LICENSE:=GPL-2.0-or-later
|
||||||
|
LICENSE_FILES:=aserver/COPYING
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/aserver/description
|
||||||
|
This is the aserver application for ALSA.
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/alsa-lib/conffiles
|
define Package/alsa-lib/conffiles
|
||||||
/etc/asound.conf
|
/etc/asound.conf
|
||||||
endef
|
endef
|
||||||
|
@ -51,8 +65,8 @@ CONFIGURE_ARGS+= \
|
||||||
--disable-python \
|
--disable-python \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
--without-versioned \
|
||||||
--with-versioned=no
|
$(SOFT_FLOAT_CONFIG_OPTION)
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include/
|
$(INSTALL_DIR) $(1)/usr/include/
|
||||||
|
@ -64,6 +78,9 @@ define Build/InstallDev
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
|
$(CP) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libatopology.{la,so*} \
|
||||||
|
$(1)/usr/lib/
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
|
||||||
$(1)/usr/lib/pkgconfig/
|
$(1)/usr/lib/pkgconfig/
|
||||||
|
@ -79,6 +96,9 @@ define Package/alsa-lib/install
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
|
$(CP) \
|
||||||
|
$(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,pcm}
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
|
@ -92,4 +112,10 @@ define Package/alsa-lib/install
|
||||||
$(1)/usr/share/alsa/cards/
|
$(1)/usr/share/alsa/cards/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/aserver/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aserver $(1)/usr/bin
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,alsa-lib))
|
$(eval $(call BuildPackage,alsa-lib))
|
||||||
|
$(eval $(call BuildPackage,aserver))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/src/Makefile.in
|
--- a/src/Makefile.in
|
||||||
+++ b/src/Makefile.in
|
+++ b/src/Makefile.in
|
||||||
@@ -493,7 +493,7 @@ clean-libLTLIBRARIES:
|
@@ -490,7 +490,7 @@ clean-libLTLIBRARIES:
|
||||||
}
|
}
|
||||||
|
|
||||||
libasound.la: $(libasound_la_OBJECTS) $(libasound_la_DEPENDENCIES) $(EXTRA_libasound_la_DEPENDENCIES)
|
libasound.la: $(libasound_la_OBJECTS) $(libasound_la_DEPENDENCIES) $(EXTRA_libasound_la_DEPENDENCIES)
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
--- a/src/pcm/pcm_shm.c
|
||||||
|
+++ b/src/pcm/pcm_shm.c
|
||||||
|
@@ -45,6 +45,14 @@
|
||||||
|
#include <netdb.h>
|
||||||
|
#include "aserver.h"
|
||||||
|
|
||||||
|
+#if _POSIX_C_SOURCE >= 200809L
|
||||||
|
+#define usleep(a) \
|
||||||
|
+ do { \
|
||||||
|
+ const struct timespec req = {0, a * 1000}; \
|
||||||
|
+ nanosleep(&req, NULL); \
|
||||||
|
+ } while(0)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifndef PIC
|
||||||
|
/* entry for static linking */
|
||||||
|
const char *_snd_module_pcm_shm = "";
|
||||||
|
--- a/src/ucm/ucm_local.h
|
||||||
|
+++ b/src/ucm/ucm_local.h
|
||||||
|
@@ -53,6 +53,14 @@
|
||||||
|
#define SEQUENCE_ELEMENT_TYPE_CSET_TLV 6
|
||||||
|
#define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 7
|
||||||
|
|
||||||
|
+#if _POSIX_C_SOURCE >= 200809L
|
||||||
|
+#define usleep(a) \
|
||||||
|
+ do { \
|
||||||
|
+ const struct timespec req = {0, a * 1000}; \
|
||||||
|
+ nanosleep(&req, NULL); \
|
||||||
|
+ } while(0)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
struct ucm_value {
|
||||||
|
struct list_head list;
|
||||||
|
char *name;
|
|
@ -8,13 +8,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=alsa-utils
|
PKG_NAME:=alsa-utils
|
||||||
PKG_VERSION:=1.1.9
|
PKG_VERSION:=1.2.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
|
||||||
http://distfiles.gentoo.org/distfiles/
|
http://distfiles.gentoo.org/distfiles/
|
||||||
PKG_HASH:=5ddf2cbddb4bd1a4a2a6492a09c25898b08c3ad64893c3655be14194cf0a213a
|
PKG_HASH:=44807bd578c5f6df6e91a11b8d37e546424a5a1ea8d8e659ee359fe01730e4f3
|
||||||
|
|
||||||
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
@ -50,7 +50,7 @@ define Package/alsa-utils-tests
|
||||||
URL:=https://www.alsa-project.org/
|
URL:=https://www.alsa-project.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS += \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-alsatest \
|
--disable-alsatest \
|
||||||
--disable-bat \
|
--disable-bat \
|
||||||
|
@ -58,6 +58,11 @@ CONFIGURE_ARGS+= \
|
||||||
--disable-rst2man \
|
--disable-rst2man \
|
||||||
--with-curses=ncursesw
|
--with-curses=ncursesw
|
||||||
|
|
||||||
|
CONFIGURE_VARS += \
|
||||||
|
ac_cv_header_samplerate_h=no
|
||||||
|
|
||||||
|
TARGET_LDFLAGS += -latopology
|
||||||
|
|
||||||
define Package/alsa-utils/install
|
define Package/alsa-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/{s,}bin
|
$(INSTALL_DIR) $(1)/usr/{s,}bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/amixer $(1)/usr/bin/
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
--- a/alsamixer/volume_mapping.c
|
|
||||||
+++ b/alsamixer/volume_mapping.c
|
|
||||||
@@ -108,9 +108,9 @@ static double get_normalized_volume(snd_
|
|
||||||
if (use_linear_dB_scale(min, max))
|
|
||||||
return (value - min) / (double)(max - min);
|
|
||||||
|
|
||||||
- normalized = exp10((value - max) / 6000.0);
|
|
||||||
+ normalized = pow(10, (value - max) / 6000.0);
|
|
||||||
if (min != SND_CTL_TLV_DB_GAIN_MUTE) {
|
|
||||||
- min_norm = exp10((min - max) / 6000.0);
|
|
||||||
+ min_norm = pow(10, (min - max) / 6000.0);
|
|
||||||
normalized = (normalized - min_norm) / (1 - min_norm);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@ static int set_normalized_volume(snd_mix
|
|
||||||
}
|
|
||||||
|
|
||||||
if (min != SND_CTL_TLV_DB_GAIN_MUTE) {
|
|
||||||
- min_norm = exp10((min - max) / 6000.0);
|
|
||||||
+ min_norm = pow(10, (min - max) / 6000.0);
|
|
||||||
volume = volume * (1 - min_norm) + min_norm;
|
|
||||||
}
|
|
||||||
value = lrint_dir(6000.0 * log10(volume), dir) + max;
|
|
|
@ -1,28 +0,0 @@
|
||||||
--- a/alsaloop/Makefile.am
|
|
||||||
+++ b/alsaloop/Makefile.am
|
|
||||||
@@ -1,9 +1,9 @@
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
||||||
LDADD = -lm
|
|
||||||
AM_CFLAGS = -D_GNU_SOURCE
|
|
||||||
-if HAVE_SAMPLERATE
|
|
||||||
-LDADD += -lsamplerate
|
|
||||||
-endif
|
|
||||||
+# if HAVE_SAMPLERATE
|
|
||||||
+# LDADD += -lsamplerate
|
|
||||||
+# endif
|
|
||||||
# LDFLAGS = -static
|
|
||||||
# CFLAGS += -g -Wall
|
|
||||||
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -38,8 +38,8 @@ AC_CHECK_HEADERS([alsa/use-case.h], [have_ucm="yes"], [have_ucm="no"],
|
|
||||||
[#include <alsa/asoundlib.h>])
|
|
||||||
AC_CHECK_HEADERS([alsa/topology.h], [have_topology="yes"], [have_topology="no"],
|
|
||||||
[#include <alsa/asoundlib.h>])
|
|
||||||
-AC_CHECK_HEADERS([samplerate.h], [have_samplerate="yes"], [have_samplerate="no"],
|
|
||||||
- [#include <samplerate.h>])
|
|
||||||
+dnl AC_CHECK_HEADERS([samplerate.h], [have_samplerate="no"], [have_samplerate="no"],
|
|
||||||
+dnl [#include <samplerate.h>])
|
|
||||||
|
|
||||||
AC_CHECK_LIB([asound], [snd_seq_client_info_get_card], [HAVE_SEQ_CLIENT_INFO_GET_CARD="yes"])
|
|
||||||
if test "$HAVE_SEQ_CLIENT_INFO_GET_CARD" = "yes" ; then
|
|
Loading…
Reference in New Issue