mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	pcm: ioplug - fix the delay calculation for old plugins
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									5988bb3ff4
								
							
						
					
					
						commit
						6cee452eab
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -116,7 +116,7 @@ static int snd_pcm_ioplug_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp)
 | 
				
			||||||
		return io->data->callback->delay(io->data, delayp);
 | 
							return io->data->callback->delay(io->data, delayp);
 | 
				
			||||||
	else {
 | 
						else {
 | 
				
			||||||
		snd_pcm_ioplug_hw_ptr_update(pcm);
 | 
							snd_pcm_ioplug_hw_ptr_update(pcm);
 | 
				
			||||||
		*delayp = snd_pcm_mmap_hw_avail(pcm);
 | 
							*delayp = snd_pcm_mmap_delay(pcm);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue