updated to 1.2.5.1
This commit is contained in:
parent
db4558654a
commit
2f018e242d
@ -1,84 +0,0 @@
|
|||||||
From 78212445de4c8e07873cbc7dff2abcacd031f151 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jaroslav Kysela <perex@perex.cz>
|
|
||||||
Date: Tue, 1 Jun 2021 17:47:42 +0200
|
|
||||||
Subject: [PATCH 1/2] alsactl: fix the nested iteration
|
|
||||||
|
|
||||||
There may be nested iterations for hw: card names.
|
|
||||||
Handle this card name in snd_card_iterator_sinit().
|
|
||||||
|
|
||||||
BugLink: https://github.com/alsa-project/alsa-lib/issues/142
|
|
||||||
Fixes: eefc2c6 ("alsactl: use card iterator functions for all card loops")
|
|
||||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
||||||
---
|
|
||||||
alsactl/utils.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/alsactl/utils.c b/alsactl/utils.c
|
|
||||||
index c79fd95..881b505 100644
|
|
||||||
--- a/alsactl/utils.c
|
|
||||||
+++ b/alsactl/utils.c
|
|
||||||
@@ -247,6 +247,8 @@ int snd_card_iterator_sinit(struct snd_card_iterator *iter, const char *cardname
|
|
||||||
int cardno = -1;
|
|
||||||
|
|
||||||
if (cardname) {
|
|
||||||
+ if (strncmp(cardname, "hw:", 3) == 0)
|
|
||||||
+ cardname += 3;
|
|
||||||
cardno = snd_card_get_index(cardname);
|
|
||||||
if (cardno < 0) {
|
|
||||||
error("Cannot find soundcard '%s'...", cardname);
|
|
||||||
--
|
|
||||||
2.30.2
|
|
||||||
|
|
||||||
|
|
||||||
From 3d7a6facd9e1f962eef6c4ba3aa4cdc22477a6ac Mon Sep 17 00:00:00 2001
|
|
||||||
From: Chao Song <chao.song@linux.intel.com>
|
|
||||||
Date: Mon, 31 May 2021 10:29:57 +0800
|
|
||||||
Subject: [PATCH 2/2] topology: fix potential null pointer from strchr
|
|
||||||
|
|
||||||
This patch adds check to the return pointer from strchr,
|
|
||||||
because it may be null and cause segment fault, if component
|
|
||||||
is not properly constructed.
|
|
||||||
|
|
||||||
Fixes: https://github.com/alsa-project/alsa-utils/pull/91
|
|
||||||
Signed-off-by: Chao Song <chao.song@linux.intel.com>
|
|
||||||
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
|
||||||
---
|
|
||||||
topology/pre-process-dapm.c | 5 +++++
|
|
||||||
topology/pre-process-object.c | 5 +++++
|
|
||||||
2 files changed, 10 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/topology/pre-process-dapm.c b/topology/pre-process-dapm.c
|
|
||||||
index 450ca71..dbaf2f1 100644
|
|
||||||
--- a/topology/pre-process-dapm.c
|
|
||||||
+++ b/topology/pre-process-dapm.c
|
|
||||||
@@ -146,6 +146,11 @@ static int tplg_pp_get_widget_name(struct tplg_pre_processor *tplg_pp,
|
|
||||||
|
|
||||||
/* get class name */
|
|
||||||
args = strchr(string, '.');
|
|
||||||
+ if (!args) {
|
|
||||||
+ SNDERR("Error getting class name for %s\n", string);
|
|
||||||
+ return -EINVAL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
class_name = calloc(1, strlen(string) - strlen(args) + 1);
|
|
||||||
if (!class_name)
|
|
||||||
return -ENOMEM;
|
|
||||||
diff --git a/topology/pre-process-object.c b/topology/pre-process-object.c
|
|
||||||
index 09aa375..ac8caec 100644
|
|
||||||
--- a/topology/pre-process-object.c
|
|
||||||
+++ b/topology/pre-process-object.c
|
|
||||||
@@ -492,6 +492,11 @@ static int tplg_pp_add_object_tuple_section(struct tplg_pre_processor *tplg_pp,
|
|
||||||
}
|
|
||||||
|
|
||||||
type = strchr(token_ref, '.');
|
|
||||||
+ if(!type) {
|
|
||||||
+ SNDERR("Error getting type for %s\n", token_ref);
|
|
||||||
+ return -EINVAL;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
token = calloc(1, strlen(token_ref) - strlen(type) + 1);
|
|
||||||
if (!token)
|
|
||||||
return -ENOMEM;
|
|
||||||
--
|
|
||||||
2.30.2
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
%define baseversion 1.2.5
|
%define baseversion 1.2.5.1
|
||||||
#define fixversion .2
|
#define fixversion .2
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
Summary: Advanced Linux Sound Architecture (ALSA) utilities
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
Version: %{baseversion}%{?fixversion}
|
Version: %{baseversion}%{?fixversion}
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.alsa-project.org/
|
URL: http://www.alsa-project.org/
|
||||||
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
|
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
|
||||||
@ -192,6 +192,9 @@ fi
|
|||||||
%systemd_postun_with_restart alsa-state.service
|
%systemd_postun_with_restart alsa-state.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 14 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5.1-1
|
||||||
|
* Updated to 1.2.5.1
|
||||||
|
|
||||||
* Thu Jun 3 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5-3
|
* Thu Jun 3 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5-3
|
||||||
* Fixes for 1.2.5 (alsactl)
|
* Fixes for 1.2.5 (alsactl)
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (alsa-utils-1.2.5.tar.bz2) = 0e319e553c9c209a46f5c83c50007bd82acf1c9cf78649978b3ab6fbb4349f51c1c7c6a975a8c24d25ba07ad5325e74d2c34dc5c89180998a0f63d1326fde8b1
|
SHA512 (alsa-utils-1.2.5.1.tar.bz2) = bbafeb9189ec5802965c4e69cf6e7cd4c132ffb77b57f164d6585649890f96edd052c72697171fd629b39e12f78648fea634468df34c1a80255227ca397907bf
|
||||||
|
Loading…
Reference in New Issue
Block a user