summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2020-04-17 18:15:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-24 14:10:07 +0100
commitd32a0d25ef65babdef15970312a74000cef59ccd (patch)
tree0dd6cd2eef603e9fb5593afe4411f6547d3074ab /meta/recipes-bsp
parenta1a7dec7a1c8a720ee491cdc3d8a293960f50dfd (diff)
downloadpoky-d32a0d25ef65babdef15970312a74000cef59ccd.tar.gz
alsa-state: ignore 'No soundcards found' error in pkg_postinst
If there is no soundcards on the target (e.g. qemu), the pkp_postinst function will report an error: alsactl: load_state:1735: No soundcards found... pkg_run_script: package "alsa-state" postinst script returned status 19. opkg_configure: alsa-state.postinst returned 19. Pass '-g' option to alsactl to ignore this error. (From OE-Core rev: 100fce2a65582b9032cb9412fbe8ca572a0549b1) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/alsa-state/alsa-state.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-bsp/alsa-state/alsa-state.bb b/meta/recipes-bsp/alsa-state/alsa-state.bb
index 0670556999..cec2272c80 100644
--- a/meta/recipes-bsp/alsa-state/alsa-state.bb
+++ b/meta/recipes-bsp/alsa-state/alsa-state.bb
@@ -62,7 +62,7 @@ pkg_postinst_${PN}() {
62 then 62 then
63 if test -x ${sbindir}/alsactl 63 if test -x ${sbindir}/alsactl
64 then 64 then
65 ${sbindir}/alsactl -f ${localstatedir}/lib/alsa/asound.state restore 65 ${sbindir}/alsactl -g -f ${localstatedir}/lib/alsa/asound.state restore
66 fi 66 fi
67 fi 67 fi
68} 68}