diff options
| author | Ariel D'Alessandro <ariel.dalessandro@collabora.com> | 2025-03-17 14:51:43 -0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-03-18 09:00:37 -0700 |
| commit | 134978803ec5f4e4ae5c1d3311896ccd52827851 (patch) | |
| tree | 791179675912c8b227964a58667c38195a8eea6c | |
| parent | 2ec54d32d0aa6a3ef88ecd4d7043041098b107cb (diff) | |
| download | meta-openembedded-134978803ec5f4e4ae5c1d3311896ccd52827851.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>
| -rw-r--r-- | meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.0.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.0.bb b/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.0.bb index d897ddb25d..b3040861f3 100644 --- a/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.0.bb +++ b/meta-multimedia/recipes-multimedia/pipewire/pipewire_1.4.0.bb | |||
| @@ -160,6 +160,14 @@ remove_unused_installed_files() { | |||
| 160 | rm -f "${D}${datadir}/pipewire/minimal.conf" | 160 | rm -f "${D}${datadir}/pipewire/minimal.conf" |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | do_install:append() { | ||
| 164 | # The pipewire-alsa plugin needs the following files in /etc/alsa/conf.d/ to | ||
| 165 | # be picked up by alsa. | ||
| 166 | install -d ${D}${sysconfdir}/alsa/conf.d | ||
| 167 | ln -sf ${datadir}/alsa/alsa.conf.d/50-pipewire.conf ${D}${sysconfdir}/alsa/conf.d/50-pipewire.conf | ||
| 168 | ln -sf ${datadir}/alsa/alsa.conf.d/99-pipewire-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pipewire-default.conf | ||
| 169 | } | ||
| 170 | |||
| 163 | do_install[postfuncs] += "remove_unused_installed_files" | 171 | do_install[postfuncs] += "remove_unused_installed_files" |
| 164 | 172 | ||
| 165 | python split_dynamic_packages () { | 173 | python split_dynamic_packages () { |
| @@ -333,6 +341,8 @@ RDEPENDS:${PN}-pulse += " \ | |||
| 333 | FILES:${PN}-alsa = "\ | 341 | FILES:${PN}-alsa = "\ |
| 334 | ${libdir}/alsa-lib/* \ | 342 | ${libdir}/alsa-lib/* \ |
| 335 | ${datadir}/alsa/alsa.conf.d/* \ | 343 | ${datadir}/alsa/alsa.conf.d/* \ |
| 344 | ${sysconfdir}/alsa/conf.d/50-pipewire.conf \ | ||
| 345 | ${sysconfdir}/alsa/conf.d/99-pipewire-default.conf \ | ||
| 336 | " | 346 | " |
| 337 | 347 | ||
| 338 | # JACK drop-in libraries to redirect audio to pipewire. | 348 | # JACK drop-in libraries to redirect audio to pipewire. |
