From 2e303b860001346d0d33d06fadfde9f6f38fe18d Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Thu, 18 Oct 2012 10:27:15 +0200 Subject: [PATCH] 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. --- src/modules/bluetooth/module-bluetooth-device.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 4a88a081..d78ce8c5 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; } -- 2.11.4.GIT