mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-10-16 10:57:01 +00:00
pipewire: Add platform specific configuration
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> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
1 parent
656c7b9cc4
commit
f2494e1fb6
4 files changed
+58
No files matched your search
+20
@@ -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 \
|
||||
"
|
||||
+17
@@ -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 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
+17
@@ -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 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
PIPEWIRE_TI = ""
|
||||
PIPEWIRE_TI:ti-soc = "pipewire-ti.inc"
|
||||
|
||||
require ${PIPEWIRE_TI}
|
||||
Reference in new issue
Block a user