mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Cleaned the mmap_commit implementations in plugins.
Added undo callbacks for snd_pcm_plugin based plugins. - helpers when mmap_commit proceed only a partial transfer Fixes to avail_update implementation in pcm_hw.c.
This commit is contained in:
		
							parent
							
								
									9b0eebbcb7
								
							
						
					
					
						commit
						e128bf856e
					
				
					 22 changed files with 260 additions and 120 deletions
				
			
		| 
						 | 
				
			
			@ -781,10 +781,13 @@ int snd_pcm_route_open(snd_pcm_t **pcmp, const char *name,
 | 
			
		|||
	if (!route) {
 | 
			
		||||
		return -ENOMEM;
 | 
			
		||||
	}
 | 
			
		||||
	snd_pcm_plugin_init(&route->plug);
 | 
			
		||||
	route->sformat = sformat;
 | 
			
		||||
	route->schannels = schannels;
 | 
			
		||||
	route->plug.read = snd_pcm_route_read_areas;
 | 
			
		||||
	route->plug.write = snd_pcm_route_write_areas;
 | 
			
		||||
	route->plug.undo_read = snd_pcm_plugin_undo_read_generic;
 | 
			
		||||
	route->plug.undo_write = snd_pcm_plugin_undo_write_generic;
 | 
			
		||||
	route->plug.slave = slave;
 | 
			
		||||
	route->plug.close_slave = close_slave;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue