diff mbox series

[meta-multimedia,6/6] tinyalsa: Upgrade to tip of trunk

Message ID 20261123052953.3658549-17-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj Nov. 23, 2026, 5:28 a.m. UTC
Brings in pcm_set_sw_config(), 8 bit and S24_3LE capture in tinycap,
pcm_drain() fixes, the mmap and event notification race fixes, and
plugin support enabled by default.

Drop the pcm_ioctl() plugin dispatch patch: upstream commit 785ff00
("pcm: replace ioctl() with pcm->ops->ioctl()") does the same. Keep the
meson plugin option patch, which is still pending upstream. Add an
upstream check for the release tags, which come with and without a
leading v.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...ioctl-to-dispatch-through-plugin-ops.patch | 36 -------------------
 .../tinyalsa/tinyalsa_2.0.0.bb                |  7 ++--
 2 files changed, 4 insertions(+), 39 deletions(-)
 delete mode 100644 meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0002-pcm-fix-pcm_ioctl-to-dispatch-through-plugin-ops.patch
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0002-pcm-fix-pcm_ioctl-to-dispatch-through-plugin-ops.patch b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0002-pcm-fix-pcm_ioctl-to-dispatch-through-plugin-ops.patch
deleted file mode 100644
index 1b7bead7e9..0000000000
--- a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa/0002-pcm-fix-pcm_ioctl-to-dispatch-through-plugin-ops.patch
+++ /dev/null
@@ -1,36 +0,0 @@ 
-From ef8edd2f8931c8f43d8f4fef836678ecf643608d Mon Sep 17 00:00:00 2001
-From: Claude <noreply@anthropic.com>
-Date: Thu, 20 Aug 2026 10:41:55 +0530
-Subject: [PATCH] pcm: fix pcm_ioctl to dispatch through plugin ops
-
-pcm_ioctl() bypassed pcm->ops->ioctl() and called ioctl(pcm->fd, ...)
-directly, per a FIXME comment noting it does not handle plugins. For
-plugin-backed (virtual) pcm devices, pcm->fd is not a real character
-device descriptor, so calls such as SNDRV_PCM_IOCTL_RESET or
-SNDRV_PCM_IOCTL_PAUSE silently fail with -1 and never reach the
-plugin's ioctl callback.
-
-Both hw_ops and plug_ops already implement .ioctl correctly (hw_ops
-just forwards to the raw fd, so behavior for real hardware pcms is
-unchanged), so dispatch pcm_ioctl() through pcm->ops->ioctl() instead.
-
-Upstream-Status: Inactive-Upstream [fixed independently in a later
-upstream commit that changed this to pcm->ops->ioctl(pcm->data, ...)]
----
- src/pcm.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/pcm.c b/src/pcm.c
-index 1b2103a..a37c383 100644
---- a/src/pcm.c
-+++ b/src/pcm.c
-@@ -1806,6 +1806,8 @@ int pcm_ioctl(struct pcm *pcm, int request, ...)
-     arg = va_arg(ap, void *);
-     va_end(ap);
- 
--    // FIXME Does not handle plugins
-+    if (pcm->ops && pcm->ops->ioctl)
-+        return pcm->ops->ioctl(pcm->data, request, arg);
-+
-     return ioctl(pcm->fd, request, arg);
- }
diff --git a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb
index a76e5a7447..b3ce5b4307 100644
--- a/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb
+++ b/meta-multimedia/recipes-multimedia/tinyalsa/tinyalsa_2.0.0.bb
@@ -7,10 +7,11 @@  LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://NOTICE;md5=d2918795d9185efcbf430b9ad5cda46d"
 
 PV .= "+git"
-SRCREV = "f78ed25aced2dfea743867b8205a787bfb091340"
+SRCREV = "a7cd26a17fe2add2ff38d2f281ed0b919187a068"
 SRC_URI = "git://github.com/tinyalsa/tinyalsa;branch=master;protocol=https \
-           file://0001-meson-add-option-to-enable-disable-plugin-support.patch \
-           file://0002-pcm-fix-pcm_ioctl-to-dispatch-through-plugin-ops.patch"
+           file://0001-meson-add-option-to-enable-disable-plugin-support.patch"
+
+UPSTREAM_CHECK_GITTAGREGEX = "v?(?P<pver>\d+(\.\d+)+)"
 
 
 inherit meson