Skip to content

Commit

Permalink
init: support for not loading vchan-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed May 10, 2024
1 parent b66be4b commit 4d8221f
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions rootfs/init
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,22 @@ if [ -n "$audio_model" ] ; then
fi
export XDG_CONFIG_HOME='/tmp'
pa_args=$'-audiodev\npa,id=qemupa,server=unix:/tmp/pa.sock'$model_args;
pulseaudio --use-pid-file=no --daemonize=no --exit-idle-time=-1 -n \
-L "module-native-protocol-unix auth-anonymous=1 socket=/tmp/pa.sock" \
-L "module-always-sink" \
-L "module-always-source" \
-L "module-null-sink" \
-L "module-null-source" \
-L "module-vchan-sink domid=$domid" &
if [ "$domid" -ge 0 ]; then
pulseaudio --use-pid-file=no --daemonize=no --exit-idle-time=-1 -n \
-L "module-native-protocol-unix auth-anonymous=1 socket=/tmp/pa.sock" \
-L "module-vchan-sink domid=$domid" \
-L "module-always-sink" \
-L "module-always-source" \
-L "module-null-sink" \
-L "module-null-source" &
else
pulseaudio --use-pid-file=no --daemonize=no --exit-idle-time=-1 -n \
-L "module-native-protocol-unix auth-anonymous=1 socket=/tmp/pa.sock" \
-L "module-always-sink" \
-L "module-always-source" \
-L "module-null-sink" \
-L "module-null-source" &
fi
fi

# Extract network parameters and remove them from dm_args
Expand Down

0 comments on commit 4d8221f

Please sign in to comment.