mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-10-22 13:48:18 +00:00
pipewire: Set default audio targets and use S16LE format
Configure PipeWire metadata to statically initialize default audio targets sink and source at daemon startup, by leveraging WirePlumber's find-selected-default-node hook priority. Also update audio format to 16-bit signed little-endian and audio position for AM62d. Signed-off-by: Paresh Bhagat <p-bhagat@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
1 parent
7aa193babe
commit
0c84bb72c1
4 files changed
+31
-2
No files matched your search
+3
@@ -6,15 +6,18 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/pipewire:"
|
||||
SRC_URI:append:am62dxx-evm = " \
|
||||
file://90-pipewire-sink.conf \
|
||||
file://91-pipewire-source.conf \
|
||||
file://92-pipewire-defaults.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/
|
||||
install -m 0644 ${UNPACKDIR}/92-pipewire-defaults.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 \
|
||||
${sysconfdir}/pipewire/pipewire.conf.d/92-pipewire-defaults.conf \
|
||||
"
|
||||
+2
-1
@@ -11,7 +11,8 @@ context.objects = [
|
||||
api.alsa.path = "hw:AM62D2EVM,0"
|
||||
audio.rate = 48000
|
||||
audio.channels = 8
|
||||
audio.position = [ FL FR FC LFE RL RR SL SR ]
|
||||
audio.format = "S16LE"
|
||||
audio.position = [ FL FR RL RR FC LFE SL SR ]
|
||||
}
|
||||
}
|
||||
]
|
||||
+2
-1
@@ -11,7 +11,8 @@ context.objects = [
|
||||
api.alsa.path = "hw:AM62D2EVM,0"
|
||||
audio.rate = 48000
|
||||
audio.channels = 8
|
||||
audio.position = [ FL FR FC LFE RL RR SL SR ]
|
||||
audio.format = "S16LE"
|
||||
audio.position = [ FL FR RL RR FC LFE SL SR ]
|
||||
}
|
||||
}
|
||||
]
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
# Default target nodes for AM62D.
|
||||
|
||||
context.objects = [
|
||||
{
|
||||
factory = metadata
|
||||
args = {
|
||||
metadata.name = default
|
||||
metadata.values = [
|
||||
{
|
||||
key = "default.configured.audio.sink"
|
||||
value = {
|
||||
name = "alsa_audio_sink"
|
||||
}
|
||||
}
|
||||
{
|
||||
key = "default.configured.audio.source"
|
||||
value = {
|
||||
name = "alsa_audio_source"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user