diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
commit | 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 (patch) | |
tree | eb2d091d427ca0813b445509d59cc8e27e8ad25f /yocto-poky/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch | |
parent | 101cef31e2bf54c678501155cd2106251acbd076 (diff) | |
parent | c124f4f2e04dca16a428a76c89677328bc7bf908 (diff) | |
download | openbmc-21f9b84b4b729fbd7acbd465e7a3f726e4d20f91.tar.xz |
Merge commit 'c124f4f2e04dca16a428a76c89677328bc7bf908' as 'yocto-poky'
Diffstat (limited to 'yocto-poky/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch')
-rw-r--r-- | yocto-poky/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch b/yocto-poky/meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch new file mode 100644 index 000000000..f67283db7 --- /dev/null +++ b/yocto-poky/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 + |