package/alsa-plugins: new package
authorCharles Hardin <ckhardin@gmail.com>
Tue, 15 Jun 2021 00:59:23 +0000 (17:59 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 21 Jul 2021 20:12:01 +0000 (22:12 +0200)
During testing of bluez-alsa in particular, there is no compilation
dependency - but, some configurations will request the load of a
particular plugin:

    ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) \
      Cannot open shared library libasound_module_rate_samplerate_best.so \
      (/usr/lib/alsa-lib/libasound_module_rate_samplerate_best.so: \
       cannot open shared object file: No such file or directory)

Adding in the alsa-plugins package allows to build build the
appropriate plugins.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/alsa-plugins/Config.in [new file with mode: 0644]
package/alsa-plugins/alsa-plugins.hash [new file with mode: 0644]
package/alsa-plugins/alsa-plugins.mk [new file with mode: 0644]

index e77ceb2a9584a03c3ec702a434e677d970f866c0..04ef3cc1a96438728673b234fac6ac580268b10d 100644 (file)
@@ -498,6 +498,9 @@ F:  package/libsvg-cairo/
 N:     Cédric Chépied <cedric.chepied@gmail.com>
 F:     package/znc/
 
+N:     Charles Hardin <ckhardin@gmail.com>
+F:     package/alsa-plugins/
+
 N:     Chris Packham <judge.packham@gmail.com>
 F:     package/coremark/
 F:     package/coremark-pro/
index 95ad1a29f7559955cf90da1bc689a47a776baf5c..d49aff3de4170e94eaf5c0762957c4250aaa0f81 100644 (file)
@@ -1297,6 +1297,7 @@ menu "Libraries"
 
 menu "Audio/Sound"
        source "package/alsa-lib/Config.in"
+       source "package/alsa-plugins/Config.in"
        source "package/alure/Config.in"
        source "package/aubio/Config.in"
        source "package/bcg729/Config.in"
diff --git a/package/alsa-plugins/Config.in b/package/alsa-plugins/Config.in
new file mode 100644 (file)
index 0000000..ee0fb4c
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_ALSA_PLUGINS
+       bool "alsa-plugins"
+       depends on BR2_PACKAGE_ALSA_LIB
+       select BR2_PACKAGE_ALSA_LIB_HWDEP
+       help
+         Advanced Linux Sound Architecture Plugins
+
+         http://www.alsa-project.org/
diff --git a/package/alsa-plugins/alsa-plugins.hash b/package/alsa-plugins/alsa-plugins.hash
new file mode 100644 (file)
index 0000000..8ecbd19
--- /dev/null
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  42eef98433d2c8d11f1deeeb459643619215a75aa5a5bbdd06a794e4c413df20  alsa-plugins-1.2.5.tar.bz2
+sha256  32434afcc8666ba060e111d715bfdb6c2d5dd8a35fa4d3ab8ad67d8f850d2f2b  COPYING
+sha256  231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c  COPYING.GPL
diff --git a/package/alsa-plugins/alsa-plugins.mk b/package/alsa-plugins/alsa-plugins.mk
new file mode 100644 (file)
index 0000000..396f47a
--- /dev/null
@@ -0,0 +1,32 @@
+################################################################################
+#
+# alsa-plugins
+#
+################################################################################
+
+ALSA_PLUGINS_VERSION = 1.2.5
+ALSA_PLUGINS_SOURCE = alsa-plugins-$(ALSA_PLUGINS_VERSION).tar.bz2
+ALSA_PLUGINS_SITE = https://www.alsa-project.org/files/pub/plugins
+ALSA_PLUGINS_LICENSE = LGPL-2.1+
+ALSA_PLUGINS_LICENSE_FILES = COPYING
+ALSA_PLUGINS_DEPENDENCIES = host-pkgconf alsa-lib
+
+ALSA_PLUGINS_CONF_OPTS = \
+       --disable-jack \
+       --disable-usbstream \
+       --disable-pulseaudio \
+       --disable-libav \
+       --disable-maemo-plugin \
+       --disable-maemo-resource-manager \
+       --with-speex=no
+
+ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
+ALSA_PLUGINS_CONF_OPTS += --enable-samplerate
+ALSA_PLUGINS_DEPENDENCIES += libsamplerate
+ALSA_PLUGINS_LICENSE += , GPL-2.0+ (samplerate plugin)
+ALSA_PLUGINS_LICENSE_FILES += COPYING.GPL
+else
+ALSA_PLUGINS_CONF_OPTS += --disable-samplerate
+endif
+
+$(eval $(autotools-package))