[PATCH 11/11] alsa: Remove the stream rescue policy from module-alsa-card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 c6f29c6..c8229de 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -207,7 +207,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);
@@ -226,7 +225,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;
         }
@@ -241,7 +239,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;
         }
@@ -258,11 +255,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)
@@ -270,19 +262,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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux