[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] 2 commits: module-alsa-card: Add debug logging if availability group was pruned
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Sat Nov 21 14:42:18 UTC 2020
Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio
Commits:
329bfe8f by Igor V. Kovalenko at 2020-11-21T14:36:51+00:00
module-alsa-card: Add debug logging if availability group was pruned
- - - - -
e8187361 by Igor V. Kovalenko at 2020-11-21T14:36:51+00:00
switch-on-port-available: Add logging for port availability group
- - - - -
2 changed files:
- src/modules/alsa/module-alsa-card.c
- src/modules/module-switch-on-port-available.c
Changes:
=====================================
src/modules/alsa/module-alsa-card.c
=====================================
@@ -701,6 +701,8 @@ static void prune_singleton_availability_groups(pa_hashmap *ports) {
PA_HASHMAP_FOREACH(p, ports, state) {
if (p->availability_group && !pa_hashmap_get(group_counts, p->availability_group)) {
+ pa_log_debug("Pruned singleton availability group %s from port %s", p->availability_group, p->name);
+
pa_xfree(p->availability_group);
p->availability_group = NULL;
}
=====================================
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);
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/89a53e1b7184ebfd25298396a32d70564799752a...e81873611ca280c17619a08bea2c3ab20e2080fc
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/89a53e1b7184ebfd25298396a32d70564799752a...e81873611ca280c17619a08bea2c3ab20e2080fc
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20201121/00714d01/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list