From: Paresh Bhagat <p-bhagat@ti.com>
To: <meta-arago@lists.yoctoproject.org>
Cc: <denis@denix.org>, <reatmon@ti.com>, <v-singh1@ti.com>,
<c-shilwant@ti.com>, <y-hegde@ti.com>, <afd@ti.com>,
<j-sahu@ti.com>, <praneeth@ti.com>, <s-sinha@ti.com>,
<s-kapoor@ti.com>, <p-gupta5@ti.com>, <r-soni@ti.com>,
<sen@ti.com>
Subject: [master/wrynose][PATCH 2/4] recipes-multimedia: Add PipeWire bbappend, service and config files
Date: Tue, 1 Sep 2026 08:32:31 +0530 [thread overview]
Message-ID: <20260901030233.686017-3-p-bhagat@ti.com> (raw)
In-Reply-To: <20260901030233.686017-1-p-bhagat@ti.com>
Extend the PipeWire recipe to add platform-specific ALSA configuration
and service file. Service file added to start PipeWire as a system
service with proper socket dependency.
Add sink and source configuration for 8-channel audio playback and
capture on the AM62D2EVM as the default configuration is 2-channel.
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
.../pipewire/pipewire-arago.inc | 28 +++++++++++++++++++
.../am62dxx-evm/90-pipewire-sink.conf | 21 ++++++++++++++
.../am62dxx-evm/91-pipewire-source.conf | 21 ++++++++++++++
.../pipewire/pipewire/pipewire.service | 26 +++++++++++++++++
.../pipewire/pipewire_%.bbappend | 4 +++
5 files changed, 100 insertions(+)
create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire-arago.inc
create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire/pipewire.service
create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire_%.bbappend
diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire-arago.inc b/meta-arago-distro/recipes-multimedia/pipewire/pipewire-arago.inc
new file mode 100644
index 00000000..b3e0c555
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire-arago.inc
@@ -0,0 +1,28 @@
+PR:append = ".arago1"
+
+# Pipewire service for all platforms
+FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
+SRC_URI:append = " file://pipewire.service"
+
+# AM62D-specific config files
+FILESEXTRAPATHS:prepend:am62dxx-evm := "${THISDIR}/pipewire:"
+SRC_URI:append:am62dxx-evm = " \
+ file://90-pipewire-sink.conf \
+ file://91-pipewire-source.conf \
+"
+
+do_install:append() {
+ install -d ${D}${systemd_system_unitdir}
+ install -m 0644 ${UNPACKDIR}/pipewire.service ${D}${systemd_system_unitdir}/
+}
+
+do_install:append:am62dxx-evm() {
+ install -d ${D}${sysconfdir}/pipewire/pipewire.conf.d
+ install -m 0644 ${UNPACKDIR}/90-pipewire-sink.conf ${D}${sysconfdir}/pipewire/pipewire.conf.d/
+ install -m 0644 ${UNPACKDIR}/91-pipewire-source.conf ${D}${sysconfdir}/pipewire/pipewire.conf.d/
+}
+
+FILES:${PN} += " ${sysconfdir}"
+
+PACKAGECONFIG:append = " pipewire-jack"
+PACKAGECONFIG:remove = "jack"
diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
new file mode 100644
index 00000000..86481af6
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
@@ -0,0 +1,21 @@
+# PipeWire source configuration for AM62D.
+
+context.objects = [
+ {
+ factory = adapter
+ args = {
+ factory.name = api.alsa.pcm.sink
+ node.name = "alsa_audio_sink"
+ node.description = "Audio Output"
+ media.class = "Audio/Sink"
+ api.alsa.period-size = 1024
+ api.alsa.headroom = 0
+ api.alsa.disable-mmap = false
+ api.alsa.disable-batch = false
+ api.alsa.path = "hw:AM62D2EVM,0"
+ audio.rate = 48000
+ audio.channels = 8
+ audio.position = [ FL FR FC LFE RL RR SL SR ]
+ }
+ }
+]
diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
new file mode 100644
index 00000000..71b7ec76
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
@@ -0,0 +1,21 @@
+# PipeWire source configuration for AM62D.
+
+context.objects = [
+ {
+ factory = adapter
+ args = {
+ factory.name = api.alsa.pcm.source
+ node.name = "alsa_audio_source"
+ node.description = "Audio Input"
+ media.class = "Audio/Source"
+ api.alsa.period-size = 1024
+ api.alsa.headroom = 0
+ api.alsa.disable-mmap = false
+ api.alsa.disable-batch = false
+ api.alsa.path = "hw:AM62D2EVM,0"
+ audio.rate = 48000
+ audio.channels = 8
+ audio.position = [ FL FR FC LFE RL RR SL SR ]
+ }
+ }
+]
diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire/pipewire.service b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/pipewire.service
new file mode 100644
index 00000000..c26bf93f
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/pipewire.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=PipeWire Multimedia Service
+# Ensure kernel modules are loaded and udev has finished device processing
+After=systemd-modules-load.service systemd-udev-settle.service
+
+Requires=pipewire.socket
+
+[Service]
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
+NoNewPrivileges=yes
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+Type=simple
+AmbientCapabilities=CAP_SYS_NICE
+ExecStart=/usr/bin/pipewire
+Restart=on-failure
+RestartSec=2
+RuntimeDirectory=pipewire
+RuntimeDirectoryPreserve=yes
+User=pipewire
+Environment=PIPEWIRE_RUNTIME_DIR=%t/pipewire
+
+[Install]
+Also=pipewire.socket pipewire-manager.socket
+WantedBy=default.target
\ No newline at end of file
diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-arago-distro/recipes-multimedia/pipewire/pipewire_%.bbappend
new file mode 100644
index 00000000..dc32422b
--- /dev/null
+++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire_%.bbappend
@@ -0,0 +1,4 @@
+PIPEWIRE_ARAGO = ""
+PIPEWIRE_ARAGO:arago = "pipewire-arago.inc"
+
+require ${PIPEWIRE_ARAGO}
--
2.34.1
next prev parent reply other threads:[~2026-09-01 3:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 3:02 [master/wrynose][PATCH 0/4] Add PipeWire audio stack Paresh Bhagat
2026-09-01 3:02 ` [master/wrynose][PATCH 1/4] packagegroup-arago-connectivity: Remove pulseaudio Paresh Bhagat
2026-09-01 3:02 ` Paresh Bhagat [this message]
2026-09-02 17:05 ` [master/wrynose][PATCH 2/4] recipes-multimedia: Add PipeWire bbappend, service and config files Ryan Eatmon
2026-09-03 14:56 ` Paresh Bhagat
2026-09-10 8:15 ` Yogesh Hegde
2026-09-01 3:02 ` [master/wrynose][PATCH 3/4] recipes-multimedia: Add wireplumber audio configuration Paresh Bhagat
2026-09-10 8:29 ` Yogesh Hegde
2026-09-01 3:02 ` [master/wrynose][PATCH 4/4] recipes-core: arago-default-image: Add PipeWire audio stack Paresh Bhagat
2026-09-10 8:32 ` Yogesh Hegde
2026-09-01 3:25 ` [master/wrynose][PATCH 0/4] " PRC Automation
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260901030233.686017-3-p-bhagat@ti.com \
--to=p-bhagat@ti.com \
--cc=afd@ti.com \
--cc=c-shilwant@ti.com \
--cc=denis@denix.org \
--cc=j-sahu@ti.com \
--cc=meta-arago@lists.yoctoproject.org \
--cc=p-gupta5@ti.com \
--cc=praneeth@ti.com \
--cc=r-soni@ti.com \
--cc=reatmon@ti.com \
--cc=s-kapoor@ti.com \
--cc=s-sinha@ti.com \
--cc=sen@ti.com \
--cc=v-singh1@ti.com \
--cc=y-hegde@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.