Skip to contentSkip to conversation

alsa-utils : add 1.0.27.2 recipes

PATCH In review [email protected] 2 participants 2 messages Nov 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa-utils : add 1.0.27.2 recipes

From: Chunrong Guo <[email protected]>

*There is a segmentation fault when run aplay and arecord of alsa-utils 1.0.26 in rootfs

---
 recipes-multimedia/alsa/alsa-fpu.inc               |    6 ++
 .../Check-if-wordexp-function-is-supported.patch   |   50 ++++++++++++
 ...-iatomic.h-functions-definitions-for-mips.patch |   68 ++++++++++++++++
 .../alsa/alsa-lib/fix-tstamp-declaration.patch     |   21 +++++
 recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb       |   49 ++++++++++++
 .../alsa/alsa-utils-alsaconf_1.0.27.2.bb           |   17 ++++
 ...-t-let-systemd-unit-restore-the-volume-wh.patch |   40 ++++++++++
 recipes-multimedia/alsa/alsa-utils_1.0.27.2.bb     |   82 ++++++++++++++++++++
 8 files changed, 333 insertions(+), 0 deletions(-)
 create mode 100644 recipes-multimedia/alsa/alsa-fpu.inc
 create mode 100644 recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch
 create mode 100644 recipes-multimedia/alsa/alsa-lib/Update-iatomic.h-functions-definitions-for-mips.patch
 create mode 100644 recipes-multimedia/alsa/alsa-lib/fix-tstamp-declaration.patch
 create mode 100644 recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb
 create mode 100644 recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.27.2.bb
 create mode 100644 recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
 create mode 100644 recipes-multimedia/alsa/alsa-utils_1.0.27.2.bb
recipes-multimedia/alsa/alsa-fpu.inc new file +6 -0
new file mode 100644
index 0000000..5040230
@@ -0,0 +1,6 @@
+
+def get_alsa_fpu_setting(bb, d):
+	if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
+		return "--with-softfloat"
+	return ""
+
recipes-multimedia/alsa/alsa-lib/Check-if-wordexp-function-is-supported.patch new file +50 -0

50 lines not on this page · raw message

recipes-multimedia/alsa/alsa-lib/Update-iatomic.h-functions-definitions-for-mips.patch new file +68 -0

68 lines not on this page · raw message

recipes-multimedia/alsa/alsa-lib/fix-tstamp-declaration.patch new file +21 -0
new file mode 100644
index 0000000..32b84b7
@@ -0,0 +1,21 @@
+# Author: Michael Lauer <[email protected]>
+# Date:   Thu Jan 18 00:27:21 2007 +0000
+# alsa-lib: fix "error: field 'tstamp' has incomplete type" when including alsa headers with strict compilation options
+#
+# Acquired from OpenEmbedded
+
+Upstream-Status: Pending
+
+Index: alsa-lib-1.0.13/include/global.h
+===================================================================
+--- alsa-lib-1.0.13.orig/include/global.h
++++ alsa-lib-1.0.13/include/global.h
+@@ -29,6 +29,8 @@
+ #define __ALSA_GLOBAL_H_
+ 
+ /* for timeval and timespec */
++#define __need_timeval
++#define __need_timespec
+ #include <time.h>
+ 
+ #ifdef __cplusplus
recipes-multimedia/alsa/alsa-lib_1.0.27.2.bb new file +49 -0

49 lines not on this page · raw message

recipes-multimedia/alsa/alsa-utils-alsaconf_1.0.27.2.bb new file +17 -0
new file mode 100644
index 0000000..a3fa1d0
@@ -0,0 +1,17 @@
+require alsa-utils_${PV}.bb
+
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/alsa-utils"], d)}:"
+
+PACKAGES = "${PN}"
+RDEPENDS_${PN} += "bash"
+
+DESCRIPTION_${PN}     = "a bash script that creates ALSA configuration files"
+FILES_${PN} = "${sbindir}/alsaconf"
+
+S = "${WORKDIR}/alsa-utils-${PV}"
+
+do_install() {
+	install -d ${D}${sbindir}
+	install -m 0755 ${S}/alsaconf/alsaconf ${D}${sbindir}/
+}
recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch new file +40 -0
new file mode 100644
index 0000000..477cd11
@@ -0,0 +1,40 @@
+From 37c99a3cbff36915b56a5703eeaed3c70796f80f Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+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 <[email protected]>
+
+Filed as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5459
+
+Upstream-Status: Pending
+
+Index: alsa-utils-1.0.27.2/alsactl/Makefile.am
+===================================================================
+--- alsa-utils-1.0.27.2.orig/alsactl/Makefile.am
++++ alsa-utils-1.0.27.2/alsactl/Makefile.am
+@@ -36,8 +36,8 @@ install-data-hook:
+ endif
+ 
+ edit = \
+-	$(SED) -r -e 's,@sbindir\@,$(sbindir),g' \
+-		  -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
++	$(SED) -e 's,@localstatedir\@,$(localstatedir),g' -e 's,@sbindir\@,$(sbindir),g' \
++	       -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
+ 							< $< > $@ || rm $@
+ 
+ alsa-state.service: alsa-state.service.in
+Index: alsa-utils-1.0.27.2/alsactl/alsa-restore.service.in
+===================================================================
+--- alsa-utils-1.0.27.2.orig/alsactl/alsa-restore.service.in
++++ alsa-utils-1.0.27.2/alsactl/alsa-restore.service.in
+@@ -10,6 +10,7 @@ DefaultDependencies=no
+ After=alsa-state.service
+ Before=shutdown.target
+ Conflicts=shutdown.target
++ConditionPathExists=@localstatedir@/lib/alsa/asound.state
+ 
+ [Service]
+ Type=oneshot
recipes-multimedia/alsa/alsa-utils_1.0.27.2.bb new file +82 -0

82 lines not on this page · raw message

Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 5 lines · On Thu, Nov 21, 2013 at 7:32 AM, <[email protected]> wrote:

From: Chunrong Guo <[email protected]>

*There is a segmentation fault when run aplay and arecord of alsa-utils 1.0.26 in rootfs

This is not a BSP thing; please check the need fix for it and add the need patches (preferable through OE-Core/Poky).

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750