Skip to content

Commit

Permalink
Support setting audiovm not being dom0 on start
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed May 3, 2024
1 parent f19ca08 commit 93fb5e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rootfs/init
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ if test -e /bin/qrexec-agent; then
mdev -d
fi

# Extract audiovm parameter and remove them from dm_args
audio_args=$(echo "$dm_args" | sed -n '/^-qubes-audio:/p')
dm_args=$(echo "$dm_args" | sed '/^-qubes-audio:/d')

domid="$(echo "$audio_args" | sed -n 's/^.*[:,]audiovm_xid=\([^,]\+\).*$/\1/p')"

# add audiodev conf to cmdline and run pulseaudio
audio_model=$(echo "$dm_args" | sed -n '/^\(intel-hda\|ac97\|adlib\|es1370\|cs4231a\|gus\|sb16\)$/ {p}')
if [ -n "$audio_model" ] ; then
Expand All @@ -44,7 +50,7 @@ if [ -n "$audio_model" ] ; then
-L "module-always-source" \
-L "module-null-sink" \
-L "module-null-source" \
-L "module-vchan-sink domid=0" &
-L "module-vchan-sink domid=$domid" &
fi

# Extract network parameters and remove them from dm_args
Expand Down

0 comments on commit 93fb5e8

Please sign in to comment.