From: Jaroslav Kysela Date: Mon, 2 Aug 1999 22:02:14 +0000 (+0000) Subject: New autoloading changes.. X-Git-Tag: v1.0.3~1452 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c3ed3f72987682431b764f2f6478cc9a96b9eb29;p=alsa-lib.git New autoloading changes.. --- diff --git a/src/seq/seq.c b/src/seq/seq.c index 4b3e4642..584b7298 100644 --- a/src/seq/seq.c +++ b/src/seq/seq.c @@ -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; }