Include upstream patch addressing the unsupported bit format issue
in arecord/aplay.

Commit:
https://github.com/alsa-project/alsa-utils/commit/a12ec83fa93e16a76f5c57f128f819dfe332f96c

Upstream change log:
https://www.alsa-project.org/wiki/Changes_v1.2.15_v1.2.15.1#aplay/arecord

Signed-off-by: Mohammad Rafi Shaik <[email protected]>
---
 ...issing-break-before-the-default-case.patch | 32 +++++++++++++++++++
 .../alsa/alsa-utils_1.2.15.bb                 |  3 +-
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-utils-1.2.15/0001-aplay-add-missing-break-before-the-default-case.patch

diff --git 
a/meta/recipes-multimedia/alsa/alsa-utils-1.2.15/0001-aplay-add-missing-break-before-the-default-case.patch
 
b/meta/recipes-multimedia/alsa/alsa-utils-1.2.15/0001-aplay-add-missing-break-before-the-default-case.patch
new file mode 100644
index 0000000000..53366e6f61
--- /dev/null
+++ 
b/meta/recipes-multimedia/alsa/alsa-utils-1.2.15/0001-aplay-add-missing-break-before-the-default-case.patch
@@ -0,0 +1,32 @@
+From a12ec83fa93e16a76f5c57f128f819dfe332f96c Mon Sep 17 00:00:00 2001
+From: Bard Liao <[email protected]>
+Date: Tue, 16 Dec 2025 21:55:54 +0800
+Subject: [PATCH] aplay: add missing break before the default case
+
+Add the break before the default case back. Otherwise, all cases will
+fall into the default/error case.
+
+Closes: https://github.com/alsa-project/alsa-utils/pull/315
+Fixes: e78583ab7cde ("aplay: reorganize format handling in begin_wave()")
+Signed-off-by: Bard Liao <[email protected]>
+Signed-off-by: Jaroslav Kysela <[email protected]>
+Upstream-Status: Backport [a12ec83fa93e16a76f5c57f128f819dfe332f96c]
+---
+ aplay/aplay.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/aplay/aplay.c b/aplay/aplay.c
+index 63a5214..737d087 100644
+--- a/aplay/aplay.c
++++ b/aplay/aplay.c
+@@ -2731,6 +2731,7 @@ static void begin_wave(int fd, size_t cnt)
+       case SND_PCM_FORMAT_S32_LE:
+       case SND_PCM_FORMAT_FLOAT_LE:
+       case SND_PCM_FORMAT_S24_3LE:
++              break;
+       default:
+ _format:
+               error(_("Wave doesn't support %s format..."), 
snd_pcm_format_name(hwparams.format));
+-- 
+2.34.1
+
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.2.15.bb 
b/meta/recipes-multimedia/alsa/alsa-utils_1.2.15.bb
index 09b3de81f4..144e9dfad3 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.2.15.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.2.15.bb
@@ -25,7 +25,8 @@ PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, 
xmlto-native docbook
 
 # alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
 SRC_URI = 
"https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \
-          file://0001-alsactl-fix-build-when-in-subdirectory.patch"
+          file://0001-alsactl-fix-build-when-in-subdirectory.patch \
+          file://0001-aplay-add-missing-break-before-the-default-case.patch"
 SRC_URI[sha256sum] = 
"d3183d2ed2d69e9143c5beb97036267c3fdabfe8bfbea8bc6863f17b1f0b568e"
 
 # On build machines with python-docutils (not python3-docutils !!) installed
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228960): 
https://lists.openembedded.org/g/openembedded-core/message/228960
Mute This Topic: https://lists.openembedded.org/mt/117131231/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to