Added script to stop PulseAudio, this uses and keeps busy the ALSA playback and capture devices causing troubles.

Added termination of PulseAudio during the demo.
This commit is contained in:
Andrea Bondavalli 2020-01-29 18:51:40 +01:00
parent 39263d8b27
commit d1d7299545
3 changed files with 17 additions and 0 deletions

View File

@ -82,6 +82,7 @@ To run a simple demo use the [run\_demo.sh](run_demo.sh) script. See [script not
The demo performs the following operations:
* setup system parameters
* stop pulse audio, this uses and keeps busy the ALSA playback and capture devices causing troubles
* install the ALSA RAVENNA/AES67 module
* start the ptp4l as master clock on the network loopback device
* start the AES67 daemon and creates a source and a sink according to the status file in the demo directory

View File

@ -0,0 +1,10 @@
#!/bin/bash
echo autospawn = no > $HOME/.config/pulse/client.conf
pulseaudio --kill
rm $HOME/.config/pulse/client.conf
systemctl --user stop pulseaudio.socket > /dev/null 2>&1
systemctl --user stop pulseaudio.sservice > /dev/null 2>&1

View File

@ -41,9 +41,15 @@ trap cleanup EXIT
#configure system parms
sudo sysctl -w net/ipv4/igmp_max_memberships=64
#stop pulseaudio, this seems to open/close ALSA continuosly
echo autospawn = no > $HOME/.config/pulse/client.conf
pulseaudio --kill >/dev/null 2>&1
rm $HOME/.config/pulse/client.conf
#disable pulseaudio
systemctl --user stop pulseaudio.socket > /dev/null 2>&1
systemctl --user stop pulseaudio.sservice > /dev/null 2>&1
#install kernel module
sudo insmod 3rdparty/ravenna-alsa-lkm/driver/MergingRavennaALSA.ko