mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	direct plugins (dmix) - suspend/resume fixes
- this patch adds support for suspend & result for dmix and other direct plugins - the timer detection / initialization (TREAD support) was redesigned and the check for proper driver version was moved to the timer_hw.c
This commit is contained in:
		
							parent
							
								
									7450dbcf36
								
							
						
					
					
						commit
						bac9a7de83
					
				
					 8 changed files with 70 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -434,13 +434,6 @@ static snd_pcm_sframes_t snd_pcm_dshare_forward(snd_pcm_t *pcm, snd_pcm_uframes_
 | 
			
		|||
	return frames;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int snd_pcm_dshare_resume(snd_pcm_t *pcm)
 | 
			
		||||
{
 | 
			
		||||
	snd_pcm_direct_t *dshare = pcm->private_data;
 | 
			
		||||
	snd_pcm_resume(dshare->spcm);
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static snd_pcm_sframes_t snd_pcm_dshare_readi(snd_pcm_t *pcm ATTRIBUTE_UNUSED, void *buffer ATTRIBUTE_UNUSED, snd_pcm_uframes_t size ATTRIBUTE_UNUSED)
 | 
			
		||||
{
 | 
			
		||||
	return -ENODEV;
 | 
			
		||||
| 
						 | 
				
			
			@ -561,7 +554,7 @@ static snd_pcm_fast_ops_t snd_pcm_dshare_fast_ops = {
 | 
			
		|||
	.pause = snd_pcm_dshare_pause,
 | 
			
		||||
	.rewind = snd_pcm_dshare_rewind,
 | 
			
		||||
	.forward = snd_pcm_dshare_forward,
 | 
			
		||||
	.resume = snd_pcm_dshare_resume,
 | 
			
		||||
	.resume = snd_pcm_direct_resume,
 | 
			
		||||
	.link_fd = NULL,
 | 
			
		||||
	.link = NULL,
 | 
			
		||||
	.unlink = NULL,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue