Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Driver for Gravis UltraSound Classic soundcard |
Jaroslav Kysela | c1017a4 | 2007-10-15 09:50:19 +0200 | [diff] [blame] | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | * |
| 20 | */ |
| 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #include <linux/init.h> |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 23 | #include <linux/err.h> |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 24 | #include <linux/isa.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #include <linux/delay.h> |
| 26 | #include <linux/time.h> |
Paul Gortmaker | 65a7721 | 2011-07-15 13:13:37 -0400 | [diff] [blame] | 27 | #include <linux/module.h> |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 28 | #include <asm/dma.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | #include <sound/core.h> |
| 30 | #include <sound/gus.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #define SNDRV_LEGACY_FIND_FREE_IRQ |
| 32 | #define SNDRV_LEGACY_FIND_FREE_DMA |
| 33 | #include <sound/initval.h> |
| 34 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 35 | #define CRD_NAME "Gravis UltraSound Classic" |
| 36 | #define DEV_NAME "gusclassic" |
| 37 | |
| 38 | MODULE_DESCRIPTION(CRD_NAME); |
Jaroslav Kysela | c1017a4 | 2007-10-15 09:50:19 +0200 | [diff] [blame] | 39 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | MODULE_LICENSE("GPL"); |
| 41 | MODULE_SUPPORTED_DEVICE("{{Gravis,UltraSound Classic}}"); |
| 42 | |
| 43 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ |
| 44 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ |
Rusty Russell | a67ff6a | 2011-12-15 13:49:36 +1030 | [diff] [blame] | 45 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE; /* Enable this card */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x230,0x240,0x250,0x260 */ |
| 47 | static int irq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ; /* 3,5,9,11,12,15 */ |
| 48 | static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ |
| 49 | static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ |
| 50 | static int joystick_dac[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 29}; |
| 51 | /* 0 to 31, (0.59V-4.52V or 0.389V-2.98V) */ |
| 52 | static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; |
| 53 | static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; |
| 54 | |
| 55 | module_param_array(index, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 56 | MODULE_PARM_DESC(index, "Index value for " CRD_NAME " soundcard."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | module_param_array(id, charp, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 58 | MODULE_PARM_DESC(id, "ID string for " CRD_NAME " soundcard."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | module_param_array(enable, bool, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 60 | MODULE_PARM_DESC(enable, "Enable " CRD_NAME " soundcard."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | module_param_array(port, long, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 62 | MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | module_param_array(irq, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 64 | MODULE_PARM_DESC(irq, "IRQ # for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | module_param_array(dma1, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 66 | MODULE_PARM_DESC(dma1, "DMA1 # for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | module_param_array(dma2, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 68 | MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | module_param_array(joystick_dac, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 70 | MODULE_PARM_DESC(joystick_dac, "Joystick DAC level 0.59V-4.52V or 0.389V-2.98V for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | module_param_array(channels, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 72 | MODULE_PARM_DESC(channels, "GF1 channels for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | module_param_array(pcm_channels, int, NULL, 0444); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 74 | MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 76 | static int snd_gusclassic_match(struct device *dev, unsigned int n) |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 77 | { |
| 78 | return enable[n]; |
| 79 | } |
Clemens Ladisch | f7a9275 | 2005-12-07 09:13:42 +0100 | [diff] [blame] | 80 | |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 81 | static int snd_gusclassic_create(struct snd_card *card, |
| 82 | struct device *dev, unsigned int n, |
| 83 | struct snd_gus_card **rgus) |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 84 | { |
| 85 | static long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260}; |
| 86 | static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1}; |
| 87 | static int possible_dmas[] = {5, 6, 7, 1, 3, -1}; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 89 | int i, error; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 91 | if (irq[n] == SNDRV_AUTO_IRQ) { |
| 92 | irq[n] = snd_legacy_find_free_irq(possible_irqs); |
| 93 | if (irq[n] < 0) { |
Takashi Iwai | 0418ff0 | 2008-11-03 08:51:33 +0100 | [diff] [blame] | 94 | dev_err(dev, "unable to find a free IRQ\n"); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 95 | return -EBUSY; |
| 96 | } |
| 97 | } |
| 98 | if (dma1[n] == SNDRV_AUTO_DMA) { |
| 99 | dma1[n] = snd_legacy_find_free_dma(possible_dmas); |
| 100 | if (dma1[n] < 0) { |
Takashi Iwai | 0418ff0 | 2008-11-03 08:51:33 +0100 | [diff] [blame] | 101 | dev_err(dev, "unable to find a free DMA1\n"); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 102 | return -EBUSY; |
| 103 | } |
| 104 | } |
| 105 | if (dma2[n] == SNDRV_AUTO_DMA) { |
| 106 | dma2[n] = snd_legacy_find_free_dma(possible_dmas); |
| 107 | if (dma2[n] < 0) { |
Takashi Iwai | 0418ff0 | 2008-11-03 08:51:33 +0100 | [diff] [blame] | 108 | dev_err(dev, "unable to find a free DMA2\n"); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 109 | return -EBUSY; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | if (port[n] != SNDRV_AUTO_PORT) |
| 114 | return snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], |
| 115 | 0, channels[n], pcm_channels[n], 0, rgus); |
| 116 | |
| 117 | i = 0; |
| 118 | do { |
| 119 | port[n] = possible_ports[i]; |
| 120 | error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], |
| 121 | 0, channels[n], pcm_channels[n], 0, rgus); |
| 122 | } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); |
| 123 | |
| 124 | return error; |
| 125 | } |
| 126 | |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 127 | static int snd_gusclassic_detect(struct snd_gus_card *gus) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | { |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 129 | unsigned char d; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 130 | |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 131 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ |
| 132 | if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 0) { |
| 133 | snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | return -ENODEV; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 135 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | udelay(160); |
| 137 | snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */ |
| 138 | udelay(160); |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 139 | if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 1) { |
| 140 | snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 141 | return -ENODEV; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 142 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | return 0; |
| 144 | } |
| 145 | |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 146 | static int snd_gusclassic_probe(struct device *dev, unsigned int n) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | { |
Takashi Iwai | 5e2da20 | 2005-11-17 14:36:44 +0100 | [diff] [blame] | 148 | struct snd_card *card; |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 149 | struct snd_gus_card *gus; |
| 150 | int error; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 151 | |
Takashi Iwai | 4323cc4 | 2014-01-29 13:03:56 +0100 | [diff] [blame^] | 152 | error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); |
Takashi Iwai | c95eadd | 2008-12-28 16:43:35 +0100 | [diff] [blame] | 153 | if (error < 0) |
| 154 | return error; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 155 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 156 | if (pcm_channels[n] < 2) |
| 157 | pcm_channels[n] = 2; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 158 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 159 | error = snd_gusclassic_create(card, dev, n, &gus); |
| 160 | if (error < 0) |
| 161 | goto out; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 162 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 163 | error = snd_gusclassic_detect(gus); |
| 164 | if (error < 0) |
| 165 | goto out; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 166 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 167 | gus->joystick_dac = joystick_dac[n]; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 168 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 169 | error = snd_gus_initialize(gus); |
| 170 | if (error < 0) |
| 171 | goto out; |
| 172 | |
| 173 | error = -ENODEV; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | if (gus->max_flag || gus->ess_flag) { |
Takashi Iwai | 0418ff0 | 2008-11-03 08:51:33 +0100 | [diff] [blame] | 175 | dev_err(dev, "GUS Classic or ACE soundcard was " |
| 176 | "not detected at 0x%lx\n", gus->gf1.port); |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 177 | goto out; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | } |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 179 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 180 | error = snd_gf1_new_mixer(gus); |
| 181 | if (error < 0) |
| 182 | goto out; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 183 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 184 | error = snd_gf1_pcm_new(gus, 0, 0, NULL); |
| 185 | if (error < 0) |
| 186 | goto out; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 187 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | if (!gus->ace_flag) { |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 189 | error = snd_gf1_rawmidi_new(gus, 0, NULL); |
| 190 | if (error < 0) |
| 191 | goto out; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | } |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 193 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 194 | sprintf(card->longname + strlen(card->longname), |
| 195 | " at 0x%lx, irq %d, dma %d", |
| 196 | gus->gf1.port, gus->gf1.irq, gus->gf1.dma1); |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 197 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 198 | if (gus->gf1.dma2 >= 0) |
| 199 | sprintf(card->longname + strlen(card->longname), |
| 200 | "&%d", gus->gf1.dma2); |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 201 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 202 | error = snd_card_register(card); |
| 203 | if (error < 0) |
| 204 | goto out; |
| 205 | |
| 206 | dev_set_drvdata(dev, card); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | return 0; |
Takashi Iwai | 43bcd97 | 2005-09-05 17:19:20 +0200 | [diff] [blame] | 208 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 209 | out: snd_card_free(card); |
| 210 | return error; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 211 | } |
| 212 | |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 213 | static int snd_gusclassic_remove(struct device *dev, unsigned int n) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | { |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 215 | snd_card_free(dev_get_drvdata(dev)); |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 216 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 217 | } |
| 218 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 219 | static struct isa_driver snd_gusclassic_driver = { |
| 220 | .match = snd_gusclassic_match, |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 221 | .probe = snd_gusclassic_probe, |
Bill Pemberton | 1bff292 | 2012-12-06 12:35:21 -0500 | [diff] [blame] | 222 | .remove = snd_gusclassic_remove, |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 223 | #if 0 /* FIXME */ |
| 224 | .suspend = snd_gusclassic_suspend, |
| 225 | .remove = snd_gusclassic_remove, |
| 226 | #endif |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 227 | .driver = { |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 228 | .name = DEV_NAME |
| 229 | } |
Takashi Iwai | 654aa66 | 2005-11-17 17:13:43 +0100 | [diff] [blame] | 230 | }; |
| 231 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 232 | static int __init alsa_card_gusclassic_init(void) |
| 233 | { |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 234 | return isa_register_driver(&snd_gusclassic_driver, SNDRV_CARDS); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 235 | } |
| 236 | |
| 237 | static void __exit alsa_card_gusclassic_exit(void) |
| 238 | { |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 239 | isa_unregister_driver(&snd_gusclassic_driver); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 240 | } |
| 241 | |
Rene Herman | 93f02c6 | 2007-02-19 13:05:02 +0100 | [diff] [blame] | 242 | module_init(alsa_card_gusclassic_init); |
| 243 | module_exit(alsa_card_gusclassic_exit); |