Revert "meta-digi-dey: pulseaudio: add HDMI audio sink on hotplug"

When module-alsa-sink is used, the audio is sometimes heard with
reverb. We will go back to module-udev-detect, so the functionality
introduced in the commit being reverted won't longer work.

This reverts commit fca507d316.

https://jira.digi.com/browse/DEL-2587

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2016-07-14 17:16:42 +02:00
parent 8952bc58de
commit b67d7e02e9
2 changed files with 0 additions and 32 deletions

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# Called from udev on HDMI plug/unplug event
# Find HDMI card number
for card in /sys/class/sound/card*; do
if readlink ${card}/device | grep -qs hdmi; then
HDMI_CARD="${card##/sys/class/sound/card}"
fi
done
# On HDMI plugin event, if the sink has not been loaded yet, load the
# HDMI audio sink from ALSA
if [ "${EVENT}" = "plugin" ]; then
if ! pactl list sinks | grep -qs "imx-hdmi-soc"; then
pactl load-module module-alsa-sink device=hw:${HDMI_CARD}
fi
fi

View File

@ -1,16 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://hdmi_hotplug.sh"
# Do not include module-udev-detect so that module-detect is used instead
RDEPENDS_pulseaudio-server_remove = "pulseaudio-module-udev-detect"
do_install_append() {
install -d ${D}${sysconfdir}/udev/scripts
install -m 0755 ${WORKDIR}/hdmi_hotplug.sh ${D}${sysconfdir}/udev/scripts
cat >> ${D}${base_libdir}/udev/rules.d/90-pulseaudio.rules <<-_EOL_
SUBSYSTEM=="platform", KERNEL=="*hdmi_video", ACTION=="change", RUN+="/etc/udev/scripts/hdmi_hotplug.sh"
_EOL_
}