From 35aa045f4b948ad607b9aef6d40473800500c6dd Mon Sep 17 00:00:00 2001 From: Zhu Yingjiang Date: Thu, 17 Jan 2019 15:00:14 +0800 Subject: [PATCH] scripts: disable pulseaudio before sof bootloop the pulseaudio trigger a stream at the start, and it interfered with the timing of sof_remove, so disable it at first Signed-off-by: Zhu Yingjiang --- tools/kmod_scripts/sof_bootloop.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/kmod_scripts/sof_bootloop.sh b/tools/kmod_scripts/sof_bootloop.sh index da9296dbe23d..30a0e490870f 100755 --- a/tools/kmod_scripts/sof_bootloop.sh +++ b/tools/kmod_scripts/sof_bootloop.sh @@ -1,5 +1,11 @@ #!/bin/bash +enable_pulseaudio="; autospawn = yes" +disable_pulseaudio=" autospawn = no" + +sed -i "s/$enable_pulseaudio/$disable_pulseaudio/" /etc/pulse/client.conf +killall pulseaudio + set -e MAXLOOPS=100 @@ -11,3 +17,5 @@ while [ $COUNTER -lt $MAXLOOPS ]; do dmesg > boot_$COUNTER.bootlog let COUNTER+=1 done + +sed -i "s/$disable_pulseaudio/$enable_pulseaudio/" /etc/pulse/client.conf