From: Paresh Bhagat <p-bhagat@ti.com>
To: Yogesh Hegde <y-hegde@ti.com>
Cc: <meta-arago@lists.yoctoproject.org>, <denis@denix.org>,
<reatmon@ti.com>, <v-singh1@ti.com>, <c-shilwant@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: Re: [master/wrynose][PATCH 2/4] recipes-multimedia: Add PipeWire bbappend, service and config files
Date: Wed, 16 Sep 2026 18:00:12 +0530 [thread overview]
Message-ID: <89d344c6-0459-4a0b-bd60-98007c134bd2@ti.com> (raw)
In-Reply-To: <20260910081545.vl276qiry2psvqel@uda1250336>
Hi Yogesh,
On 10/09/26 13:45, Yogesh Hegde wrote:
> Hi Paresh,
>
> On 08:32-20260901, Paresh Bhagat wrote:
>> 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}/
>> +}
> drop the do_install:append, this installs the service file even if systemd absent from the rootfs
> bloating the rootfs. pipewire recipe already installs the service file via systemd class
> `SYSTEMD_SERVICE:${PN} = "pipewire.service"`
do_install:append will be needed here to replace the service file
installed via make and not using recipe.
I will add a check to install the service file only if DISTRO_FEATURES
has systemd.
>
>> +
>> +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}
>
> -- Yogesh
next prev parent reply other threads:[~2026-09-16 12:31 UTC|newest]
Thread overview: 13+ 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 ` [master/wrynose][PATCH 2/4] recipes-multimedia: Add PipeWire bbappend, service and config files Paresh Bhagat
2026-09-02 17:05 ` Ryan Eatmon
2026-09-03 14:56 ` Paresh Bhagat
2026-09-10 8:15 ` Yogesh Hegde
2026-09-16 12:30 ` Paresh Bhagat [this message]
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-16 12:33 ` Paresh Bhagat
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=89d344c6-0459-4a0b-bd60-98007c134bd2@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.