diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2021-06-22 15:08:25 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-06-23 11:02:55 +0000 |
commit | 2837293f04776ab51f36b4dd52a6d046fca4d47b (patch) | |
tree | 419f1d17dca3685c85998697525eb5b8ab6f042f /meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend | |
parent | e17ac0809da83b63f7242b6ad91c00e377c7f96e (diff) |
pipewire: fix alsa virtual device to work again
* Install symlinks to the configuration files in /etc/alsa/conf.d
* Add patch from pipewire master to support roles on the virtual
alsa device
Bug-AGL: SPEC-3822
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Change-Id: Ie411df23390754e2cdc494657eb9881771b8c401
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26447
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend')
-rw-r--r-- | meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend b/meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend index cc2308e95..d45e0538b 100644 --- a/meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend +++ b/meta-pipewire/recipes-multimedia/pipewire/pipewire_0.3.30.bbappend @@ -5,3 +5,21 @@ PACKAGECONFIG = "\ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ gstreamer v4l2 \ " + +SRC_URI += "\ + file://0001-alsa-plugin-allow-specifying-a-media.role-on-the-vir.patch \ +" + +do_install_append() { + # install symlinks to alsalib configuration files + for i in 50-pipewire.conf 99-pipewire-default.conf; do + if [ -f ${D}${datadir}/alsa/alsa.conf.d/${i} ]; then + mkdir -p ${D}${sysconfdir}/alsa/conf.d + ln -s ${datadir}/alsa/alsa.conf.d/${i} ${D}${sysconfdir}/alsa/conf.d/${i} + fi + done +} + +FILES_${PN}-alsa_append = "\ + ${sysconfdir}/alsa/conf.d/* \ +" |