153 |
} |
} |
154 |
chip->port1 = request_region(pci_resource_start(pci, 2), 8, CARD_NAME_SHORT); |
chip->port1 = request_region(pci_resource_start(pci, 2), 8, CARD_NAME_SHORT); |
155 |
|
|
156 |
|
/* Init audio core. |
157 |
|
* This must be done before we do request_irq otherwise we can get spurious |
158 |
|
* interupts that we do not handle properly and make a mess of things */ |
159 |
|
vortex_core_init(chip); |
160 |
|
|
161 |
if (request_irq(pci->irq, vortex_interrupt, SA_INTERRUPT | SA_SHIRQ, |
if (request_irq(pci->irq, vortex_interrupt, SA_INTERRUPT | SA_SHIRQ, |
162 |
CARD_NAME_SHORT, (void *) chip)) { |
CARD_NAME_SHORT, (void *) chip)) { |
163 |
snd_vortex_free(chip); |
snd_vortex_free(chip); |
165 |
return -EBUSY; |
return -EBUSY; |
166 |
} |
} |
167 |
chip->irq = pci->irq; |
chip->irq = pci->irq; |
168 |
|
vortex_enable_int(chip); |
169 |
|
|
170 |
pci_set_master(pci); |
pci_set_master(pci); |
171 |
// End of PCI setup. |
// End of PCI setup. |
172 |
|
|
|
// Init audio core. |
|
|
vortex_core_init(chip); |
|
173 |
|
|
174 |
// Register alsa root device. |
// Register alsa root device. |
175 |
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { |
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) { |