summaryrefslogtreecommitdiff
path: root/meta/recipes-multimedia/alsa/alsa-utils
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-07-31 15:35:34 +0100
commiteb14c2ea542cf1209a7b743c27a64f82dc907991 (patch)
treede0818410c83500d060351b40edb34bf4db7d067 /meta/recipes-multimedia/alsa/alsa-utils
parent1eefbf6bdf5e720767673a754e95c62f2ffcc82f (diff)
downloadopenembedded-core-eb14c2ea542cf1209a7b743c27a64f82dc907991.tar.gz
openembedded-core-eb14c2ea542cf1209a7b743c27a64f82dc907991.tar.bz2
openembedded-core-eb14c2ea542cf1209a7b743c27a64f82dc907991.zip
alsa-utils: assume the alsa storing is success if machine has no sound card
Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-utils')
-rw-r--r--meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch34
1 files changed, 34 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 @@
+[PATCH] assume storing is success if not sound card device
+
+Upstream-Statue: Pending
+
+Systemd will report failure when run alsa-*, if the machine has not the
+sound card. To void this annoyed message, alsa-restore/alsa-state ignore
+all the exit codes by prefixing "-" in ExecStart, like:
+
+ alsa-utils-1.0.29$ grep "=-" ./ -r|grep service.in
+ ./alsactl/alsa-restore.service.in:ExecStart=-@sbindir@/alsactl restore
+ ./alsactl/alsa-state.service.in:ExecStart=-@sbindir@/alsactl -s -n 19 -c rdaemon
+ ./alsactl/alsa-state.service.in:ExecStop=-@sbindir@/alsactl -s kill save_and_quit
+ lsa-utils-1.0.29$
+
+But alsa-store.service.in is missing, and better solution is to ignore
+the exit code 19 which means not sound card device, not all exit code
+
+Signed-off-by: Roy Li <rongqing.li@windriver.com>
+---
+ alsactl/alsa-store.service.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/alsactl/alsa-store.service.in b/alsactl/alsa-store.service.in
+index f1a56bb..68ca529 100644
+--- a/alsactl/alsa-store.service.in
++++ b/alsactl/alsa-store.service.in
+@@ -13,3 +13,4 @@ Before=shutdown.target
+ Type=oneshot
+ ExecStart=@sbindir@/alsactl store
+ StandardOutput=syslog
++SuccessExitStatus=0 19
+--
+1.9.1
+