mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									9e1627e2a3
								
							
						
					
					
						commit
						2e303b8600
					
				
					 1 changed files with 0 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue