alsa: do not restore UCM profiles

There is a harmless error when restoring alsa profiles, as it also
attempts to restore UCM profiles.
Since we do not include UCM profiles for our sound cards, skip it.

https://onedigi.atlassian.net/browse/DEL-9066

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2024-07-05 12:35:01 +02:00
parent ac23714967
commit d439abd0d4
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Copyright (C) 2024 Digi International.
do_install:append() {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
sed -i -e 's:alsactl restore:alsactl --no-ucm restore:g' \
${D}${systemd_unitdir}/system/alsa-restore.service
fi
}