static int __init alsa_card_gusmax_init(void) { static unsigned long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260, -1}; int dev, cards; for (dev = cards = 0; dev < SNDRV_CARDS && enable[dev] > 0; dev++) { if (port[dev] == SNDRV_AUTO_PORT) continue; if (snd_gusmax_probe(dev) >= 0) cards++; } cards += snd_legacy_auto_probe(possible_ports, snd_gusmax_legacy_auto_probe); if (!cards) { #ifdef MODULE printk(KERN_ERR "GUS MAX soundcard not found or device busy\n"); #endif return -ENODEV; } return 0; }
static int __init alsa_card_es1688_init(void) { static unsigned long possible_ports[] = {0x220, 0x240, 0x260, -1}; int dev, cards = 0, i; for (dev = cards = 0; dev < SNDRV_CARDS && enable[dev]; dev++) { if (port[dev] == SNDRV_AUTO_PORT) continue; if (snd_audiodrive_probe(dev) >= 0) cards++; } i = snd_legacy_auto_probe(possible_ports, snd_audiodrive_legacy_auto_probe); if (i > 0) cards += i; if (!cards) { #ifdef MODULE printk(KERN_ERR "ESS AudioDrive ES1688 soundcard not found or device busy\n"); #endif return -ENODEV; } return 0; }