diff options
author | Ariel D'Alessandro <ariel.dalessandro@collabora.com> | 2025-04-24 09:55:06 -0300 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-04-26 15:50:22 -0400 |
commit | a4c57ecb8ca54a64652dafa376199c9b29b1448f (patch) | |
tree | 2821a574972c106f911e706697eddd86581aa38f | |
parent | 9d601021538b6d119f04af0428e82fe7f4b78326 (diff) | |
download | meta-openembedded-a4c57ecb8ca54a64652dafa376199c9b29b1448f.tar.gz |
pipewire: Install missing ALSA config files
As detailed in Pipewire documentation [0], the ALSA plugin requires
config files to be symlinked as follow:
```
The plugin will be picked up by alsa when the following files are in /etc/alsa/conf.d/:
/etc/alsa/conf.d/50-pipewire.conf -> /usr/share/alsa/alsa.conf.d/50-pipewire.conf
/etc/alsa/conf.d/99-pipewire-default.conf
```
The above symlinks are missing, thus the pipewire device is not properly
detected.
Fix this by creating the required symlinks and installing them in the
pipewire-alsa package.
[0] https://github.com/PipeWire/pipewire/blob/master/INSTALL.md#alsa-plugin
Link: https://github.com/openembedded/meta-openembedded/issues/704
Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.9.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.9.bb b/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.9.bb index 15cd6e9ab8..c166725258 100644 --- a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.9.bb +++ b/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.9.bb | |||
@@ -157,6 +157,14 @@ remove_unused_installed_files() { | |||
157 | rm -f "${D}${datadir}/pipewire/minimal.conf" | 157 | rm -f "${D}${datadir}/pipewire/minimal.conf" |
158 | } | 158 | } |
159 | 159 | ||
160 | do_install:append() { | ||
161 | # The pipewire-alsa plugin needs the following files in /etc/alsa/conf.d/ to | ||
162 | # be picked up by alsa. | ||
163 | install -d ${D}${sysconfdir}/alsa/conf.d | ||
164 | ln -sf ${datadir}/alsa/alsa.conf.d/50-pipewire.conf ${D}${sysconfdir}/alsa/conf.d/50-pipewire.conf | ||
165 | ln -sf ${datadir}/alsa/alsa.conf.d/99-pipewire-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pipewire-default.conf | ||
166 | } | ||
167 | |||
160 | do_install[postfuncs] += "remove_unused_installed_files" | 168 | do_install[postfuncs] += "remove_unused_installed_files" |
161 | 169 | ||
162 | python split_dynamic_packages () { | 170 | python split_dynamic_packages () { |
@@ -328,6 +336,8 @@ RDEPENDS:${PN}-pulse += " \ | |||
328 | FILES:${PN}-alsa = "\ | 336 | FILES:${PN}-alsa = "\ |
329 | ${libdir}/alsa-lib/* \ | 337 | ${libdir}/alsa-lib/* \ |
330 | ${datadir}/alsa/alsa.conf.d/* \ | 338 | ${datadir}/alsa/alsa.conf.d/* \ |
339 | ${sysconfdir}/alsa/conf.d/50-pipewire.conf \ | ||
340 | ${sysconfdir}/alsa/conf.d/99-pipewire-default.conf \ | ||
331 | " | 341 | " |
332 | 342 | ||
333 | # JACK drop-in libraries to redirect audio to pipewire. | 343 | # JACK drop-in libraries to redirect audio to pipewire. |