mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Changes for auto loader..
This commit is contained in:
parent
9225699798
commit
d0ca621a75
8 changed files with 62 additions and 15 deletions
|
|
@ -60,9 +60,14 @@ int snd_seq_open(void **handle, int mode)
|
|||
snd_seq_t *seq;
|
||||
|
||||
*handle = NULL;
|
||||
|
||||
sprintf(filename, SND_FILE_SEQ);
|
||||
if ((fd = open(filename, mode)) < 0)
|
||||
return -errno;
|
||||
if ((fd = open(filename, mode)) < 0) {
|
||||
/* try load all soundcard modules */
|
||||
snd_cards_mask();
|
||||
if ((fd = open(filename, mode)) < 0)
|
||||
return -errno;
|
||||
}
|
||||
if (ioctl(fd, SND_SEQ_IOCTL_PVERSION, &ver) < 0) {
|
||||
close(fd);
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue