forked from HW42/qubes-vmm-xen-stubdom-linux
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/pr/66'
* origin/pr/66: Improve load of modules for dynamic switch init: support core-admin not setting -qubes-audio Unload module vchan if no domid is provided init: support for not loading vchan-sink pulseaudio: add null and always modules Support setting audiovm not being dom0 on start pulseaudio: add pactl inside rootfs
- Loading branch information
Showing
5 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
--- a/src/Makefile.am 2019-12-16 10:08:27.000000000 +0300 | ||
+++ b/src/Makefile.am 2020-05-27 16:19:57.109458668 +0300 | ||
@@ -2301,3 +2301,15 @@ coverage: | ||
diff --git a/src/Makefile.am b/src/Makefile.am | ||
index 454b644bb..c63308790 100644 | ||
--- a/src/Makefile.am | ||
+++ b/src/Makefile.am | ||
@@ -2312,3 +2312,19 @@ coverage: | ||
endif | ||
|
||
.PHONY: massif update-all update-ffmpeg update-map-file coverage | ||
+ | ||
+# vchan sink module | ||
+module_vchan_sink_la_SOURCES = modules/module-vchan-sink.c | ||
+module_vchan_sink_la_LDFLAGS = $(MODULE_LDFLAGS) -lvchan-xen | ||
+module_vchan_sink_la_LDFLAGS = $(MODULE_LDFLAGS) -lvchan-xen | ||
+module_vchan_sink_la_LIBADD = $(MODULE_LIBADD) | ||
+module_vchan_sink_la_CFLAGS = $(AM_CFLAGS) -I/usr/include/vchan-xen -DPA_MODULE_NAME=module_vchan_sink -Dfoomodulepipecustomsymdeffoo | ||
+ | ||
+modlibexec_LTLIBRARIES = libprotocol-native.la \ | ||
+ module-native-protocol-unix.la \ | ||
+ module-vchan-sink.la | ||
+ module-null-sink.la \ | ||
+ module-null-source.la \ | ||
+ module-always-sink.la \ | ||
+ module-always-source.la \ | ||
+ module-vchan-sink.la | ||
+bin_PROGRAMS = pulseaudio pacat pactl | ||
+lib_LTLIBRARIES = libpulse.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# Default to dom0 if called with empty arg | ||
domid="${1:-0}" | ||
|
||
export PULSE_SERVER=unix:/tmp/pa.sock | ||
|
||
for module in module-always-sink module-always-source module-null-sink module-null-source; do | ||
pactl load-module $module || true | ||
done | ||
pactl unload-module module-vchan-sink | ||
|
||
if [ "$domid" -ge 0 ]; then | ||
pactl load-module module-vchan-sink domid="$domid" | ||
pactl set-default-sink vchan_output | ||
pactl set-default-source vchan_input | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec /bin/sh |