Update alsa recipes
cover Update alsa recipes
The following changes since commit c86bf80abd87acb0da5860806822c64ec9dee089:
oeqa.buildperf: use oe.path.remove() (2016-08-17 10:35:27 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib tanuk/updates
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=tanuk/updates
Tanu Kaskinen (2):
alsa-lib: 1.1.1 -> 1.1.2
alsa-utils: 1.1.1 -> 1.1.2
...fix-appl-pointer-not-correct-when-mmap_co.patch | 137 ---------------------
.../avoid-including-sys-poll.h-directly.patch | 20 +--
.../alsa/{alsa-lib_1.1.1.bb => alsa-lib_1.1.2.bb} | 5 +-
...cripts_1.1.1.bb => alsa-utils-scripts_1.1.2.bb} | 0
.../{alsa-utils_1.1.1.bb => alsa-utils_1.1.2.bb} | 6 +-
5 files changed, 15 insertions(+), 153 deletions(-)
delete mode 100755 meta/recipes-multimedia/alsa/alsa-lib/0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch
rename meta/recipes-multimedia/alsa/{alsa-lib_1.1.1.bb => alsa-lib_1.1.2.bb} (88%)
rename meta/recipes-multimedia/alsa/{alsa-utils-scripts_1.1.1.bb => alsa-utils-scripts_1.1.2.bb} (100%)
rename meta/recipes-multimedia/alsa/{alsa-utils_1.1.1.bb => alsa-utils_1.1.2.bb} (96%)Signature · 1 line
2.8.1
PATCH 1/2 alsa-lib: 1.1.1 -> 1.1.2
Changelog:
http://www.alsa-project.org/main/index.php/Changes_v1.1.1_v1.1.2
Removed upstreamed patch:
0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch
Rebased avoid-including-sys-poll.h-directly.patch
---
...fix-appl-pointer-not-correct-when-mmap_co.patch | 137 ---------------------
.../avoid-including-sys-poll.h-directly.patch | 20 +--
.../alsa/{alsa-lib_1.1.1.bb => alsa-lib_1.1.2.bb} | 5 +-
3 files changed, 12 insertions(+), 150 deletions(-)
delete mode 100755 meta/recipes-multimedia/alsa/alsa-lib/0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch
rename meta/recipes-multimedia/alsa/{alsa-lib_1.1.1.bb => alsa-lib_1.1.2.bb} (88%)meta/recipes-multimedia/alsa/alsa-lib/0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch deleted +0 -137
@@ -1,137 +0,0 @@ -From 7c424edd116e76eee6218a1e9a6ff6c4daaf2a4d Mon Sep 17 00:00:00 2001 -From: Shengjiu Wang <[email protected]> -Date: Wed, 6 Apr 2016 19:02:12 +0800 -Subject: [PATCH] pcm_plugin: fix appl pointer not correct when mmap_commit() - return error - -When snd_pcm_mmap_commit() return error, the appl pointer is also updated. -which cause the avail_update()'s result wrong. -This patch move the snd_pcm_mmap_appl_forward() to the place when -snd_pcm_mmap_commit() is successfully returned. - -Upstream-Status: Accepted [expected in 1.1.2] - -Signed-off-by: Shengjiu Wang <[email protected]> -Signed-off-by: Takashi Iwai <[email protected]> ---- - src/pcm/pcm_plugin.c | 48 ++++++++++++++++++++++++++++++++---------------- - 1 file changed, 32 insertions(+), 16 deletions(-) - -diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c -index d007e8c..940491d 100644 ---- a/src/pcm/pcm_plugin.c -+++ b/src/pcm/pcm_plugin.c -@@ -279,18 +279,22 @@ static snd_pcm_sframes_t snd_pcm_plugin_write_areas(snd_pcm_t *pcm, - return -EPIPE; - } - snd_atomic_write_begin(&plugin->watom); -- snd_pcm_mmap_appl_forward(pcm, frames); - result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames); - if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) { - snd_pcm_sframes_t res; - res = plugin->undo_write(pcm, slave_areas, slave_offset + result, slave_frames, slave_frames - result); -- if (res < 0) -+ if (res < 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : res; -+ } - frames -= res; - } -- snd_atomic_write_end(&plugin->watom); -- if (result <= 0) -+ if (result <= 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : result; -+ } -+ snd_pcm_mmap_appl_forward(pcm, frames); -+ snd_atomic_write_end(&plugin->watom); - offset += frames; - xfer += frames; - size -= frames; -@@ -325,19 +329,23 @@ static snd_pcm_sframes_t snd_pcm_plugin_read_areas(snd_pcm_t *pcm, - return -EPIPE; - } - snd_atomic_write_begin(&plugin->watom); -- snd_pcm_mmap_appl_forward(pcm, frames); - result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames); - if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) { - snd_pcm_sframes_t res; - - res = plugin->undo_read(slave, areas, offset, frames, slave_frames - result); -- if (res < 0) -+ if (res < 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : res; -+ } - frames -= res; - } -- snd_atomic_write_end(&plugin->watom); -- if (result <= 0) -+ if (result <= 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : result; -+ } -+ snd_pcm_mmap_appl_forward(pcm, frames); -+ snd_atomic_write_end(&plugin->watom); - offset += frames; - xfer += frames; - size -= frames; -@@ -423,19 +431,23 @@ snd_pcm_plugin_mmap_commit(snd_pcm_t *pcm, - frames = plugin->write(pcm, areas, appl_offset, frames, - slave_areas, slave_offset, &slave_frames); - snd_atomic_write_begin(&plugin->watom); -- snd_pcm_mmap_appl_forward(pcm, frames); - result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames); -- snd_atomic_write_end(&plugin->watom); - if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) { - snd_pcm_sframes_t res; - - res = plugin->undo_write(pcm, slave_areas, slave_offset + result, slave_frames, slave_frames - result); -- if (res < 0) -+ if (res < 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? xfer : res; -+ } - frames -= res; - } -- if (result <= 0) -+ if (result <= 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? xfer : result; -+ } -+ snd_pcm_mmap_appl_forward(pcm, frames); -+ snd_atomic_write_end(&plugin->watom); - if (frames == cont) - appl_offset = 0; - else -@@ -490,19 +502,23 @@ static snd_pcm_sframes_t snd_pcm_plugin_avail_update(snd_pcm_t *pcm) - frames = (plugin->read)(pcm, areas, hw_offset, frames, - slave_areas, slave_offset, &slave_frames); - snd_atomic_write_begin(&plugin->watom); -- snd_pcm_mmap_hw_forward(pcm, frames); - result = snd_pcm_mmap_commit(slave, slave_offset, slave_frames); -- snd_atomic_write_end(&plugin->watom); - if (result > 0 && (snd_pcm_uframes_t)result != slave_frames) { - snd_pcm_sframes_t res; - - res = plugin->undo_read(slave, areas, hw_offset, frames, slave_frames - result); -- if (res < 0) -+ if (res < 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : res; -+ } - frames -= res; - } -- if (result <= 0) -+ if (result <= 0) { -+ snd_atomic_write_end(&plugin->watom); - return xfer > 0 ? (snd_pcm_sframes_t)xfer : result; -+ } -+ snd_pcm_mmap_hw_forward(pcm, frames); -+ snd_atomic_write_end(&plugin->watom); - if (frames == cont) - hw_offset = 0; - else --- -1.9.1 -
meta/recipes-multimedia/alsa/alsa-lib/avoid-including-sys-poll.h-directly.patch +10 -10
@@ -1,4 +1,4 @@ -From 7dcf46969e85c881c901df4b49309e9091cad16a Mon Sep 17 00:00:00 2001 +From c2c13cf0c469862cd39b2a69862002331ab7c8cb Mon Sep 17 00:00:00 2001 From: Andre McCurdy <[email protected]> Date: Tue, 9 Feb 2016 14:01:18 -0800 Subject: [PATCH] avoid including <sys/poll.h> directly
@@ -24,7 +24,7 @@ Signed-off-by: Andre McCurdy <[email protected]> 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/aserver/aserver.c b/aserver/aserver.c -index 1579da7..ef64248 100644 +index ac20706..46f731a 100644 --- a/aserver/aserver.c +++ b/aserver/aserver.c @@ -20,7 +20,7 @@
@@ -62,7 +62,7 @@ index 3c2766e..a546194 100644 #include <stdarg.h> #include <endian.h> diff --git a/include/local.h b/include/local.h -index b429f5d..e05898f 100644 +index 317f2e3..6a43a47 100644 --- a/include/local.h +++ b/include/local.h @@ -47,7 +47,7 @@
@@ -75,18 +75,18 @@ index b429f5d..e05898f 100644 #include <errno.h> #if defined(__linux__) diff --git a/src/control/control.c b/src/control/control.c -index 4a28cf6..071c5db 100644 +index 6c00b8e..fd0c303 100644 --- a/src/control/control.c +++ b/src/control/control.c -@@ -48,7 +48,7 @@ and IEC958 structure. +@@ -90,7 +90,7 @@ I/O operations. #include <string.h> #include <fcntl.h> #include <signal.h> -#include <sys/poll.h> +#include <poll.h> + #include <stdbool.h> #include "control_local.h" - /** diff --git a/src/control/control_shm.c b/src/control/control_shm.c index bd07d4a..9a2e268 100644 --- a/src/control/control_shm.c
@@ -101,7 +101,7 @@ index bd07d4a..9a2e268 100644 #include <sys/uio.h> #include <sys/mman.h> diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c -index fd3877c..52ac093 100644 +index c3925cc..18f1dd5 100644 --- a/src/pcm/pcm_direct.c +++ b/src/pcm/pcm_direct.c @@ -30,7 +30,7 @@
@@ -114,7 +114,7 @@ index fd3877c..52ac093 100644 #include <sys/sem.h> #include <sys/wait.h> diff --git a/src/pcm/pcm_mmap.c b/src/pcm/pcm_mmap.c -index 5c4fbe1..2cfa7db 100644 +index 1948289..4cf220a 100644 --- a/src/pcm/pcm_mmap.c +++ b/src/pcm/pcm_mmap.c @@ -22,7 +22,7 @@
@@ -153,7 +153,7 @@ index a815ac6..4ee958c 100644 #include <sys/mman.h> #include <netinet/in.h> diff --git a/src/seq/seq.c b/src/seq/seq.c -index 620ca3f..681cef1 100644 +index 9279830..d2027cb 100644 --- a/src/seq/seq.c +++ b/src/seq/seq.c @@ -777,7 +777,7 @@ void event_filter(snd_seq_t *seq, snd_seq_event_t *ev)
@@ -179,5 +179,5 @@ index 9843aa8..eaa71f0 100644 #include <sys/shm.h> #include "list.h" -- -1.9.1 +2.8.1
meta/recipes-multimedia/alsa/alsa-lib_1.1.2.bb renamed from meta/recipes-multimedia/alsa/alsa-lib_1.1.1.bb +2 -3
@@ -17,10 +17,9 @@ ARM_INSTRUCTION_SET = "arm" SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/${BP}.tar.bz2 \ file://Check-if-wordexp-function-is-supported.patch \ file://avoid-including-sys-poll.h-directly.patch \ - file://0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch \ " -SRC_URI[md5sum] = "881060d2c568f7f49db82c58df2f9ddc" -SRC_URI[sha256sum] = "8ac76c3144ed2ed49da7622ab65ac5415205913ccbedde877972383cbc234269" +SRC_URI[md5sum] = "1946e6438b8262a7b8fdadacd0e06ba7" +SRC_URI[sha256sum] = "d38dacd9892b06b8bff04923c380b38fb2e379ee5538935ff37e45b395d861d6" inherit autotools pkgconfig
Signature · 1 line
2.8.1
PATCH 2/2 alsa-utils: 1.1.1 -> 1.1.2
In reply to Tanu KaskinenChangelog:
http://www.alsa-project.org/main/index.php/Changes_v1.1.1_v1.1.2
The FFT code in alsabat changed from double precision to single precision floating point numbers, which is why the fftw dependency changed to fftwf.
---
.../{alsa-utils-scripts_1.1.1.bb => alsa-utils-scripts_1.1.2.bb} | 0
.../alsa/{alsa-utils_1.1.1.bb => alsa-utils_1.1.2.bb} | 6 +++---
2 files changed, 3 insertions(+), 3 deletions(-)
rename meta/recipes-multimedia/alsa/{alsa-utils-scripts_1.1.1.bb => alsa-utils-scripts_1.1.2.bb} (100%)
rename meta/recipes-multimedia/alsa/{alsa-utils_1.1.1.bb => alsa-utils_1.1.2.bb} (96%)meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.2.bb renamed from meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.1.bb +0 -0
meta/recipes-multimedia/alsa/alsa-utils_1.1.2.bb renamed from meta/recipes-multimedia/alsa/alsa-utils_1.1.1.bb +3 -3
@@ -14,7 +14,7 @@ PACKAGECONFIG ??= "udev" # enabling/disabling fftw. The configure script doesn't support that, however # (at least in any obvious way), so for now we only support alsabat with fftw # or no alsabat at all. -PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftw" +PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf" PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,,udev" PACKAGECONFIG[xmlto] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
@@ -23,8 +23,8 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \ " -SRC_URI[md5sum] = "f8d00ad5fba757b4c3735d066cc288e2" -SRC_URI[sha256sum] = "89757c9abaf420831b088fce354d492acc170bd02bb50eb7392c175f594b8041" +SRC_URI[md5sum] = "38ac7c781f80c41c02b4664d8cbafa87" +SRC_URI[sha256sum] = "7af603c0877d1251599d65b4fbc372e63a54371b888f5c26c6a86ac1d0519071" # lazy hack. needs proper fixing in gettext.m4, see # http://bugs.openembedded.org/show_bug.cgi?id=2348
Signature · 1 line
2.8.1