078b914c2d
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=a41c182c62abf2480b0be2b95493c211
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
From a469d44e6993c4e9e7a53ac91ed53eacb500e279 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Mon, 22 Feb 2010 03:22:28 +0100
|
|
Subject: [PATCH] suspend-on-idle: resume audio device even for initially corked streams
|
|
|
|
We need to resume audio devices even for streams that are created in
|
|
corked stat, so that the latency ranges of the audio device are known
|
|
during the initial latency negotiation. If we don't the latency
|
|
negotiation will be based on placeholder data and changed later on which
|
|
clients do not expect.
|
|
|
|
This should fix issues with Skype.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=554929
|
|
---
|
|
src/modules/module-suspend-on-idle.c | 8 +++-----
|
|
1 files changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/modules/module-suspend-on-idle.c b/src/modules/module-suspend-on-idle.c
|
|
index 7adaa0b..cfb7879 100644
|
|
--- a/src/modules/module-suspend-on-idle.c
|
|
+++ b/src/modules/module-suspend-on-idle.c
|
|
@@ -145,8 +145,9 @@ static pa_hook_result_t sink_input_fixate_hook_cb(pa_core *c, pa_sink_input_new_
|
|
pa_assert(data);
|
|
pa_assert(u);
|
|
|
|
- if (data->flags & PA_SINK_INPUT_START_CORKED)
|
|
- return PA_HOOK_OK;
|
|
+ /* We need to resume the audio device here even for
|
|
+ * PA_SINK_INPUT_START_CORKED, since we need the device parameters
|
|
+ * to be fully available while the stream is set up. */
|
|
|
|
if ((d = pa_hashmap_get(u->device_infos, data->sink)))
|
|
resume(d);
|
|
@@ -161,9 +162,6 @@ static pa_hook_result_t source_output_fixate_hook_cb(pa_core *c, pa_source_outpu
|
|
pa_assert(data);
|
|
pa_assert(u);
|
|
|
|
- if (data->flags & PA_SOURCE_OUTPUT_START_CORKED)
|
|
- return PA_HOOK_OK;
|
|
-
|
|
if (data->source->monitor_of)
|
|
d = pa_hashmap_get(u->device_infos, data->source->monitor_of);
|
|
else
|
|
--
|
|
1.6.0.2
|
|
|