mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Permit to PCM plug configuration to specify unchanged parameters. Added support for RT signals to async interface. Added ops for PCM mix.
This commit is contained in:
		
							parent
							
								
									a5b77b03f6
								
							
						
					
					
						commit
						fcd164e622
					
				
					 15 changed files with 492 additions and 158 deletions
				
			
		| 
						 | 
				
			
			@ -131,6 +131,10 @@ int snd_ctl_new(snd_ctl_t **ctlp, snd_ctl_type_t type, const char *name)
 | 
			
		|||
int snd_ctl_async(snd_ctl_t *ctl, int sig, pid_t pid)
 | 
			
		||||
{
 | 
			
		||||
	assert(ctl);
 | 
			
		||||
	if (sig == 0)
 | 
			
		||||
		sig = SIGIO;
 | 
			
		||||
	if (pid == 0)
 | 
			
		||||
		pid = getpid();
 | 
			
		||||
	return ctl->ops->async(ctl, sig, pid);
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -412,7 +416,7 @@ int snd_async_add_ctl_handler(snd_async_handler_t **handler, snd_ctl_t *ctl,
 | 
			
		|||
	was_empty = list_empty(&ctl->async_handlers);
 | 
			
		||||
	list_add_tail(&h->hlist, &ctl->async_handlers);
 | 
			
		||||
	if (was_empty) {
 | 
			
		||||
		err = snd_ctl_async(ctl, getpid(), SIGIO);
 | 
			
		||||
		err = snd_ctl_async(ctl, getpid(), snd_async_signo);
 | 
			
		||||
		if (err < 0) {
 | 
			
		||||
			snd_async_del_handler(h);
 | 
			
		||||
			return err;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue