mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	New autoloading changes..
This commit is contained in:
		
							parent
							
								
									57238d2b86
								
							
						
					
					
						commit
						c3ed3f7298
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,7 @@
 | 
			
		|||
#include "asoundlib.h"
 | 
			
		||||
 | 
			
		||||
#define SND_FILE_SEQ		"/dev/snd/seq"
 | 
			
		||||
#define SND_FILE_ALOADSEQ	"/dev/aloadSEQ"
 | 
			
		||||
#define SND_SEQ_VERSION_MAX	SND_PROTOCOL_VERSION( 0, 0, 1 )
 | 
			
		||||
#define SND_SEQ_OBUF_SIZE	(16*1024)	/* should be configurable */
 | 
			
		||||
#define SND_SEQ_IBUF_SIZE	(4*1024)	/* should be configurable */
 | 
			
		||||
| 
						 | 
				
			
			@ -63,8 +64,7 @@ int snd_seq_open(snd_seq_t **handle, int mode)
 | 
			
		|||
 | 
			
		||||
	sprintf(filename, SND_FILE_SEQ);
 | 
			
		||||
	if ((fd = open(filename, mode)) < 0) {
 | 
			
		||||
		/* try load all soundcard modules */
 | 
			
		||||
		snd_cards_mask();
 | 
			
		||||
		close(open(SND_FILE_ALOADSEQ, O_RDWR));
 | 
			
		||||
		if ((fd = open(filename, mode)) < 0)
 | 
			
		||||
			return -errno;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue