summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2015-07-30 11:03:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 07:34:06 +0100
commit36eb8f9089866c0717419a82b190d969f9dc5780 (patch)
treef9ab520ac93c85a2168cf91091ac56857826c2de /meta/recipes-multimedia/alsa
parentdd8db955c28976aaef2a1c8adfff5c255f55fda3 (diff)
downloadpoky-36eb8f9089866c0717419a82b190d969f9dc5780.tar.gz
alsa-utils: assume the alsa storing is success if machine has no sound card
(From OE-Core rev: eb14c2ea542cf1209a7b743c27a64f82dc907991) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/alsa')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch34
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils_1.0.29.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch b/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch
new file mode 100644
index 0000000000..f67283db79
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch
@@ -0,0 +1,34 @@
1[PATCH] assume storing is success if not sound card device
2
3Upstream-Statue: Pending
4
5Systemd will report failure when run alsa-*, if the machine has not the
6sound card. To void this annoyed message, alsa-restore/alsa-state ignore
7all the exit codes by prefixing "-" in ExecStart, like:
8
9 alsa-utils-1.0.29$ grep "=-" ./ -r|grep service.in
10 ./alsactl/alsa-restore.service.in:ExecStart=-@sbindir@/alsactl restore
11 ./alsactl/alsa-state.service.in:ExecStart=-@sbindir@/alsactl -s -n 19 -c rdaemon
12 ./alsactl/alsa-state.service.in:ExecStop=-@sbindir@/alsactl -s kill save_and_quit
13 lsa-utils-1.0.29$
14
15But alsa-store.service.in is missing, and better solution is to ignore
16the exit code 19 which means not sound card device, not all exit code
17
18Signed-off-by: Roy Li <rongqing.li@windriver.com>
19---
20 alsactl/alsa-store.service.in | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/alsactl/alsa-store.service.in b/alsactl/alsa-store.service.in
24index f1a56bb..68ca529 100644
25--- a/alsactl/alsa-store.service.in
26+++ b/alsactl/alsa-store.service.in
27@@ -13,3 +13,4 @@ Before=shutdown.target
28 Type=oneshot
29 ExecStart=@sbindir@/alsactl store
30 StandardOutput=syslog
31+SuccessExitStatus=0 19
32--
331.9.1
34
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.0.29.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.0.29.bb
index 65cae0b928..263f38ab82 100644
--- a/meta/recipes-multimedia/alsa/alsa-utils_1.0.29.bb
+++ b/meta/recipes-multimedia/alsa/alsa-utils_1.0.29.bb
@@ -14,6 +14,7 @@ PACKAGECONFIG[xmlto] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xm
14SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ 14SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
15 file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \ 15 file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
16 file://alsa-utils-aplay-interrupt-signal-handling.patch \ 16 file://alsa-utils-aplay-interrupt-signal-handling.patch \
17 file://assume-storing-is-success-if-not-sound-card-device.patch \
17 " 18 "
18 19
19SRC_URI[md5sum] = "6b289bf874c4c9a63f4b3973093dd404" 20SRC_URI[md5sum] = "6b289bf874c4c9a63f4b3973093dd404"