[pulseaudio-commits] src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Thu Oct 18 10:08:54 PDT 2012
src/modules/bluetooth/module-bluetooth-device.c | 21 ---------------------
1 file changed, 21 deletions(-)
New commits:
commit 2e303b860001346d0d33d06fadfde9f6f38fe18d
Author: Mikel Astiz <mikel.astiz at bmw-carit.de>
Date: Thu Oct 18 10:27:15 2012 +0200
bluetooth: Remove stream moving code
Remove stream moving policies from module-bluetooth-device. It is not
clear if such policies are needed at all and in case yes, they should be
implemented in module-bluetooth-policy.
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 4a88a08..d78ce8c 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -2188,7 +2188,6 @@ static void restore_sco_volume_callbacks(struct userdata *u) {
static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
struct userdata *u;
enum profile *d;
- pa_queue *inputs = NULL, *outputs = NULL;
pa_assert(c);
pa_assert(new_profile);
@@ -2219,12 +2218,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
}
}
- if (u->sink)
- inputs = pa_sink_move_all_start(u->sink, NULL);
-
- if (u->source)
- outputs = pa_source_move_all_start(u->source, NULL);
-
stop_thread(u);
if (USE_SCO_OVER_PCM(u))
@@ -2242,20 +2235,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
if (u->sink || u->source)
start_thread(u);
- if (inputs) {
- if (u->sink)
- pa_sink_move_all_finish(u->sink, inputs, FALSE);
- else
- pa_sink_move_all_fail(inputs);
- }
-
- if (outputs) {
- if (u->source)
- pa_source_move_all_finish(u->source, outputs, FALSE);
- else
- pa_source_move_all_fail(outputs);
- }
-
return 0;
}
More information about the pulseaudio-commits
mailing list