From 1b0d65113b277610135b5599c8810ca7a4e3df4c Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 20 Sep 2021 14:29:45 +0300 Subject: meta-agl: split wireplumber to run in multiple instances The "IC SoundManager" design specifies that there needs to be a session manager running in the host to manage devices and permissions, but all the domain-specific policy and app management needs to run in the IVI container, together with the apps. With this split, we are able to achieve that. In addition to the "host" and "policy" instances, we are also adding a "bluetooth" one, which loads the bluetooth plugin and manages the bluetooth device. This can be moved to the IVI container as well, or elsewhere... it only depends on bluez (so it must run in the same container as bluez). For now, given the absence of an IVI container in the lxc-demo image, all instances are running in the host, but it is trivial to move all the non-host ones to another container later. To compliment pipewire-ic-ipc, this change also adds an "alsa-suspend" lua script that runs in the context of the "host" wireplumber instance and its purpose is to mute pipewire-managed alsa devices when there is a sound playing in the IC container (on another alsa device). Finally, this change also adds V4L2 configuration in the "host" wireplumber instance, which is still disabled (and untested), but you can easily enable it for experimentation by uncommenting the relevant line in host.lua.d/90-enable-all.lua Bug-AGL: SPEC-4027 Signed-off-by: George Kiagiadakis Change-Id: I9febc4f3919e7c559a5d7d32bfe7bc95c75934f2 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26662 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Naoto YAMAGUCHI Reviewed-by: Jan-Simon Moeller --- .../wireplumber/wireplumber-config-agl_git.bbappend | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta-pipewire/dynamic-layers/meta-app-framework/recipes-multimedia') diff --git a/meta-pipewire/dynamic-layers/meta-app-framework/recipes-multimedia/wireplumber/wireplumber-config-agl_git.bbappend b/meta-pipewire/dynamic-layers/meta-app-framework/recipes-multimedia/wireplumber/wireplumber-config-agl_git.bbappend index 106de4f6a..6a40b5f35 100644 --- a/meta-pipewire/dynamic-layers/meta-app-framework/recipes-multimedia/wireplumber/wireplumber-config-agl_git.bbappend +++ b/meta-pipewire/dynamic-layers/meta-app-framework/recipes-multimedia/wireplumber/wireplumber-config-agl_git.bbappend @@ -7,9 +7,9 @@ SRC_URI += "\ do_install:append() { # install smack-specific config - config_dir="${D}${sysconfdir}/wireplumber/config.lua.d/" - access_dir="${D}${sysconfdir}/wireplumber/scripts/access/" - mkdir -p ${access_dir} + config_dir="${D}${sysconfdir}/wireplumber/host.lua.d/" + access_dir="${D}${datadir}/wireplumber/scripts/access/" + install -d ${access_dir} install -m 0644 ${WORKDIR}/50-access-agl.lua ${config_dir} install -m 0644 ${WORKDIR}/access-smack.lua ${access_dir} } -- cgit 1.2.3-korg