mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
switch-on-port-available: Add logging for port availability group
This commit is contained in:
parent
329bfe8f20
commit
e81873611c
1 changed files with 6 additions and 2 deletions
|
|
@ -248,13 +248,17 @@ static void switch_to_port(pa_device_port *port) {
|
||||||
*/
|
*/
|
||||||
if (port->available == PA_AVAILABLE_UNKNOWN) {
|
if (port->available == PA_AVAILABLE_UNKNOWN) {
|
||||||
/* Not part of a group of ports, so likely not a combination port */
|
/* 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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* For no we only switch the headphone port */
|
/* 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;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pa_log_debug("Trying to switch to port %s", port->name);
|
pa_log_debug("Trying to switch to port %s", port->name);
|
||||||
if (!pp.is_preferred_profile_active) {
|
if (!pp.is_preferred_profile_active) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue