appy upstream patch to fix udev restore rules file [release 1.2.13-2mamba;Thu Nov 14 2024]
This commit is contained in:
parent
0c4c0f4e53
commit
bb57f4737a
37
alsa-utils-1.2.13-upstream-fix_alsa_restore_rule.patch
Normal file
37
alsa-utils-1.2.13-upstream-fix_alsa_restore_rule.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From f90124c73edd050b24961197a4abcf17e53b41a8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jaroslav Kysela <perex@perex.cz>
|
||||||
|
Date: Thu, 14 Nov 2024 09:38:49 +0100
|
||||||
|
Subject: [PATCH] alsactl: 90-alsa-restore.rules - fix alsa_restore_go/std
|
||||||
|
|
||||||
|
Fix the label mismatch which was introduced in the transition from the
|
||||||
|
temporary test rules.
|
||||||
|
|
||||||
|
Closes: https://github.com/alsa-project/alsa-utils/issues/280
|
||||||
|
Fixes: 8116639 ("alsactl: 90-alsa-restore.rules - add support for AMD ACP digital microphone")
|
||||||
|
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||||||
|
---
|
||||||
|
alsactl/90-alsa-restore.rules.in | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/alsactl/90-alsa-restore.rules.in b/alsactl/90-alsa-restore.rules.in
|
||||||
|
index 85f0b15f..dae2ed8c 100644
|
||||||
|
--- a/alsactl/90-alsa-restore.rules.in
|
||||||
|
+++ b/alsactl/90-alsa-restore.rules.in
|
||||||
|
@@ -3,6 +3,8 @@
|
||||||
|
ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*",@extratest@ GOTO="alsa_restore_go"
|
||||||
|
GOTO="alsa_restore_end"
|
||||||
|
|
||||||
|
+LABEL="alsa_restore_go"
|
||||||
|
+
|
||||||
|
ENV{ALSA_CARD_NUMBER}="$attr{device/number}"
|
||||||
|
|
||||||
|
# mark HDA analog card; HDMI/DP card does not have capture devices
|
||||||
|
@@ -21,7 +23,7 @@ TEST!="/run/udev/alsa-hda-analog-card", GOTO="alsa_restore_std"
|
||||||
|
IMPORT{program}="/usr/bin/cat /run/udev/alsa-hda-analog-card"
|
||||||
|
ENV{ALSA_CARD_HDA_ANALOG}!="", ENV{ALSA_CARD_NUMBER}="$env{ALSA_CARD_HDA_ANALOG}"
|
||||||
|
|
||||||
|
-LABEL="alsa_restore_go"
|
||||||
|
+LABEL="alsa_restore_std"
|
||||||
|
TEST!="@daemonswitch@", RUN+="@sbindir@/alsactl@args@ restore $env{ALSA_CARD_NUMBER}"
|
||||||
|
TEST=="@daemonswitch@", RUN+="@sbindir@/alsactl@args@ nrestore $env{ALSA_CARD_NUMBER}"
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
%define majver %(echo %version | cut -d. -f1-3)
|
%define majver %(echo %version | cut -d. -f1-3)
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
Version: 1.2.13
|
Version: 1.2.13
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Utilities for the Advanced Linux Sound Architecture (ALSA)
|
Summary: Utilities for the Advanced Linux Sound Architecture (ALSA)
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -14,7 +14,8 @@ Source1: alsa-initscript
|
|||||||
Source2: alsa-asound.conf
|
Source2: alsa-asound.conf
|
||||||
Source3: alsa-asound.conf-usb
|
Source3: alsa-asound.conf-usb
|
||||||
Source4: alsa-udev-asound.conf.rules
|
Source4: alsa-udev-asound.conf.rules
|
||||||
Patch0: %{name}-1.0.19-alsaconf.patch
|
Patch0: alsa-utils-1.0.19-alsaconf.patch
|
||||||
|
Patch1: alsa-utils-1.2.13-upstream-fix_alsa_restore_rule.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -62,6 +63,7 @@ This package contains the utilities for the Advanced Linux Sound Architecture (A
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch 0 -p1
|
%patch 0 -p1
|
||||||
|
%patch 1 -p1 -b .upstream-fix_alsa_restore_rule
|
||||||
|
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
|
||||||
@ -201,6 +203,9 @@ exit 0
|
|||||||
%{_mandir}/man1/aseqsend.1*
|
%{_mandir}/man1/aseqsend.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.13-2mamba
|
||||||
|
- appy upstream patch to fix udev restore rules file
|
||||||
|
|
||||||
* Thu Nov 14 2024 Automatic Build System <autodist@openmamba.org> 1.2.13-1mamba
|
* Thu Nov 14 2024 Automatic Build System <autodist@openmamba.org> 1.2.13-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user