In some cases, the I/O connector functionality can be shared and we cannot determine the proper purpose automatically. We just know that something was inserted to the jack.
Introduce a group identifier (a simple string - unique per group) which helps to determine the proper ports for the application. The user interface may be used to set the wanted behaviour.
861836c5f device-port: introduce available_group member
configure.ac | 2 +-
src/modules/module-tunnel.c | 12 +++++++++---
src/pulse/introspect.c | 16 +++++++++++++++-
src/pulse/introspect.h | 3 +++
src/pulsecore/device-port.c | 11 +++++++++++
src/pulsecore/device-port.h | 3 +++
src/pulsecore/protocol-native.c | 15 ++++++++++++---
7 files changed, 54 insertions(+), 8 deletions(-)