PULSEAUDIO: add support for stm32mp machine
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
This commit is contained in:
1 parent
5f067c84d8
commit
26cbec3723
3 files changed
+229
No files matched your search
@@ -0,0 +1,23 @@
|
||||
FILESEXTRAPATHS_prepend_stm32mpcommon := "${THISDIR}/${PN}:"
|
||||
|
||||
# Pulse audio configuration files
|
||||
SRC_URI_append_stm32mpcommon = " \
|
||||
file://default.pa \
|
||||
file://system.pa \
|
||||
"
|
||||
|
||||
# Pulse audio configuration files installation
|
||||
do_install_append_stm32mpcommon() {
|
||||
if [ -e "${WORKDIR}/default.pa" ]; then
|
||||
install -m 0644 ${WORKDIR}/default.pa ${D}/${sysconfdir}/pulse/default.pa
|
||||
fi
|
||||
|
||||
if [ -e "${WORKDIR}/system.pa" ]; then
|
||||
install -m 0644 ${WORKDIR}/system.pa ${D}/${sysconfdir}/pulse/system.pa
|
||||
fi
|
||||
|
||||
if [ -f ${D}${datadir}/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf ];
|
||||
then
|
||||
sed -i "s|^priority = .*$|priority = 88|g" ${D}${datadir}/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user