diff mbox series

[master/wrynose] recipes-multimedia: Add PipeWire bbappend for config files

Message ID 20260922103002.3723697-1-p-bhagat@ti.com
State New
Headers show
Series [master/wrynose] recipes-multimedia: Add PipeWire bbappend for config files | expand

Commit Message

Paresh Bhagat Sept. 22, 2026, 10:30 a.m. UTC
Extend the PipeWire recipe to add platform-specific ALSA configuration.
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-ti.inc                  | 20 +++++++++++++++++++
 .../am62dxx-evm/90-pipewire-sink.conf         | 17 ++++++++++++++++
 .../am62dxx-evm/91-pipewire-source.conf       | 17 ++++++++++++++++
 .../pipewire/pipewire_%.bbappend              |  4 ++++
 4 files changed, 58 insertions(+)
 create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
 create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
 create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
 create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend

Comments

PRC Automation Sept. 22, 2026, 10:51 a.m. UTC | #1
meta-ti / na / 20260922103002.3723697-1-p-bhagat

PRC Results: FAIL

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [master/wrynose][PATCH] recipes-multimedia: Add PipeWire bbappend for config files
    WARN: Commit message does not include file/recipe name: recipes-multimedia: Add PipeWire bbappend for config files. (COMMIT-MESSAGE-2)
        patch
    
    WARN: Commit message should not include directory path to recipe: recipes-multimedia: Add PipeWire bbappend for config files.
              recipes-multimedia (COMMIT-MESSAGE-3)
        patch
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887



=========================================================
  apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [master/wrynose][PATCH] recipes-multimedia: Add PipeWire bbappend for config files
- Submitter: From: Paresh Bhagat <p-bhagat@ti.com>
- Date: Date: Tue, 22 Sep 2026 16:00:02 +0530
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 254d4c0ecff52e2122d8463f39f56740e856c422

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-wip
- Commit Author: Paresh Bhagat <p-bhagat@ti.com>
- Commit Subject: ti-rtos-fw: Set EdgeAI DSP firmware as default for am62dxx
- Commit SHA: 05fc514db3c998bcf77e5fbabc580d939915aed2

Patches
----------------------------------------
All patches applied

wrynose
=====================
Summary:
- Patch Series: [master/wrynose][PATCH] recipes-multimedia: Add PipeWire bbappend for config files
- Submitter: From: Paresh Bhagat <p-bhagat@ti.com>
- Date: Date: Tue, 22 Sep 2026 16:00:02 +0530
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 254d4c0ecff52e2122d8463f39f56740e856c422

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: wrynose-wip
- Commit Author: Paresh Bhagat <p-bhagat@ti.com>
- Commit Subject: ti-rtos-fw: Set EdgeAI DSP firmware as default for am62dxx
- Commit SHA: 023eaee44f5d5a45ee428c6c49079bf1a3e3c72e

Patches
----------------------------------------
All patches applied



=========================================================
  check-yocto-repo: PASS
=========================================================
master
=====================
PASS

wrynose
=====================
PASS



=========================================================
  yocto-check-layers: FAIL
=========================================================
master - FAIL
=====================
ERROR: No recipes in default available for:

wrynose - PASS
=====================
All checks passed
Ryan Eatmon Sept. 22, 2026, 6:44 p.m. UTC | #2
With this patch in here we will need to add a layer dependency between 
meta-ti-extras and meta-openembedded.  In 
meta-ti/meta-ti-extras/conf/layer.conf you need to add a second patch 
that make this change:

LAYERDEPENDS_meta-ti-extras = " \
     meta-ti-bsp \
     openembedded-layer \
"

Otherwise we will get errors when running the check layer script and 
running afoul of the Yocto Project Compatible requirement.  That's what 
the error in the PRC response is telling us.

Can you send a v2 with a second patch that does this?  Make that patch 
the first patch in the series with this one the second.


On 9/22/2026 5:30 AM, Paresh Bhagat wrote:
> Extend the PipeWire recipe to add platform-specific ALSA configuration.
> 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-ti.inc                  | 20 +++++++++++++++++++
>   .../am62dxx-evm/90-pipewire-sink.conf         | 17 ++++++++++++++++
>   .../am62dxx-evm/91-pipewire-source.conf       | 17 ++++++++++++++++
>   .../pipewire/pipewire_%.bbappend              |  4 ++++
>   4 files changed, 58 insertions(+)
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> 
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> new file mode 100644
> index 00000000..65a82671
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> @@ -0,0 +1,20 @@
> +PR:append = ".ti0"
> +
> +FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
> +
> +# AM62D-specific config files
> +SRC_URI:append:am62dxx-evm = " \
> +    file://90-pipewire-sink.conf \
> +    file://91-pipewire-source.conf \
> +"
> +
> +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}:append:am62dxx-evm = " \
> +    ${sysconfdir}/pipewire/pipewire.conf.d/90-pipewire-sink.conf \
> +    ${sysconfdir}/pipewire/pipewire.conf.d/91-pipewire-source.conf \
> +"
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> new file mode 100644
> index 00000000..857c344e
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> @@ -0,0 +1,17 @@
> +# PipeWire sink 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.path          = "hw:AM62D2EVM,0"
> +            audio.rate             = 48000
> +            audio.channels         = 8
> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> +        }
> +    }
> +]
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> new file mode 100644
> index 00000000..ac7635de
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> @@ -0,0 +1,17 @@
> +# 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.path          = "hw:AM62D2EVM,0"
> +            audio.rate             = 48000
> +            audio.channels         = 8
> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> +        }
> +    }
> +]
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> new file mode 100644
> index 00000000..f806d28f
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> @@ -0,0 +1,4 @@
> +PIPEWIRE_TI = ""
> +PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
> +
> +require ${PIPEWIRE_TI}
Denys Dmytriyenko Sept. 22, 2026, 6:55 p.m. UTC | #3
On Tue, Sep 22, 2026 at 01:44:16PM -0500, Ryan Eatmon wrote:
> 
> With this patch in here we will need to add a layer dependency
> between meta-ti-extras and meta-openembedded.  In
> meta-ti/meta-ti-extras/conf/layer.conf you need to add a second
> patch that make this change:
> 
> LAYERDEPENDS_meta-ti-extras = " \
>     meta-ti-bsp \
>     openembedded-layer \

It's rather multimedia-layer, not openembedded-layer...


> "
> 
> Otherwise we will get errors when running the check layer script and
> running afoul of the Yocto Project Compatible requirement.  That's
> what the error in the PRC response is telling us.
> 
> Can you send a v2 with a second patch that does this?  Make that
> patch the first patch in the series with this one the second.

More generic question - do we want this to be a hard LAYERDEPENDS, or a soft 
LAYERRECOMMENDS with a dynamic layer setup?


> On 9/22/2026 5:30 AM, Paresh Bhagat wrote:
> >Extend the PipeWire recipe to add platform-specific ALSA configuration.
> >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-ti.inc                  | 20 +++++++++++++++++++
> >  .../am62dxx-evm/90-pipewire-sink.conf         | 17 ++++++++++++++++
> >  .../am62dxx-evm/91-pipewire-source.conf       | 17 ++++++++++++++++
> >  .../pipewire/pipewire_%.bbappend              |  4 ++++
> >  4 files changed, 58 insertions(+)
> >  create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> >  create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> >  create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> >  create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> >
> >diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> >new file mode 100644
> >index 00000000..65a82671
> >--- /dev/null
> >+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> >@@ -0,0 +1,20 @@
> >+PR:append = ".ti0"
> >+
> >+FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
> >+
> >+# AM62D-specific config files
> >+SRC_URI:append:am62dxx-evm = " \
> >+    file://90-pipewire-sink.conf \
> >+    file://91-pipewire-source.conf \
> >+"
> >+
> >+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}:append:am62dxx-evm = " \
> >+    ${sysconfdir}/pipewire/pipewire.conf.d/90-pipewire-sink.conf \
> >+    ${sysconfdir}/pipewire/pipewire.conf.d/91-pipewire-source.conf \
> >+"
> >diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> >new file mode 100644
> >index 00000000..857c344e
> >--- /dev/null
> >+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> >@@ -0,0 +1,17 @@
> >+# PipeWire sink 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.path          = "hw:AM62D2EVM,0"
> >+            audio.rate             = 48000
> >+            audio.channels         = 8
> >+            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> >+        }
> >+    }
> >+]
> >diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> >new file mode 100644
> >index 00000000..ac7635de
> >--- /dev/null
> >+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> >@@ -0,0 +1,17 @@
> >+# 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.path          = "hw:AM62D2EVM,0"
> >+            audio.rate             = 48000
> >+            audio.channels         = 8
> >+            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> >+        }
> >+    }
> >+]
> >diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> >new file mode 100644
> >index 00000000..f806d28f
> >--- /dev/null
> >+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> >@@ -0,0 +1,4 @@
> >+PIPEWIRE_TI = ""
> >+PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
> >+
> >+require ${PIPEWIRE_TI}
Ryan Eatmon Sept. 22, 2026, 7:08 p.m. UTC | #4
On 9/22/2026 1:55 PM, Denys Dmytriyenko wrote:
> On Tue, Sep 22, 2026 at 01:44:16PM -0500, Ryan Eatmon wrote:
>>
>> With this patch in here we will need to add a layer dependency
>> between meta-ti-extras and meta-openembedded.  In
>> meta-ti/meta-ti-extras/conf/layer.conf you need to add a second
>> patch that make this change:
>>
>> LAYERDEPENDS_meta-ti-extras = " \
>>      meta-ti-bsp \
>>      openembedded-layer \
> 
> It's rather multimedia-layer, not openembedded-layer...

Doh.  You are right.  I misread the path...


> 
>> "
>>
>> Otherwise we will get errors when running the check layer script and
>> running afoul of the Yocto Project Compatible requirement.  That's
>> what the error in the PRC response is telling us.
>>
>> Can you send a v2 with a second patch that does this?  Make that
>> patch the first patch in the series with this one the second.
> 
> More generic question - do we want this to be a hard LAYERDEPENDS, or a soft
> LAYERRECOMMENDS with a dynamic layer setup?
> 
> 
>> On 9/22/2026 5:30 AM, Paresh Bhagat wrote:
>>> Extend the PipeWire recipe to add platform-specific ALSA configuration.
>>> 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-ti.inc                  | 20 +++++++++++++++++++
>>>   .../am62dxx-evm/90-pipewire-sink.conf         | 17 ++++++++++++++++
>>>   .../am62dxx-evm/91-pipewire-source.conf       | 17 ++++++++++++++++
>>>   .../pipewire/pipewire_%.bbappend              |  4 ++++
>>>   4 files changed, 58 insertions(+)
>>>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
>>>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
>>>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
>>>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
>>>
>>> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
>>> new file mode 100644
>>> index 00000000..65a82671
>>> --- /dev/null
>>> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
>>> @@ -0,0 +1,20 @@
>>> +PR:append = ".ti0"
>>> +
>>> +FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
>>> +
>>> +# AM62D-specific config files
>>> +SRC_URI:append:am62dxx-evm = " \
>>> +    file://90-pipewire-sink.conf \
>>> +    file://91-pipewire-source.conf \
>>> +"
>>> +
>>> +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}:append:am62dxx-evm = " \
>>> +    ${sysconfdir}/pipewire/pipewire.conf.d/90-pipewire-sink.conf \
>>> +    ${sysconfdir}/pipewire/pipewire.conf.d/91-pipewire-source.conf \
>>> +"
>>> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
>>> new file mode 100644
>>> index 00000000..857c344e
>>> --- /dev/null
>>> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
>>> @@ -0,0 +1,17 @@
>>> +# PipeWire sink 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.path          = "hw:AM62D2EVM,0"
>>> +            audio.rate             = 48000
>>> +            audio.channels         = 8
>>> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
>>> +        }
>>> +    }
>>> +]
>>> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
>>> new file mode 100644
>>> index 00000000..ac7635de
>>> --- /dev/null
>>> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
>>> @@ -0,0 +1,17 @@
>>> +# 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.path          = "hw:AM62D2EVM,0"
>>> +            audio.rate             = 48000
>>> +            audio.channels         = 8
>>> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
>>> +        }
>>> +    }
>>> +]
>>> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
>>> new file mode 100644
>>> index 00000000..f806d28f
>>> --- /dev/null
>>> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
>>> @@ -0,0 +1,4 @@
>>> +PIPEWIRE_TI = ""
>>> +PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
>>> +
>>> +require ${PIPEWIRE_TI}
Ryan Eatmon Sept. 22, 2026, 9:23 p.m. UTC | #5
Ok.  Denys and I were discussing this and we have a few changes for this 
patch series that we would like to see.

1) This can move to meta-ti-bsp so that is easier to get into users' hands.
2) When it moves to meta-ti-bsp move it into a dynamic-layer for 
multimedia-layer and add multimedia-layer to the 
LAYERRECOMMENDS_meta-ti-bsp set of layers.
3) Make sure to layer the changes into multiple patches and not just 
glob them all into one.
   a) Create the dynamic layer directory and update layer.conf
   b) Add the pipewire bbappend (the current patch) to the dynamic layer 
directory.

I think that will be cleanest formation for this.

Do all that for a v2 please.


On 9/22/2026 5:30 AM, Paresh Bhagat wrote:
> Extend the PipeWire recipe to add platform-specific ALSA configuration.
> 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-ti.inc                  | 20 +++++++++++++++++++
>   .../am62dxx-evm/90-pipewire-sink.conf         | 17 ++++++++++++++++
>   .../am62dxx-evm/91-pipewire-source.conf       | 17 ++++++++++++++++
>   .../pipewire/pipewire_%.bbappend              |  4 ++++
>   4 files changed, 58 insertions(+)
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
>   create mode 100644 meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> 
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> new file mode 100644
> index 00000000..65a82671
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
> @@ -0,0 +1,20 @@
> +PR:append = ".ti0"
> +
> +FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
> +
> +# AM62D-specific config files
> +SRC_URI:append:am62dxx-evm = " \
> +    file://90-pipewire-sink.conf \
> +    file://91-pipewire-source.conf \
> +"
> +
> +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}:append:am62dxx-evm = " \
> +    ${sysconfdir}/pipewire/pipewire.conf.d/90-pipewire-sink.conf \
> +    ${sysconfdir}/pipewire/pipewire.conf.d/91-pipewire-source.conf \
> +"
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> new file mode 100644
> index 00000000..857c344e
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
> @@ -0,0 +1,17 @@
> +# PipeWire sink 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.path          = "hw:AM62D2EVM,0"
> +            audio.rate             = 48000
> +            audio.channels         = 8
> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> +        }
> +    }
> +]
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> new file mode 100644
> index 00000000..ac7635de
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
> @@ -0,0 +1,17 @@
> +# 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.path          = "hw:AM62D2EVM,0"
> +            audio.rate             = 48000
> +            audio.channels         = 8
> +            audio.position         = [ FL FR FC LFE RL RR SL SR ]
> +        }
> +    }
> +]
> diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> new file mode 100644
> index 00000000..f806d28f
> --- /dev/null
> +++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
> @@ -0,0 +1,4 @@
> +PIPEWIRE_TI = ""
> +PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
> +
> +require ${PIPEWIRE_TI}
diff mbox series

Patch

diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
new file mode 100644
index 00000000..65a82671
--- /dev/null
+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire-ti.inc
@@ -0,0 +1,20 @@ 
+PR:append = ".ti0"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
+
+# AM62D-specific config files
+SRC_URI:append:am62dxx-evm = " \
+    file://90-pipewire-sink.conf \
+    file://91-pipewire-source.conf \
+"
+
+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}:append:am62dxx-evm = " \
+    ${sysconfdir}/pipewire/pipewire.conf.d/90-pipewire-sink.conf \
+    ${sysconfdir}/pipewire/pipewire.conf.d/91-pipewire-source.conf \
+"
diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
new file mode 100644
index 00000000..857c344e
--- /dev/null
+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/90-pipewire-sink.conf
@@ -0,0 +1,17 @@ 
+# PipeWire sink 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.path          = "hw:AM62D2EVM,0"
+            audio.rate             = 48000
+            audio.channels         = 8
+            audio.position         = [ FL FR FC LFE RL RR SL SR ]
+        }
+    }
+]
diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
new file mode 100644
index 00000000..ac7635de
--- /dev/null
+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire/am62dxx-evm/91-pipewire-source.conf
@@ -0,0 +1,17 @@ 
+# 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.path          = "hw:AM62D2EVM,0"
+            audio.rate             = 48000
+            audio.channels         = 8
+            audio.position         = [ FL FR FC LFE RL RR SL SR ]
+        }
+    }
+]
diff --git a/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
new file mode 100644
index 00000000..f806d28f
--- /dev/null
+++ b/meta-ti-extras/recipes-multimedia/pipewire/pipewire_%.bbappend
@@ -0,0 +1,4 @@ 
+PIPEWIRE_TI = ""
+PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
+
+require ${PIPEWIRE_TI}