New autoloading changes..

This commit is contained in:
Jaroslav Kysela 1999-08-02 22:02:14 +00:00
parent 57238d2b86
commit c3ed3f7298

View file

@ -29,6 +29,7 @@
#include "asoundlib.h" #include "asoundlib.h"
#define SND_FILE_SEQ "/dev/snd/seq" #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_VERSION_MAX SND_PROTOCOL_VERSION( 0, 0, 1 )
#define SND_SEQ_OBUF_SIZE (16*1024) /* should be configurable */ #define SND_SEQ_OBUF_SIZE (16*1024) /* should be configurable */
#define SND_SEQ_IBUF_SIZE (4*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); sprintf(filename, SND_FILE_SEQ);
if ((fd = open(filename, mode)) < 0) { if ((fd = open(filename, mode)) < 0) {
/* try load all soundcard modules */ close(open(SND_FILE_ALOADSEQ, O_RDWR));
snd_cards_mask();
if ((fd = open(filename, mode)) < 0) if ((fd = open(filename, mode)) < 0)
return -errno; return -errno;
} }