summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch40
1 files changed, 17 insertions, 23 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
index 1690ca566c..477cd11b12 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
+++ b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
@@ -6,41 +6,35 @@ Subject: [PATCH] alsactl: don't let systemd unit restore the volume when asound.
6This avoids an error on bootup 6This avoids an error on bootup
7 7
8Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> 8Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
9---
10 9
11Filed as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5459 10Filed as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5459
12 11
13Upstream-Status: Pending 12Upstream-Status: Pending
14 13
15 alsactl/Makefile.am | 2 +- 14Index: alsa-utils-1.0.27.2/alsactl/Makefile.am
16 alsactl/alsa-restore.service.in | 1 + 15===================================================================
17 2 files changed, 2 insertions(+), 1 deletions(-) 16--- alsa-utils-1.0.27.2.orig/alsactl/Makefile.am
18 17+++ alsa-utils-1.0.27.2/alsactl/Makefile.am
19diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am 18@@ -36,8 +36,8 @@ install-data-hook:
20index 5cfc415..c3768c4 100644
21--- a/alsactl/Makefile.am
22+++ b/alsactl/Makefile.am
23@@ -34,7 +34,7 @@ install-data-hook:
24 endif 19 endif
25 20
26 edit = \ 21 edit = \
27- $(SED) -r 's,@sbindir\@,$(sbindir),g' < $< > $@ || rm $@ 22- $(SED) -r -e 's,@sbindir\@,$(sbindir),g' \
28+ $(SED) -e 's,@localstatedir\@,$(localstatedir),g' -e 's,@sbindir\@,$(sbindir),g' < $< > $@ || rm $@ 23- -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
24+ $(SED) -e 's,@localstatedir\@,$(localstatedir),g' -e 's,@sbindir\@,$(sbindir),g' \
25+ -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
26 < $< > $@ || rm $@
29 27
30 alsa-store.service: alsa-store.service.in 28 alsa-state.service: alsa-state.service.in
31 $(edit) 29Index: alsa-utils-1.0.27.2/alsactl/alsa-restore.service.in
32diff --git a/alsactl/alsa-restore.service.in b/alsactl/alsa-restore.service.in 30===================================================================
33index e97d196..3b76710 100644 31--- alsa-utils-1.0.27.2.orig/alsactl/alsa-restore.service.in
34--- a/alsactl/alsa-restore.service.in 32+++ alsa-utils-1.0.27.2/alsactl/alsa-restore.service.in
35+++ b/alsactl/alsa-restore.service.in 33@@ -10,6 +10,7 @@ DefaultDependencies=no
36@@ -4,6 +4,7 @@ DefaultDependencies=no 34 After=alsa-state.service
37 After=sysinit.target
38 Before=shutdown.target 35 Before=shutdown.target
39 Conflicts=shutdown.target 36 Conflicts=shutdown.target
40+ConditionPathExists=@localstatedir@/lib/alsa/asound.state 37+ConditionPathExists=@localstatedir@/lib/alsa/asound.state
41 38
42 [Service] 39 [Service]
43 Type=oneshot 40 Type=oneshot
44--
451.6.6.1
46