mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-22 06:59:54 -05:00
switch-on-connect: Add a new module to allow for hotplugged devices to be used by default.
This module implements a simply policy decision that any newly plugged in devices should be used. This is a reasonable approach and paprefs will be updated to allow for this option to be turned on or off. This is more or less a stop-gap solution. When priority lists are implemented in the core, then policy modules may ultimately be re-engineered to adjust the priority lists rather than doing any of their own routing per-se.
This commit is contained in:
parent
c083259464
commit
6ed3a7dcc9
2 changed files with 195 additions and 2 deletions
|
|
@ -1051,7 +1051,8 @@ modlibexec_LTLIBRARIES += \
|
|||
module-cork-music-on-phone.la \
|
||||
module-loopback.la \
|
||||
module-virtual-sink.la \
|
||||
module-virtual-source.la
|
||||
module-virtual-source.la \
|
||||
module-switch-on-connect.la
|
||||
|
||||
# See comment at librtp.la above
|
||||
if !OS_IS_WIN32
|
||||
|
|
@ -1338,7 +1339,8 @@ SYMDEF_FILES = \
|
|||
module-dbus-protocol-symdef.h \
|
||||
module-loopback-symdef.h \
|
||||
module-virtual-sink-symdef.h \
|
||||
module-virtual-source-symdef.h
|
||||
module-virtual-source-symdef.h \
|
||||
module-switch-on-connect-symdef.h
|
||||
|
||||
EXTRA_DIST += $(SYMDEF_FILES)
|
||||
BUILT_SOURCES += $(SYMDEF_FILES) builddirs
|
||||
|
|
@ -1480,6 +1482,10 @@ module_combine_la_SOURCES = modules/module-combine.c
|
|||
module_combine_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
module_combine_la_LIBADD = $(MODULE_LIBADD)
|
||||
|
||||
module_switch_on_connect_la_SOURCES = modules/module-switch-on-connect.c
|
||||
module_switch_on_connect_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
module_switch_on_connect_la_LIBADD = $(MODULE_LIBADD)
|
||||
|
||||
module_remap_sink_la_SOURCES = modules/module-remap-sink.c
|
||||
module_remap_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||
module_remap_sink_la_LIBADD = $(MODULE_LIBADD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue