mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Add --disable-aload configure option
Added --disable-aload configure option to suppress probing of /dev/aload* files for auto-loading. These files often conflict with udev mechanism. Also, --with-resmgr is changed to --enable-resmgr.
This commit is contained in:
parent
49c9eba8e4
commit
4ea51d8201
3 changed files with 16 additions and 2 deletions
|
|
@ -52,11 +52,13 @@ int snd_card_load(int card)
|
|||
sprintf(control, SND_FILE_CONTROL, card);
|
||||
|
||||
open_dev = snd_open_device(control, O_RDONLY);
|
||||
#ifdef SUPPORT_ALOAD
|
||||
if (open_dev < 0) {
|
||||
char aload[32];
|
||||
sprintf(aload, SND_FILE_LOAD, card);
|
||||
open_dev = snd_open_device(aload, O_RDONLY);
|
||||
}
|
||||
#endif
|
||||
if (open_dev >= 0) {
|
||||
close (open_dev);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue