aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa/alsa-utils
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2013-01-21 11:19:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-28 12:25:34 +0000
commit1dccd16e29186e7baad6ebcf189b7ea2463c2275 (patch)
tree62cdb87d8372866d132f63855403f845de9c61ee /meta/recipes-multimedia/alsa/alsa-utils
parente3d5cb2033245ecb6e25f90d9d71296a018c4342 (diff)
downloadopenembedded-core-contrib-1dccd16e29186e7baad6ebcf189b7ea2463c2275.tar.gz
alsa-utils: upgrade to 1.0.26
ncursesfix.patch is no longer necessary, build system fixed upstream. ncursesfix.patch removed. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-utils')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch46
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/obsolete_automake_macros.patch15
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/uclibc-exp10-replacement.patch21
3 files changed, 82 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
new file mode 100644
index 0000000000..1690ca566c
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
@@ -0,0 +1,46 @@
+From 37c99a3cbff36915b56a5703eeaed3c70796f80f Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+Date: Sun, 9 Oct 2011 20:06:35 +0200
+Subject: [PATCH] alsactl: don't let systemd unit restore the volume when asound.state is missing
+
+This avoids an error on bootup
+
+Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
+---
+
+Filed as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5459
+
+Upstream-Status: Pending
+
+ alsactl/Makefile.am | 2 +-
+ alsactl/alsa-restore.service.in | 1 +
+ 2 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am
+index 5cfc415..c3768c4 100644
+--- a/alsactl/Makefile.am
++++ b/alsactl/Makefile.am
+@@ -34,7 +34,7 @@ install-data-hook:
+ endif
+
+ edit = \
+- $(SED) -r 's,@sbindir\@,$(sbindir),g' < $< > $@ || rm $@
++ $(SED) -e 's,@localstatedir\@,$(localstatedir),g' -e 's,@sbindir\@,$(sbindir),g' < $< > $@ || rm $@
+
+ alsa-store.service: alsa-store.service.in
+ $(edit)
+diff --git a/alsactl/alsa-restore.service.in b/alsactl/alsa-restore.service.in
+index e97d196..3b76710 100644
+--- a/alsactl/alsa-restore.service.in
++++ b/alsactl/alsa-restore.service.in
+@@ -4,6 +4,7 @@ DefaultDependencies=no
+ After=sysinit.target
+ Before=shutdown.target
+ Conflicts=shutdown.target
++ConditionPathExists=@localstatedir@/lib/alsa/asound.state
+
+ [Service]
+ Type=oneshot
+--
+1.6.6.1
+
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/obsolete_automake_macros.patch b/meta/recipes-multimedia/alsa/alsa-utils/obsolete_automake_macros.patch
new file mode 100644
index 0000000000..1a20b48fd4
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/obsolete_automake_macros.patch
@@ -0,0 +1,15 @@
+Upstream-Status: Submitted [alsa-devel@alsa-project.org]
+
+Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
+diff -Nurd alsa-utils-1.0.25/configure.in alsa-utils-1.0.25/configure.in
+--- alsa-utils-1.0.25/configure.in 2012-01-25 11:43:48.000000000 +0200
++++ alsa-utils-1.0.25/configure.in 2013-01-12 10:11:51.401498722 +0200
+@@ -269,7 +269,7 @@
+ TESTSOUND="$dir/test.wav")
+ AC_SUBST(TESTSOUND)
+
+-AM_CONFIG_HEADER(include/aconfig.h)
++AC_CONFIG_HEADERS(include/aconfig.h)
+
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/uclibc-exp10-replacement.patch b/meta/recipes-multimedia/alsa/alsa-utils/uclibc-exp10-replacement.patch
new file mode 100644
index 0000000000..b2a9a956cc
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/uclibc-exp10-replacement.patch
@@ -0,0 +1,21 @@
+uclibc does not have exp10 function which is glibc extension.
+Bur we can get the same behavior by using pow()
+
+Upstream-Status: Pending
+
+Khem Raj <raj.khem@gmail.com>
+
+Index: alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
+===================================================================
+--- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c
++++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
+@@ -36,6 +36,9 @@
+ #include <math.h>
+ #include <stdbool.h>
+ #include "volume_mapping.h"
++#ifdef __UCLIBC__
++#define exp10(x) (pow(10, (x)))
++#endif /* __UCLIBC__ */
+
+ #define MAX_LINEAR_DB_SCALE 24
+