mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	echo-cancel: Fix missing setup of sink_ss in echo-cancel-test.
In main() of echo-cancel-test it is wrongly assumed that the EC implementation's init() function properly initializes sink_ss. In contrast, pa__init() sets sink_ss by default to sink_master->sample_spec. Fix this by setting sink_ss to default parameters and let EC implementation's init() override these settings. Signed-off-by: Stefan Huber <s.huber@bct-electronic.com> Acked-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
		
							parent
							
								
									a99e31fb6b
								
							
						
					
					
						commit
						fc9ad93bb4
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -2104,6 +2104,11 @@ int main(int argc, char* argv[]) {
 | 
				
			||||||
    source_ss.channels = DEFAULT_CHANNELS;
 | 
					    source_ss.channels = DEFAULT_CHANNELS;
 | 
				
			||||||
    pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
					    pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    sink_ss.format = PA_SAMPLE_S16LE;
 | 
				
			||||||
 | 
					    sink_ss.rate = DEFAULT_RATE;
 | 
				
			||||||
 | 
					    sink_ss.channels = DEFAULT_CHANNELS;
 | 
				
			||||||
 | 
					    pa_channel_map_init_auto(&sink_map, sink_ss.channels, PA_CHANNEL_MAP_DEFAULT);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (init_common(ma, &u, &source_ss, &source_map) < 0)
 | 
					    if (init_common(ma, &u, &source_ss, &source_map) < 0)
 | 
				
			||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue