mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa: Reduce jitter in irq based software timestamping
We would timestamp within an unlikely block, which would introduce additional jitter to current_time, which would have an impact on the performance of the timer sensitive code.
This commit is contained in:
		
							parent
							
								
									4e24b6e265
								
							
						
					
					
						commit
						32f507d687
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3180,7 +3180,7 @@ static void alsa_wakeup_event(struct spa_source *source)
 | 
			
		|||
	uint64_t expire, current_time;
 | 
			
		||||
	int res, suppressed;
 | 
			
		||||
 | 
			
		||||
	if (SPA_UNLIKELY(state->disable_tsched)) {
 | 
			
		||||
	if (state->disable_tsched) {
 | 
			
		||||
		/* ALSA poll fds need to be "demangled" to know whether it's a real wakeup */
 | 
			
		||||
		int err;
 | 
			
		||||
		unsigned short revents;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue