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:
parent
39263d8b27
commit
d1d7299545
@ -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:
|
The demo performs the following operations:
|
||||||
|
|
||||||
* setup system parameters
|
* 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
|
* install the ALSA RAVENNA/AES67 module
|
||||||
* start the ptp4l as master clock on the network loopback device
|
* 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
|
* start the AES67 daemon and creates a source and a sink according to the status file in the demo directory
|
||||||
|
10
daemon/scripts/disable_pulseaudio.sh
Executable file
10
daemon/scripts/disable_pulseaudio.sh
Executable 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
|
||||||
|
|
||||||
|
|
@ -41,9 +41,15 @@ trap cleanup EXIT
|
|||||||
|
|
||||||
#configure system parms
|
#configure system parms
|
||||||
sudo sysctl -w net/ipv4/igmp_max_memberships=64
|
sudo sysctl -w net/ipv4/igmp_max_memberships=64
|
||||||
|
|
||||||
#stop pulseaudio, this seems to open/close ALSA continuosly
|
#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.socket > /dev/null 2>&1
|
||||||
systemctl --user stop pulseaudio.sservice > /dev/null 2>&1
|
systemctl --user stop pulseaudio.sservice > /dev/null 2>&1
|
||||||
|
|
||||||
#install kernel module
|
#install kernel module
|
||||||
sudo insmod 3rdparty/ravenna-alsa-lkm/driver/MergingRavennaALSA.ko
|
sudo insmod 3rdparty/ravenna-alsa-lkm/driver/MergingRavennaALSA.ko
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user