[pulseaudio-discuss] [PATCH v1 1/8] bluetooth: Remove stream moving code
Mikel Astiz
mikel.astiz.oss at gmail.com
Thu Oct 18 01:27:15 PDT 2012
From: Mikel Astiz <mikel.astiz at bmw-carit.de>
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 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;
}
--
1.7.11.7
More information about the pulseaudio-discuss
mailing list