[pulseaudio-discuss] [PATCH v2 10/10] alsa: Remove the stream rescue policy from module-alsa-card
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Mon Dec 9 10:31:47 PST 2013
This logic is now provided by module-skoa-router.
---
src/modules/alsa/module-alsa-card.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 9e22696..103a8fa 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -211,7 +211,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
struct profile_data *nd, *od;
uint32_t idx;
pa_alsa_mapping *am;
- pa_queue *sink_inputs = NULL, *source_outputs = NULL;
pa_assert(c);
pa_assert(new_profile);
@@ -230,7 +229,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
pa_idxset_get_by_data(nd->profile->output_mappings, am, NULL))
continue;
- sink_inputs = pa_sink_move_all_start(am->sink, sink_inputs);
pa_alsa_sink_free(am->sink);
am->sink = NULL;
}
@@ -245,7 +243,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
pa_idxset_get_by_data(nd->profile->input_mappings, am, NULL))
continue;
- source_outputs = pa_source_move_all_start(am->source, source_outputs);
pa_alsa_source_free(am->source);
am->source = NULL;
}
@@ -262,11 +259,6 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
if (!am->sink)
am->sink = pa_alsa_sink_new(c->module, u->modargs, __FILE__, c, am);
-
- if (sink_inputs && am->sink) {
- pa_sink_move_all_finish(am->sink, sink_inputs, false);
- sink_inputs = NULL;
- }
}
if (nd->profile && nd->profile->input_mappings)
@@ -274,19 +266,8 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
if (!am->source)
am->source = pa_alsa_source_new(c->module, u->modargs, __FILE__, c, am);
-
- if (source_outputs && am->source) {
- pa_source_move_all_finish(am->source, source_outputs, false);
- source_outputs = NULL;
- }
}
- if (sink_inputs)
- pa_sink_move_all_fail(sink_inputs);
-
- if (source_outputs)
- pa_source_move_all_fail(source_outputs);
-
return 0;
}
--
1.8.3.1
More information about the pulseaudio-discuss
mailing list