Re: [meta-arago] [master][RFC PATCH v2 1/3] recipes-multimedia: Add pipewire configuration files

Andrew Davis <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arago
Message-ID <[email protected]>
On 2/10/26 12:36 PM, Denys Dmytriyenko wrote:
> On Tue, Feb 10, 2026 at 09:21:59PM +0530, Paresh Bhagat wrote:
>> - Add 90-pipewire-sink.conf and 91-pipewire-source.conf for stereo AM62*
>>    audio playback and capture.
>> - Add 90-pipewire-sink.conf and 91-pipewire-source.conf for 8 channel
>>    audio playback and capture.
>> - Add pipewire_%.bbappend recipe extension
>>
>> Signed-off-by: Paresh Bhagat <[email protected]>
>> ---
>>   .../pipewire/pipewire/90-pipewire-sink.conf   | 19 +++++++++++++++++++
>>   .../pipewire/pipewire/91-pipewire-source.conf | 19 +++++++++++++++++++
>>   .../am62dxx-evm/90-pipewire-sink.conf         | 19 +++++++++++++++++++
>>   .../am62dxx-evm/91-pipewire-source.conf       | 19 +++++++++++++++++++
>>   .../pipewire/pipewire_%.bbappend              | 17 +++++++++++++++++
>>   5 files changed, 93 insertions(+)
>>   create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire/90-pipewire-sink.conf
>>   create mode 100644 meta-arago-distro/recipes-multimedia/pipewire/pipewire/91-pipewire-source.conf
>>   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_%.bbappend
>>
>> diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire/90-pipewire-sink.conf b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/90-pipewire-sink.conf
>> new file mode 100644
>> index 00000000..72562018
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/90-pipewire-sink.conf
>> @@ -0,0 +1,19 @@
>> +# Pipeeire sink configuration for AM62x, AM62A, AM62P and other AM62 variants (excluding AM62D).
>> +
>> +context.objects = [
>> +    {
>> +        factory = adapter
>> +        args = {
>> +            factory.name     = api.alsa.pcm.sink
>> +            node.name        = "alsa_audio_sink"
>> +            node.description = "Generic Audio Output"
>> +            media.class      = "Audio/Sink"
>> +
>> +            api.alsa.path = "hw:0,0"
>> +            api.alsa.disable-mmap = true
>> +
>> +            audio.channels = 2
>> +            audio.position = [ FL FR ]
>> +        }
>> +    }
>> +]
>> diff --git a/meta-arago-distro/recipes-multimedia/pipewire/pipewire/91-pipewire-source.conf b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/91-pipewire-source.conf
>> new file mode 100644
>> index 00000000..2079746e
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/91-pipewire-source.conf
>> @@ -0,0 +1,19 @@
>> +# Pipewire source configuration for AM62x, AM62A, AM62P and other AM62 variants (excluding AM62D).
>> +
>> +context.objects = [
>> +    {
>> +        factory = adapter
>> +        args = {
>> +            factory.name     = api.alsa.pcm.source
>> +            node.name        = "alsa_audio_source"
>> +            node.description = "Generic Audio Capture"
>> +            media.class      = "Audio/Source"
>> +
>> +            api.alsa.path = "hw:0,0"
>> +            api.alsa.disable-mmap = true
>> +
>> +            audio.channels = 2
>> +            audio.position = [ FL FR ]
>> +        }
>> +    }
>> +]
>> 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..9251a2d3
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> 
> Should the file be inside am62dxx/ instead of am62dxx-evm/ to apply to all
> AM62D machines, not just the EVM?
> 

I don't think so, the audio codecs and channels are based on the board, not based
on the SoC, could be an AM62D based board with only 2 channels for instance.

Andrew

> 
>> @@ -0,0 +1,19 @@
>> +# Pipewire source configuration for AM62D.
>> +
>> +context.objects = [
>> +    {
>> +        factory = adapter
>> +        args = {
>> +            factory.name     = api.alsa.pcm.sink
>> +            node.name        = "alsa_audio_sink"
>> +            node.description = "Multi-DAC 8ch Output"
>> +            media.class      = "Audio/Sink"
>> +
>> +            api.alsa.path = "hw:0,0"
>> +            api.alsa.disable-mmap = true
>> +
>> +            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..36112dc5
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> 
> Same comment.
> 
> 
>> @@ -0,0 +1,19 @@
>> +# Pipewire source configuration for AM62D.
>> +
>> +context.objects = [
>> +    {
>> +        factory = adapter
>> +        args = {
>> +            factory.name     = api.alsa.pcm.source
>> +            node.name        = "alsa_audio_source"
>> +            node.description = "ALSA 8ch Capture"
>> +            media.class      = "Audio/Source"
>> +
>> +            api.alsa.path = "hw:0,0"
>> +            api.alsa.disable-mmap = true
>> +
>> +            audio.channels = 8
>> +            audio.position = [ FL FR FC LFE RL RR SL SR ]
>> +        }
>> +    }
>> +]
>> 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..fdce686c
>> --- /dev/null
>> +++ b/meta-arago-distro/recipes-multimedia/pipewire/pipewire_%.bbappend
> 
> Any bbappend for upstream recipes should be properly guarded for YP Compat.
> 
> 
>> @@ -0,0 +1,17 @@
>> +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
>> +
>> +SRC_URI:append = " \
>> +    file://90-pipewire-sink.conf \
>> +    file://91-pipewire-source.conf \
>> +"
>> +
>> +do_install:append() {
>> +    install -d ${D}${sysconfdir}/pipewire/pipewire.conf.d
>> +    install -m 0644 ${WORKDIR}/sources/90-pipewire-sink.conf ${D}${sysconfdir}/pipewire/pipewire.conf.d/
>> +    install -m 0644 ${WORKDIR}/sources/91-pipewire-source.conf ${D}${sysconfdir}/pipewire/pipewire.conf.d/
> 
> In master, please use ${UNPACKDIR} instead of ${WORKDIR}/sources
> 
> 
>> +}
>> +
>> +FILES:${PN} += " ${sysconfdir}"
>> +
>> +PACKAGECONFIG:append:pn-pipewire = " pipewire-jack"
>> +PACKAGECONFIG:remove:pn-pipewire = "jack"
> 
> This syntax I gave you in the beginning was meant for the arago.conf global
> distro configuration, where you need to specify :pn-pipewire - if you are
> making these changes locally in this bbappend, then you don't need the package
> specifying override...
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#17100): https://lists.yoctoproject.org/g/meta-arago/message/17100
> Mute This Topic: https://lists.yoctoproject.org/mt/117740046/3619733
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.