This patch set uses the message API to implement messages that can control jack detection and port availability. Jack detection can be switched on and off for individual ports or whole cards. The current port state can be queried. Additionally, a port can be forced to some state. This implies switching off jack detection for that port. Because the set depends on the not yet reviewed messaging patches it only implements the basic functionality and does not provide pactl commands. Georg Chini (3): card: add infrastructure to enable/disable jack detection device-port: Add messages to enable/disable jack detection core: prefer available devices during default source/sink selection doc/messaging_api.txt | 22 ++++ src/modules/alsa/alsa-ucm.c | 2 +- src/modules/alsa/module-alsa-card.c | 4 +- src/modules/bluetooth/module-bluez5-device.c | 4 +- src/pulsecore/card.c | 169 ++++++++++++++++++++++++++- src/pulsecore/card.h | 4 + src/pulsecore/core.c | 20 +++- src/pulsecore/device-port.c | 15 ++- src/pulsecore/device-port.h | 5 +- 9 files changed, 234 insertions(+), 11 deletions(-) -- 2.14.1