package/alsa-lib: bump to version 1.2.6
- Drop upstream patches - Add a new patch: 0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch which fixes python 3.10 compatibility. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
153d028303
commit
4d4a588a50
@ -0,0 +1,70 @@
|
||||
From 1da2ede2d8b01a8851648e774a4c3c5779c0bafa Mon Sep 17 00:00:00 2001
|
||||
From: Adam Duskett <aduskett@rivian.com>
|
||||
Date: Tue, 7 Dec 2021 13:55:54 -0800
|
||||
Subject: [PATCH] Fix PyTuple_SET_ITEM() usage - no return value
|
||||
|
||||
As noted in bpo-30459 (link bellow) the PyTuple_SET_ITEM() macro
|
||||
has not a return value. Make the code compatible with python 3.10.
|
||||
|
||||
Link: https://bugs.python.org/issue30459
|
||||
Signed-off-by: Adam Duskett <aduskett@rivian.com>
|
||||
---
|
||||
modules/mixer/simple/python.c | 20 ++++++++++----------
|
||||
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/modules/mixer/simple/python.c b/modules/mixer/simple/python.c
|
||||
index 8a7264d..c7c1ce7 100644
|
||||
--- a/modules/mixer/simple/python.c
|
||||
+++ b/modules/mixer/simple/python.c
|
||||
@@ -775,8 +775,8 @@ pymixer_melement_new(struct pymixer *pymixer, PyObject *args)
|
||||
obj = PyDict_GetItemString(pymixer->mdict, class);
|
||||
if (obj) {
|
||||
obj1 = PyTuple_New(4);
|
||||
- if (PyTuple_SET_ITEM(obj1, 0, (PyObject *)pymixer))
|
||||
- Py_INCREF((PyObject *)pymixer);
|
||||
+ PyTuple_SET_ITEM(obj1, 0, (PyObject *)pymixer);
|
||||
+ Py_INCREF((PyObject *)pymixer);
|
||||
PyTuple_SET_ITEM(obj1, 1, PyUnicode_FromString(name));
|
||||
PyTuple_SET_ITEM(obj1, 2, PyInt_FromLong(index));
|
||||
PyTuple_SET_ITEM(obj1, 3, PyInt_FromLong(weight));
|
||||
@@ -920,8 +920,8 @@ static PyObject *new_helem(struct python_priv *priv, snd_hctl_elem_t *helem)
|
||||
obj = PyDict_GetItemString(priv->py_mdict, "HElement");
|
||||
if (obj) {
|
||||
obj1 = PyTuple_New(3);
|
||||
- if (PyTuple_SET_ITEM(obj1, 0, py_hctl))
|
||||
- Py_INCREF(py_hctl);
|
||||
+ PyTuple_SET_ITEM(obj1, 0, py_hctl);
|
||||
+ Py_INCREF(py_hctl);
|
||||
PyTuple_SET_ITEM(obj1, 1, PyFloat_FromDouble(1));
|
||||
PyTuple_SET_ITEM(obj1, 2, PyInt_FromLong((long)helem));
|
||||
obj2 = PyObject_CallObject(obj, obj1);
|
||||
@@ -995,11 +995,11 @@ int alsa_mixer_simple_event(snd_mixer_class_t *class, unsigned int mask,
|
||||
}
|
||||
if (o == NULL)
|
||||
return 0;
|
||||
- if (PyTuple_SET_ITEM(t, 1, o))
|
||||
- Py_INCREF(o);
|
||||
+ PyTuple_SET_ITEM(t, 1, o);
|
||||
+ Py_INCREF(o);
|
||||
o = melem ? find_melem(priv, melem) : Py_None;
|
||||
- if (PyTuple_SET_ITEM(t, 2, o))
|
||||
- Py_INCREF(o);
|
||||
+ PyTuple_SET_ITEM(t, 2, o);
|
||||
+ Py_INCREF(o);
|
||||
r = PyObject_CallObject(priv->py_event_func, t);
|
||||
Py_DECREF(t);
|
||||
if (r) {
|
||||
@@ -1066,8 +1066,8 @@ static int alsa_mixer_simple_pyinit(struct python_priv *priv,
|
||||
obj1 = PyTuple_New(3);
|
||||
PyTuple_SET_ITEM(obj1, 0, PyInt_FromLong((long)class));
|
||||
PyTuple_SET_ITEM(obj1, 1, PyInt_FromLong((long)mixer));
|
||||
- if (PyTuple_SET_ITEM(obj1, 2, mdict))
|
||||
- Py_INCREF(mdict);
|
||||
+ PyTuple_SET_ITEM(obj1, 2, mdict);
|
||||
+ Py_INCREF(mdict);
|
||||
obj2 = PyObject_CallObject(obj, obj1);
|
||||
Py_XDECREF(obj1);
|
||||
PyDict_SetItemString(mdict, "mixer", obj2);
|
||||
--
|
||||
2.33.1
|
||||
|
@ -1,43 +0,0 @@
|
||||
From 3fbaea3ff390d4c09adbf5d6ae62fb7b5f3f24f5 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Kysela <perex@perex.cz>
|
||||
Date: Mon, 28 Jun 2021 12:08:53 +0200
|
||||
Subject: [PATCH] fix build with --disable-ucm
|
||||
|
||||
Link: https://mailman.alsa-project.org/pipermail/alsa-devel/2021-June/186729.html
|
||||
Reported-by: Michael Forney <mforney@mforney.org>
|
||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||||
Upstream: f4f29d42be8b8ad60ea4c5697374adad4bfe6868
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
include/local.h | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/include/local.h b/include/local.h
|
||||
index 4e7d88a0..7cfcec53 100644
|
||||
--- a/include/local.h
|
||||
+++ b/include/local.h
|
||||
@@ -374,6 +374,8 @@ int _snd_config_load_with_include(snd_config_t *config, snd_input_t *in,
|
||||
void *INTERNAL(snd_dlopen)(const char *name, int mode, char *errbuf, size_t errbuflen);
|
||||
#endif
|
||||
|
||||
+#ifdef BUILD_UCM
|
||||
+
|
||||
const char *uc_mgr_alibcfg_by_device(snd_config_t **config, const char *name);
|
||||
|
||||
static inline int _snd_is_ucm_device(const char *name)
|
||||
@@ -381,4 +383,12 @@ static inline int _snd_is_ucm_device(const char *name)
|
||||
return name && name[0] == '_' && name[1] == 'u' && name[2] == 'c' && name[3] == 'm';
|
||||
}
|
||||
|
||||
+#else
|
||||
+
|
||||
+static inline const char *uc_mgr_alibcfg_by_device(snd_config_t **config, const char *name) { return NULL; }
|
||||
+static inline int _snd_is_ucm_device(const char *name) { return 0; }
|
||||
+
|
||||
+
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1,29 +0,0 @@
|
||||
From 81e7923fbfad45b2f353a4d6e3053af51f5f7d0b Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Kysela <perex@perex.cz>
|
||||
Date: Tue, 15 Jun 2021 23:21:42 +0200
|
||||
Subject: [PATCH] control: empty - fix the static build
|
||||
|
||||
Reported-by: Jan Palus <atler@pld-linux.org>
|
||||
Fixes: https://github.com/alsa-project/alsa-lib/issues/157
|
||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/alsa-project/alsa-lib/commit/81e7923fbfad45b2f353a4d6e3053af51f5f7d0b]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/control/control_empty.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/control/control_empty.c b/src/control/control_empty.c
|
||||
index 49d1026c..c9b048c1 100644
|
||||
--- a/src/control/control_empty.c
|
||||
+++ b/src/control/control_empty.c
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#ifndef PIC
|
||||
/* entry for static linking */
|
||||
-const char *_snd_module_ctl_empty = "";
|
||||
+const char *_snd_module_control_empty = "";
|
||||
#endif
|
||||
|
||||
/*! \page control_plugins
|
@ -1,4 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 628421d950cecaf234de3f899d520c0a6923313c964ad751ffac081df331438e alsa-lib-1.2.5.1.tar.bz2
|
||||
sha256 7fe3057894ec319118abfd042ef84632a1dcd911806ec9fff6daaa68d15a8c52 alsa-lib-1.2.6.tar.bz2
|
||||
sha256 32434afcc8666ba060e111d715bfdb6c2d5dd8a35fa4d3ab8ad67d8f850d2f2b COPYING
|
||||
sha256 bfe16cf823bcff261fc6a062c07ee96660e3c39678f42f39a788a68dbc234ced aserver/COPYING
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ALSA_LIB_VERSION = 1.2.5.1
|
||||
ALSA_LIB_VERSION = 1.2.6
|
||||
ALSA_LIB_SOURCE = alsa-lib-$(ALSA_LIB_VERSION).tar.bz2
|
||||
ALSA_LIB_SITE = https://www.alsa-project.org/files/pub/lib
|
||||
ALSA_LIB_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (aserver)
|
||||
|
Loading…
Reference in New Issue
Block a user