From 5d34a217ab191735947d3031f54a884aa116478f Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Thu, 19 Jan 2017 13:38:36 +0100 Subject: [PATCH] ccimx6sbc: pulseaudio: change module-suspend-on-idle timeout to 0 In pulseaudio, module-suspend-on-idle controls how much time a sink spends in the 'idle' state before going to 'suspended'. This means the ALSA device associated with the sink stays busy for a few seconds after loading or using the sink. This commit adds the timeout=0 parameter when loading module-suspend-on-idle. Now the sink will go to the 'suspended' state right after being loaded or used. https://jira.digi.com/browse/DEL-2218 Signed-off-by: Gabriel Valcazar --- .../recipes-multimedia/pulseaudio/pulseaudio_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-digi-dey/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend b/meta-digi-dey/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend index 2f322db06..9ebc49186 100644 --- a/meta-digi-dey/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend +++ b/meta-digi-dey/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend @@ -17,6 +17,8 @@ do_install_append_ccimx6sbc() { install -m 0644 ${WORKDIR}/dey-audio-hdmi.conf ${D}${datadir}/pulseaudio/alsa-mixer/profile-sets install -m 0644 ${WORKDIR}/dey-audio-sgtl5000.conf ${D}${datadir}/pulseaudio/alsa-mixer/profile-sets + sed -i -e '/load-module module-suspend-on-idle/{s,$, timeout=0,g}' ${D}${sysconfdir}/pulse/default.pa + cat >> ${D}${base_libdir}/udev/rules.d/90-pulseaudio.rules <<-_EOL_ # Digi ConnectCore 6 SBC HDMI