mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
alsa-utils: assume the alsa storing is success if machine has no sound card
(From OE-Core rev: eb14c2ea542cf1209a7b743c27a64f82dc907991) (From OE-Core rev: 9ebfc72eb5674d2f36479ee7ee394a3a6e4fd95b) 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>
This commit is contained in:
+34
@@ -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
|
||||||
|
|
||||||
@@ -14,6 +14,7 @@ PACKAGECONFIG[xmlto] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xm
|
|||||||
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
|
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
|
||||||
file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
|
file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
|
||||||
file://alsa-utils-aplay-interrupt-signal-handling.patch \
|
file://alsa-utils-aplay-interrupt-signal-handling.patch \
|
||||||
|
file://assume-storing-is-success-if-not-sound-card-device.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "361552d5b1cacd0a1e7ba09e69990211"
|
SRC_URI[md5sum] = "361552d5b1cacd0a1e7ba09e69990211"
|
||||||
|
|||||||
Reference in New Issue
Block a user