]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
e578dfe743d113e593775a063974020cf7dd9fc7
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From 8c3e0ef9625066c2bb67ee3d2b8cd37fd44eadac Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Fri, 29 Aug 2014 18:58:56 +0300
4 Subject: [PATCH] alsactl: don't let systemd unit restore the volume when
5 asound.state is missing
6
7 This avoids an error on bootup
8
9 Filed as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5459
10
11 Upstream-Status: Pending
12
13 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
14 Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
15
16 Rebased on 1.1.0.
17
18 Signed-off-by: Tanu Kaskinen <tanuk@iki.fi>
19 ---
20 alsactl/Makefile.am | 7 ++++---
21 alsactl/alsa-restore.service.in | 1 +
22 2 files changed, 5 insertions(+), 3 deletions(-)
23
24 diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am
25 index cac8094..ff865dc 100644
26 --- a/alsactl/Makefile.am
27 +++ b/alsactl/Makefile.am
28 @@ -38,9 +38,10 @@ install-data-hook:
29 endif
30
31 edit = \
32 - $(SED) -r -e 's,@sbindir\@,$(sbindir),g' \
33 - -e 's,@mydatadir\@,$(mydatadir),g' \
34 - -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
35 + $(SED) -e 's,@localstatedir\@,$(localstatedir),g' \
36 + -e 's,@sbindir\@,$(sbindir),g' \
37 + -e 's,@mydatadir\@,$(mydatadir),g' \
38 + -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \
39 < $< > $@ || rm $@
40
41 alsa-state.service: alsa-state.service.in
42 diff --git a/alsactl/alsa-restore.service.in b/alsactl/alsa-restore.service.in
43 index 2884098..bac3ccc 100644
44 --- a/alsactl/alsa-restore.service.in
45 +++ b/alsactl/alsa-restore.service.in
46 @@ -8,6 +8,7 @@ Description=Save/Restore Sound Card State
47 ConditionPathExists=!@daemonswitch@
48 ConditionPathExistsGlob=/dev/snd/control*
49 After=alsa-state.service
50 +ConditionPathExists=@localstatedir@/lib/alsa/asound.state
51
52 [Service]
53 Type=oneshot
54 --
55 2.7.0.rc3
56