mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa-sink/source: always set reconfiguration callback
Reconfiguration callback should also be set in case of avoiding resampling option. This patch set the callback for every case because the callback has already conditions to leave if it is not needed. Also unnecessary codes of setting alternate sample rate to 0 are removed. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
This commit is contained in:
		
							parent
							
								
									e3b68ee76f
								
							
						
					
					
						commit
						3f6a1c3b4c
					
				
					 4 changed files with 6 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -2110,8 +2110,7 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
 | 
			
		|||
        u->source->set_port = source_set_port_ucm_cb;
 | 
			
		||||
    else
 | 
			
		||||
        u->source->set_port = source_set_port_cb;
 | 
			
		||||
    if (u->source->alternate_sample_rate)
 | 
			
		||||
        u->source->reconfigure = source_reconfigure_cb;
 | 
			
		||||
    u->source->reconfigure = source_reconfigure_cb;
 | 
			
		||||
    u->source->userdata = u;
 | 
			
		||||
 | 
			
		||||
    pa_source_set_asyncmsgq(u->source, u->thread_mq.inq);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue