Compare commits

..

82 commits

Author SHA1 Message Date
Fedora Release Engineering
8b5135ae23 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:37:01 +00:00
Jaroslav Kysela
e5f06f10f7 update to 1.2.15.2
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2026-01-08 15:53:03 +01:00
Jaroslav Kysela
af596e344c Apply fix to alsactl (card detection issue) #2
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2026-01-01 18:44:59 +01:00
Jaroslav Kysela
6832b4487f Apply fix to alsactl (card detection issue)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2026-01-01 18:05:40 +01:00
Jaroslav Kysela
712def8d07 update to 1.2.15.1
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-12-19 12:12:52 +01:00
Jaroslav Kysela
d2872e5bc6 cleanup files section
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-12-08 12:42:18 +01:00
Jaroslav Kysela
234977f2a8 update to 1.2.15
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-12-08 09:52:04 +01:00
Fedora Release Engineering
b81158d8ee Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:55:31 +00:00
Jaroslav Kysela
c6dfe02d6f alsa-info.sh.1.gz -> alsa-info.sh.8.gz (man1 -> man8) 2025-04-14 15:47:47 +02:00
Jaroslav Kysela
b4926c6a54 alsa-info.sh.1.gz -> alsa-info.sh.8.gz 2025-04-14 15:37:16 +02:00
Jaroslav Kysela
8af5b81ac1 update to 1.2.14
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-04-14 15:01:46 +02:00
Fedora Release Engineering
6b0bfe6502 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:55:10 +00:00
Jaroslav Kysela
65c6a14b10 fix 90-alsa-restore.rules.in
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-11-14 09:49:39 +01:00
Jaroslav Kysela
76b6ba63bc update to 1.2.13
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-11-12 13:49:19 +01:00
Fedora Release Engineering
df95d97fce Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:53:31 +00:00
Jaroslav Kysela
af2b8fab73 add missing aseqsend utility to file list
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-06-11 10:54:05 +02:00
Jaroslav Kysela
57be7e615a updated to 1.2.12
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-06-10 14:24:48 +02:00
Jaroslav Kysela
855d495e27 fix baseversion to 1.2.11
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-01-29 14:39:33 +01:00
Jaroslav Kysela
3c01a4c1f0 update to 1.2.11
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-01-29 14:37:35 +01:00
Fedora Release Engineering
7e840cf34e Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:56:59 +00:00
Fedora Release Engineering
1556eeb427 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:45:47 +00:00
Jaroslav Kysela
ad627191eb update to 1.2.10
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-09-01 18:41:24 +02:00
Fedora Release Engineering
8a5252591e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:10:24 +00:00
Jaroslav Kysela
f966ddd17b update SPDX license
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-06-06 20:11:37 +02:00
Jaroslav Kysela
b88d4e972a fix build (autoreconf) #2
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-05-16 18:17:31 +02:00
Jaroslav Kysela
491d99741b fix build (autoreconf)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-05-16 18:05:46 +02:00
Jaroslav Kysela
f0e629bce8 add nhlt-dmic-info
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-05-16 17:55:37 +02:00
Jaroslav Kysela
91d2bb1e33 update to 1.2.9
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2023-05-04 10:21:58 +02:00
Fedora Release Engineering
04ecda8dbc Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:38:24 +00:00
Jaroslav Kysela
f893b96bd5 update to 1.2.8
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2022-10-24 10:57:02 +02:00
Fedora Release Engineering
12e78e55bb Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 20:41:35 +00:00
Jaroslav Kysela
7d224376e6 update to 1.2.7
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2022-05-31 18:31:03 +02:00
Fedora Release Engineering
5ae71dd87b - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 21:09:50 +00:00
Jaroslav Kysela
c5ed6b97d8 updated to 1.2.6 2021-12-06 13:31:49 +01:00
Fedora Release Engineering
e51733b089 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 17:28:46 +00:00
Fedora Release Engineering
0690a510cf - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 12:33:21 +00:00
Jaroslav Kysela
2f018e242d updated to 1.2.5.1 2021-06-14 14:29:38 +02:00
Jaroslav Kysela
db4558654a fixes for 1.2.5
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-06-03 13:10:07 +02:00
Jaroslav Kysela
7c9baba24d alsactl requires alsa-ucm configuration files now 2021-05-31 12:56:19 +02:00
Jaroslav Kysela
51bdb272fc updated to 1.2.5 2021-05-28 13:51:40 +02:00
Jaroslav Kysela
d95509ce2c Drop StandardOutput=syslog from alsa-restore.service
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1937450
2021-05-24 21:06:09 +02:00
Zbigniew Jędrzejewski-Szmek
7e12cf7d48 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:14:11 +01:00
Fedora Release Engineering
cdd4619adc - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 00:01:09 +00:00
Tom Stellard
62a14c55a4 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-16 23:25:06 +00:00
Jaroslav Kysela
2dc8c4c448 update sources with 1.2.4 2020-10-15 20:04:16 +02:00
Jaroslav Kysela
67cbc921db update to 1.2.4 2020-10-15 20:02:38 +02:00
Fedora Release Engineering
f2a39f9a19 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-31 23:56:10 +00:00
Fedora Release Engineering
8cf23961fc - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 11:57:53 +00:00
Jaroslav Kysela
867def31f6 fix the .spec (changelog0) 2020-07-03 19:36:21 +02:00
Jaroslav Kysela
b65f2966e5 remove alsa-ucm.rules from files sections 2020-06-07 21:12:58 +02:00
Jaroslav Kysela
0bc5d5375f remove alsa-ucm.rules lines 2020-06-07 21:05:13 +02:00
Jaroslav Kysela
6ef6d1ed32 cleanups for the alsa git patch 2020-06-07 21:04:52 +02:00
Jaroslav Kysela
c358c9c301 update to 1.2.3 2020-06-07 19:57:09 +02:00
Jaroslav Kysela
362038f2d6 add simple tests 2020-03-03 10:54:29 +01:00
Jaroslav Kysela
fcba1a6023 updated sources 2020-02-19 13:10:10 +01:00
Jaroslav Kysela
fc57d3c019 clean alsa-git.patch
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-02-19 12:45:19 +01:00
Jaroslav Kysela
bf45105506 updated to 1.2.2 2020-02-19 12:25:57 +01:00
Jaroslav Kysela
bdf0a12489 ucm and topology fixes
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-02-09 21:05:39 +01:00
Fedora Release Engineering
e87e501aa6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 11:28:05 +00:00
Jaroslav Kysela
96406ac9f8 correct the date for the last changelog entry 2019-11-15 15:34:17 +01:00
Jaroslav Kysela
5c65a752af remove alsatplg from alsa-utils 2019-11-15 15:31:21 +01:00
Jaroslav Kysela
7d8a4e5565 updated sources 2019-11-14 18:49:05 +01:00
Jaroslav Kysela
05f499ecdf fix the log for 1.2.1 update 2019-11-13 16:55:45 +01:00
Jaroslav Kysela
a97d563c57 updated to 1.2.1 2019-11-13 16:46:36 +01:00
Fedora Release Engineering
320be60b6f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 17:48:09 +00:00
Jaroslav Kysela
9033340d1d updated to 1.1.9 2019-05-10 10:05:38 +02:00
Fedora Release Engineering
e2fbd32cea - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 13:13:26 +00:00
Igor Gnatenko
f01aa9792d Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:23:55 +01:00
Jaroslav Kysela
4dc0d4e420 increase version for build 2019-01-07 15:51:13 +01:00
Jaroslav Kysela
9af6a86ab4 add missing changelog 2019-01-07 15:48:18 +01:00
Jaroslav Kysela
df8eb504b1 updated to 1.1.8 2019-01-07 15:36:17 +01:00
Jaroslav Kysela
f567b1973c fix the wrong patch 2018-10-16 18:46:56 +02:00
Jaroslav Kysela
8fd9d787c5 remove wrong %{_isa} macro usage for ucm-utils and topology-utils 2018-10-16 18:39:36 +02:00
Jaroslav Kysela
fa7e061820 eliminate some lint errors 2018-10-16 17:44:01 +02:00
Jaroslav Kysela
3aaab7fc40 add back requires (wrong commit) 2018-10-16 11:12:01 +02:00
Jaroslav Kysela
2e872fb5ec updated to 1.1.7 2018-10-16 11:04:24 +02:00
Jaroslav Kysela
33f1d120c3 changed buildrequires to python3-docutils 2018-09-07 13:37:48 +02:00
Jaroslav Kysela
ffd5fc0633 fix buildrequires 2018-09-07 13:28:51 +02:00
Jaroslav Kysela
bce19f4bab add udev rules for PAZ00 2018-09-07 13:20:25 +02:00
Fedora Release Engineering
4cc6303d53 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 20:09:50 +00:00
Igor Gnatenko
9341098505 add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-09 19:06:42 +02:00
Jaroslav Kysela
db3ce8d9d7 updated to 1.1.6 2018-04-03 11:07:59 +02:00
8 changed files with 258 additions and 273 deletions

View file

@ -1,231 +0,0 @@
From da4d5bd53a1a57d1b39318b83d3280fbcd78e9f6 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Tue, 15 May 2018 22:17:01 +0200
Subject: [PATCH 1/6] aplay: Fix invalid file size check for non-regular files
aplay tries to check the file size via fstat() at parsing the format
headers and avoids parsing when the size is shorter than the given
size. This works fine for regular files, but when a special file like
pipe is passed, it fails, eventually leading to the fallback mode
wrongly.
A proper fix is to do this sanity check only for a regular file.
Reported-by: Jay Foster <jay@systech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
aplay/aplay.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/aplay/aplay.c b/aplay/aplay.c
index bbd7fff..63ec9ef 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -2821,7 +2821,8 @@ static int read_header(int *loaded, int header_size)
/* don't be adventurous, get out if file size is smaller than
* requested header size */
- if (buf.st_size < header_size)
+ if ((buf.st_mode & S_IFMT) == S_IFREG &&
+ buf.st_size < header_size)
return -1;
if (*loaded < header_size) {
--
2.13.6
From 0e2703cef90a2c53d49a49d5e9233aeb6db8960b Mon Sep 17 00:00:00 2001
From: Julian Scheel <julian@jusst.de>
Date: Wed, 23 May 2018 15:42:20 +0200
Subject: [PATCH 2/6] speaker-test: Support S24_3LE sample format
Implement support signed 24 bit samples, packed in 3 bytes.
Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
speaker-test/speaker-test.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c
index 65ab523..4804bcf 100644
--- a/speaker-test/speaker-test.c
+++ b/speaker-test/speaker-test.c
@@ -283,6 +283,8 @@ static const int supported_formats[] = {
SND_PCM_FORMAT_S16_LE,
SND_PCM_FORMAT_S16_BE,
SND_PCM_FORMAT_FLOAT_LE,
+ SND_PCM_FORMAT_S24_3LE,
+ SND_PCM_FORMAT_S24_3BE,
SND_PCM_FORMAT_S32_LE,
SND_PCM_FORMAT_S32_BE,
-1
@@ -325,6 +327,18 @@ static void do_generate(uint8_t *frames, int channel, int count,
case SND_PCM_FORMAT_FLOAT_LE:
*samp_f++ = res.f;
break;
+ case SND_PCM_FORMAT_S24_3LE:
+ res.i >>= 8;
+ *samp8++ = LE_INT(res.i);
+ *samp8++ = LE_INT(res.i) >> 8;
+ *samp8++ = LE_INT(res.i) >> 16;
+ break;
+ case SND_PCM_FORMAT_S24_3BE:
+ res.i >>= 8;
+ *samp8++ = BE_INT(res.i);
+ *samp8++ = BE_INT(res.i) >> 8;
+ *samp8++ = BE_INT(res.i) >> 16;
+ break;
case SND_PCM_FORMAT_S32_LE:
*samp32++ = LE_INT(res.i);
break;
--
2.13.6
From 98ff61743188101920cbf0b1b2e3cd6d015e3c83 Mon Sep 17 00:00:00 2001
From: Julian Scheel <julian@jusst.de>
Date: Wed, 23 May 2018 15:42:21 +0200
Subject: [PATCH 3/6] speaker-test: Remove unused variable
Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
speaker-test/speaker-test.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c
index 4804bcf..0cdecb3 100644
--- a/speaker-test/speaker-test.c
+++ b/speaker-test/speaker-test.c
@@ -300,7 +300,6 @@ static void do_generate(uint8_t *frames, int channel, int count,
{
value_t res;
int chn;
- int32_t ires;
int8_t *samp8 = (int8_t*) frames;
int16_t *samp16 = (int16_t*) frames;
int32_t *samp32 = (int32_t*) frames;
--
2.13.6
From a3d81b6beab1ad33ea02f7d3c19f894490a661b9 Mon Sep 17 00:00:00 2001
From: Julian Scheel <julian@jusst.de>
Date: Thu, 7 Jun 2018 11:10:55 +0200
Subject: [PATCH 4/6] speaker-test: Allow sampling rates up to 768000
There are audio devices around that support up to 768kHz playback, allow
testing them by increasing the maximum supported sampling rate.
Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
speaker-test/speaker-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c
index 0cdecb3..773af0a 100644
--- a/speaker-test/speaker-test.c
+++ b/speaker-test/speaker-test.c
@@ -1034,7 +1034,7 @@ int main(int argc, char *argv[]) {
case 'r':
rate = atoi(optarg);
rate = rate < 4000 ? 4000 : rate;
- rate = rate > 384000 ? 384000 : rate;
+ rate = rate > 768000 ? 768000 : rate;
break;
case 'c':
channels = atoi(optarg);
--
2.13.6
From f6b59282f7c3bddc6aa4aca93e8e19163955675b Mon Sep 17 00:00:00 2001
From: Jonathan Liu <net147@gmail.com>
Date: Sun, 5 Aug 2018 13:59:35 +1000
Subject: [PATCH 5/6] alsabat: Allow custom sample format for round trip
latency test
Setting the format to BAT_PCM_FORMAT_S16_LE in the round trip latency
test initialization is redundant as it is already set by default to
BAT_PCM_FORMAT_S16_LE unless a sample format is specified on the command
line.
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
bat/latencytest.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/bat/latencytest.c b/bat/latencytest.c
index fae191c..ec3abe2 100644
--- a/bat/latencytest.c
+++ b/bat/latencytest.c
@@ -178,7 +178,6 @@ void roundtrip_latency_init(struct bat *bat)
bat->latency.is_playing = false;
bat->latency.error = 0;
bat->latency.xrun_error = false;
- bat->format = BAT_PCM_FORMAT_S16_LE;
bat->frames = LATENCY_TEST_TIME_LIMIT * bat->rate;
bat->periods_played = 0;
}
--
2.13.6
From 25bea6baf7097dc0a701b27587be88b0b54a529c Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Fri, 7 Sep 2018 10:53:19 +0200
Subject: [PATCH 6/6] alsaucm: add alsa-ucm udev rules for PAZ00 (Toshiba
AC100/Dynabook AZ).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
.gitignore | 1 +
alsaucm/89-alsa-ucm.rules.in | 8 ++++++++
alsaucm/Makefile.am | 15 ++++++++++++++-
3 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 alsaucm/89-alsa-ucm.rules.in
diff --git a/alsaucm/89-alsa-ucm.rules.in b/alsaucm/89-alsa-ucm.rules.in
new file mode 100644
index 0000000..52a7616
--- /dev/null
+++ b/alsaucm/89-alsa-ucm.rules.in
@@ -0,0 +1,8 @@
+SUBSYSTEM!="sound", GOTO="ucm_end"
+ACTION!="change", GOTO="ucm_end"
+KERNEL!="card*", GOTO="ucm_end"
+
+ATTRS{id}=="PAZ00", RUN+="@bindir@/alsaucm -c PAZ00 set _verb HiFi"
+ATTRS{id}=="PAZ00", RUN+="@bindir@/alsaucm -c PAZ00 set _verb Record"
+
+LABEL="ucm_end"
diff --git a/alsaucm/Makefile.am b/alsaucm/Makefile.am
index ee0391e..651f678 100644
--- a/alsaucm/Makefile.am
+++ b/alsaucm/Makefile.am
@@ -15,4 +15,17 @@ alsaucm_LDADD = -lasound
%.1: %.rst
rst2man $< > $@
-EXTRA_DIST = alsaucm.rst
+udevrules_DATA = \
+ 89-alsa-ucm.rules
+
+edit = \
+ $(SED) -r -e 's,@bindir\@,$(bindir),g' \
+ -e 's,@mydatadir\@,$(mydatadir),g' \
+ < $< > $@ || rm $@
+
+89-alsa-ucm.rules: 89-alsa-ucm.rules.in
+ $(edit)
+
+EXTRA_DIST = alsaucm.rst 89-alsa-ucm.rules.in
+
+CLEANFILES = 89-alsa-ucm.rules
--
2.13.6

View file

@ -12,4 +12,3 @@ Type=oneshot
RemainAfterExit=true
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store
StandardOutput=syslog

0
alsa-utils-git.patch Normal file
View file

View file

@ -1,44 +1,64 @@
%define baseversion 1.1.6
#define fixversion .2
%define baseversion 1.2.15
%define fixversion .2
%global _hardened_build 1
%global utils_patch 0
Summary: Advanced Linux Sound Architecture (ALSA) utilities
Name: alsa-utils
Version: %{baseversion}%{?fixversion}
Release: 4%{?dist}
License: GPLv2+
Group: Applications/Multimedia
Release: 2%{?dist}
License: GPL-2.0-or-later
URL: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
Patch1: alsa-git.patch
Source4: alsaunmute
Source5: alsaunmute.1
Source10: alsa.rules
Source11: alsactl.conf
Source20: alsa-restore.service
Source22: alsa-state.service
%if %{utils_patch}
Patch1: alsa-git.patch
%endif
BuildRequires: gcc
BuildRequires: autoconf automake libtool
BuildRequires: alsa-lib-devel >= %{baseversion}
BuildRequires: libsamplerate-devel
BuildRequires: ncurses-devel
BuildRequires: gettext-devel
BuildRequires: xmlto
BuildRequires: python2-docutils
BuildRequires: python3-docutils
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
# use latest alsa-lib - the executables in this package requires latest API
Requires: alsa-lib%{?_isa} >= %{baseversion}
Requires: alsa-ucm >= %{baseversion}
%description
This package contains command line utilities for the Advanced Linux Sound
Architecture (ALSA).
%package -n alsa-ucm-utils
Summary: Advanced Linux Sound Architecture (ALSA) - Use Case Manager
%description -n alsa-ucm-utils
This package contains Use Case Manager tools for Advanced Linux Sound
Architecture (ALSA) framework.
%package -n alsa-topology-utils
Summary: Advanced Linux Sound Architecture (ALSA) - Topology
Requires: alsa-topology >= %{baseversion}
%description -n alsa-topology-utils
This package contains topology tools for Advanced Linux Sound
Architecture (ALSA) framework.
%package alsabat
Summary: Advanced Linux Sound Architecture (ALSA) - Basic Audio Tester
Group: Applications/Multimedia
BuildRequires: fftw-devel
BuildRequires: make
%description alsabat
This package contains tool for basic audio testing using Advanced Linux Sound
@ -46,24 +66,28 @@ Architecture (ALSA) framework and Fast Fourier Transform library.
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%if %{utils_patch}
%patch -P1 -p1 -b .alsa-git
%endif
%build
autoreconf -vif
%configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --disable-alsaconf \
--with-udev-rules-dir=%{_prefix}/lib/udev/rules.d \
--with-systemdsystemunitdir=%{_unitdir}
--with-systemdsystemunitdir=%{_unitdir} \
--with-alsactl-udev-args="-E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main" \
--with-alsactl-udev-extra-test=""
make %{?_smp_mflags}
cp %{SOURCE4} .
%install
%global alsacfgdir %{_prefix}/lib/alsa
make install DESTDIR=%{buildroot}
%find_lang %{name}
# Install ALSA udev rules
# Install ALSA udev rules and services
mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d
install -p -m 644 %{SOURCE10} %{buildroot}/%{_prefix}/lib/udev/rules.d/90-alsa-restore.rules
sed -e 's,@bindir@,%{_bindir},g' alsaucm/89-alsa-ucm.rules.in > alsaucm/89-alsa-ucm.rules
install -p -m 644 alsaucm/89-alsa-ucm.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/89-alsa-ucm.rules
mkdir -p %{buildroot}/%{_unitdir}
install -p -m 644 %{SOURCE20} %{buildroot}/%{_unitdir}/alsa-restore.service
install -p -m 644 %{SOURCE22} %{buildroot}/%{_unitdir}/alsa-state.service
@ -75,8 +99,8 @@ mkdir -p -m755 %{buildroot}/%{_mandir}/man1
install -p -m 644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/alsaunmute.1
# Move /usr/share/alsa/init to /usr/lib/alsa/init
mkdir -p -m 755 %{buildroot}/%{_prefix}/lib/alsa
mv %{buildroot}%{_datadir}/alsa/init %{buildroot}/%{_prefix}/lib/alsa
mkdir -p -m 755 %{buildroot}%{alsacfgdir}
mv %{buildroot}%{_datadir}/alsa/init %{buildroot}%{alsacfgdir}
# Link /usr/lib/alsa/init to /usr/share/alsa/init back
ln -s ../../lib/alsa/init %{buildroot}%{_datadir}/alsa/init
@ -86,32 +110,38 @@ mkdir -p -m 755 %{buildroot}/etc/alsa
install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa
# Create /var/lib/alsa tree
mkdir -p -m 755 %{buildroot}/var/lib/alsa
mkdir -p -m 755 %{buildroot}%{_sharedstatedir}/alsa
find %{buildroot} -name "*.la" -exec rm {} \;
%files -f %{name}.lang
%doc COPYING ChangeLog README TODO
%doc COPYING ChangeLog README.md TODO alsamixer/alsamixer.rc.example
%config /etc/alsa/*
%{_prefix}/lib/udev/rules.d/*
%{_unitdir}/*
%{_unitdir}/sound.target.wants/*
%{_prefix}/lib/alsa/init/*
#{_unitdir}/sound.target.wants/*
%{alsacfgdir}/init/*
%{_bindir}/aconnect
%{_sbindir}/alsactl
%{_bindir}/alsaloop
%{_bindir}/alsamixer
%{_bindir}/alsaucm
%{_bindir}/alsaunmute
%{_sbindir}/alsa-info.sh
%{_bindir}/amidi
%{_bindir}/amixer
%{_bindir}/aplay
%{_bindir}/aplaymidi
%{_bindir}/aplaymidi2
%{_bindir}/arecord
%{_bindir}/arecordmidi
%{_bindir}/arecordmidi2
%{_bindir}/aseqdump
%{_bindir}/aseqnet
%{_bindir}/aseqsend
%{_bindir}/axfer
%{_bindir}/iecset
%{_bindir}/nhlt-dmic-info
%{_bindir}/speaker-test
%{_bindir}/alsatplg
%{_sbindir}/*
%{_datadir}/alsa/
%{_datadir}/sounds/*
%{_mandir}/man7/*
@ -119,27 +149,43 @@ mkdir -p -m 755 %{buildroot}/var/lib/alsa
%{_mandir}/man1/alsaloop.1.gz
%{_mandir}/man1/alsamixer.1.gz
%{_mandir}/man1/alsaunmute.1.gz
%{_mandir}/man1/alsaucm.1.gz
%{_mandir}/man1/amidi.1.gz
%{_mandir}/man1/amixer.1.gz
%{_mandir}/man1/aplay.1.gz
%{_mandir}/man1/aplaymidi.1.gz
%{_mandir}/man1/aplaymidi2.1.gz
%{_mandir}/man1/arecord.1.gz
%{_mandir}/man1/arecordmidi.1.gz
%{_mandir}/man1/arecordmidi2.1.gz
%{_mandir}/man1/aseqdump.1.gz
%{_mandir}/man1/aseqnet.1.gz
%{_mandir}/man1/aseqsend.1.gz
%{_mandir}/man1/axfer.1.gz
%{_mandir}/man1/axfer-list.1.gz
%{_mandir}/man1/axfer-transfer.1.gz
%{_mandir}/man1/iecset.1.gz
%{_mandir}/man1/speaker-test.1.gz
%{_mandir}/man1/aconnect.1.gz
%{_mandir}/man1/alsa-info.sh.1.gz
%{_mandir}/man8/alsa-info.sh.8.gz
%{_mandir}/man1/nhlt-dmic-info.1.gz
%dir /etc/alsa/
%dir %{_prefix}/lib/alsa/
%dir %{_prefix}/lib/alsa/init/
%dir /var/lib/alsa/
%dir %{alsacfgdir}/
%dir %{alsacfgdir}/init/
%dir %{_sharedstatedir}/alsa/
%files -n alsa-ucm-utils
%{_bindir}/alsaucm
%{_mandir}/man1/alsaucm.1.gz
%files -n alsa-topology-utils
%{_bindir}/alsatplg
%{_mandir}/man1/alsatplg.1.gz
%{_libdir}/alsa-topology/libalsatplg_module_*
%files alsabat
%{_bindir}/alsabat
%{_sbindir}/alsabat-test.sh
%{_mandir}/man1/alsabat.1.gz
%pre
@ -153,8 +199,8 @@ fi
if [ -s /etc/alsa/asound.state -a ! -s /etc/asound.state ] ; then
mv /etc/alsa/asound.state /etc/asound.state
fi
if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
mv /etc/asound.state /var/lib/alsa/asound.state
if [ -s /etc/asound.state -a ! -s %{_sharedstatedir}/alsa/asound.state ] ; then
mv /etc/asound.state %{_sharedstatedir}/alsa/asound.state
fi
%systemd_post alsa-state.service
@ -165,9 +211,151 @@ fi
%systemd_postun_with_restart alsa-state.service
%changelog
* Fri Sep 07 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-4
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.15.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Thu Jan 8 2026 Jaroslav Kysela <perex@perex.cz> - 1.2.15.2-1
* Updated to 1.2.15.2
* Thu Jan 1 2026 Jaroslav Kysela <perex@perex.cz> - 1.2.15.1-3
* Apply fix to alsactl (card detection issue)
* Fri Dec 19 2025 Jaroslav Kysela <perex@perex.cz> - 1.2.15.1-1
* Updated to 1.2.15.1
* Mon Dec 8 2025 Jaroslav Kysela <perex@perex.cz> - 1.2.15-2
* Updated to 1.2.15
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Apr 14 2025 Jaroslav Kysela <perex@perex.cz> - 1.2.14-1
* Updated to 1.2.14
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.13-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Nov 14 2024 Jaroslav Kysela <perex@perex.cz> - 1.2.13-2
* Updated to 1.2.13
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jun 11 2024 Jaroslav Kysela <perex@perex.cz> - 1.2.12-1
* Updated to 1.2.12
* Mon Jan 29 2024 Jaroslav Kysela <perex@perex.cz> - 1.2.11-1
* Updated to 1.2.11
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Sep 1 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.10-1
* Updated to 1.2.10
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 6 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.9-3
* SPDX license
* Tue May 16 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.9-2
* Add nhlt-dmic-info utility
* Thu May 4 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.9-1
* Updated to 1.2.9
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Oct 24 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.8-1
* Updated to 1.2.8
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.7-1
* Updated to 1.2.7
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Dec 6 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.6-1
* Updated to 1.2.6
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* 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
* Fixes for 1.2.5 (alsactl)
* Mon May 31 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5-2
* Updated to 1.2.5
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.4-3
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Oct 15 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.4-1
* Updated to 1.2.4
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-6
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 3 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-4
* Fix the .spec (changelog0)
* Sun Jun 7 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-3
* Updated to 1.2.3
* Wed Feb 19 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.2-1
* Updated to 1.2.2
* Sun Feb 9 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.1-6
- UCM and topology fixes
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 15 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1-4
- Updated to 1.2.1
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 10 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.9-1
- Updated to 1.1.9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 7 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.8-2
- Updated to 1.1.8
* Tue Oct 16 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.7-2
- Moved use case manager utility to alsa-ucm-utils
- Moved topology utility to alsa-topology-utils
- Updated to 1.1.7
* Fri Sep 07 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-5
- Added udev rules for PAZ00
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1
- Updated to 1.1.6

View file

@ -1,8 +0,0 @@
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go"
GOTO="alsa_restore_end"
LABEL="alsa_restore_go"
TEST!="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore /dev/$name"
TEST=="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main nrestore /dev/$name"
LABEL="alsa_restore_end"

View file

@ -1 +1 @@
SHA512 (alsa-utils-1.1.6.tar.bz2) = 24d0ffaeeccecb3276d7d35ef51e6de6026a63fa5a1a1e4605b024f54d8097717e97ec9d33cfe50830ad17e4a89268ca24b065039b0df7f9fbe02b570617aa58
SHA512 (alsa-utils-1.2.15.2.tar.bz2) = 13ca15a63bcbf81a4643ef03e391200d7523335bc300e290756089c4cfeccb9773cf6b77f9fcf4b80e6aa2e8c5e33a2c86c9173f1feb480aedf5ecda0f7c47cd

28
tests/run_tests.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
set -ex
# is alsactl present and working?
alsactl --version
# is amixer present and working?
amixer --help
# is alsamixer present and working?
alsamixer --version
# is amidi present and working?
amidi --version
# is speaker-test preset and working?
speaker-test -h
# aplay test (like for alsa-lib)
str=$(aplay -L | grep -E "^null$")
if [ "$str" != "null" ]; then
echo "The 'null' pcm plugin was not found!"
exit 99
fi
# alsa-info.sh present and working?
alsa-info.sh --help

9
tests/tests.yml Normal file
View file

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: ./run_tests.sh