From 376945dc43599943bc8a19ccf2dcf2bfa7fb2804 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 12 Jan 2022 16:37:36 -0500 Subject: [PATCH] sink, source: Print channel count when reconfiguring Add this as we might reconfigure the number of channels too. --- src/pulsecore/sink.c | 4 ++-- src/pulsecore/source.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index d7f9f26e9..a615922bc 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -1613,8 +1613,8 @@ int pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, pa_channel_map *map, b if (!passthrough && pa_sink_used_by(s) > 0) return -1; - pa_log_debug("Suspending sink %s due to changing format, desired format = %s rate = %u", - s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate); + pa_log_debug("Suspending sink %s due to changing format, desired format = %s rate = %u, channels = %u", + s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate, desired_spec.channels); pa_sink_suspend(s, true, PA_SUSPEND_INTERNAL); /* Keep the old channel map in case it changes */ diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index 22eeb9d34..e5c39196e 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -1177,8 +1177,8 @@ int pa_source_reconfigure(pa_source *s, pa_sample_spec *spec, pa_channel_map *ma if (!passthrough && pa_source_used_by(s) > 0) return -1; - pa_log_debug("Suspending source %s due to changing format, desired format = %s rate = %u", - s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate); + pa_log_debug("Suspending source %s due to changing format, desired format = %s rate = %u, channels = %u", + s->name, pa_sample_format_to_string(desired_spec.format), desired_spec.rate, desired_spec.channels); pa_source_suspend(s, true, PA_SUSPEND_INTERNAL);