diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2020-11-19 21:45:40 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2020-11-21 14:36:51 +0000 |
commit | e81873611ca280c17619a08bea2c3ab20e2080fc (patch) | |
tree | 4acfe79738f5fc97105848aa1e8310c36fffe717 | |
parent | 329bfe8f20f6a728ff7ccab290d2b18f42b02fc4 (diff) | |
download | pulseaudio-e81873611ca280c17619a08bea2c3ab20e2080fc.tar.gz |
switch-on-port-available: Add logging for port availability group
-rw-r--r-- | src/modules/module-switch-on-port-available.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c index 90a01c8fb..a7259cfad 100644 --- a/src/modules/module-switch-on-port-available.c +++ b/src/modules/module-switch-on-port-available.c @@ -248,12 +248,16 @@ static void switch_to_port(pa_device_port *port) { */ if (port->available == PA_AVAILABLE_UNKNOWN) { /* Not part of a group of ports, so likely not a combination port */ - if (!port->availability_group) + if (!port->availability_group) { + pa_log_debug("Not switching to port %s, its availability is unknown and it's not in any availability group.", port->name); return; + } /* For no we only switch the headphone port */ - if (port->direction != PA_DIRECTION_OUTPUT) + if (port->direction != PA_DIRECTION_OUTPUT) { + pa_log_debug("Not switching to input port %s, its availability is unknown.", port->name); return; + } } pa_log_debug("Trying to switch to port %s", port->name); |