Changeset 262 for GPL/branches/alsa-resync1/alsa-kernel/pci/sonicvibes.c
- Timestamp:
- Oct 18, 2007, 6:38:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/pci/sonicvibes.c
r250 r262 265 265 }; 266 266 267 static struct pci_device_id snd_sonic_ids[] __devinitdata= {267 static struct pci_device_id snd_sonic_ids[] = { 268 268 { 0x5333, 0xca00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, }, 269 269 { 0, } … … 1269 1269 sonic->sb_port = pci_resource_start(pci, 0); 1270 1270 if ((sonic->res_sb_port = request_region(sonic->sb_port, 0x10, "S3 SonicVibes SB")) == NULL) { 1271 snd_printk("unable to grab SB port at 0x%lx-0x%lx\n", sonic->sb_port, sonic->sb_port + 0x10 - 1); 1271 1272 snd_sonicvibes_free(sonic); 1272 snd_printk("unable to grab SB port at 0x%lx-0x%lx\n", sonic->sb_port, sonic->sb_port + 0x10 - 1);1273 1273 return -EBUSY; 1274 1274 } 1275 1275 sonic->enh_port = pci_resource_start(pci, 1); 1276 1276 if ((sonic->res_enh_port = request_region(sonic->enh_port, 0x10, "S3 SonicVibes Enhanced")) == NULL) { 1277 snd_printk("unable to grab PCM port at 0x%lx-0x%lx\n", sonic->enh_port, sonic->enh_port + 0x10 - 1); 1277 1278 snd_sonicvibes_free(sonic); 1278 snd_printk("unable to grab PCM port at 0x%lx-0x%lx\n", sonic->enh_port, sonic->enh_port + 0x10 - 1);1279 1279 return -EBUSY; 1280 1280 } 1281 1281 sonic->synth_port = pci_resource_start(pci, 2); 1282 1282 if ((sonic->res_synth_port = request_region(sonic->synth_port, 4, "S3 SonicVibes Synth")) == NULL) { 1283 snd_printk("unable to grab synth port at 0x%lx-0x%lx\n", sonic->synth_port, sonic->synth_port + 4 - 1); 1283 1284 snd_sonicvibes_free(sonic); 1284 snd_printk("unable to grab synth port at 0x%lx-0x%lx\n", sonic->synth_port, sonic->synth_port + 4 - 1);1285 1285 return -EBUSY; 1286 1286 } 1287 1287 sonic->midi_port = pci_resource_start(pci, 3); 1288 1288 if ((sonic->res_midi_port = request_region(sonic->midi_port, 4, "S3 SonicVibes Midi")) == NULL) { 1289 snd_printk("unable to grab MIDI port at 0x%lx-0x%lx\n", sonic->midi_port, sonic->midi_port + 4 - 1); 1289 1290 snd_sonicvibes_free(sonic); 1290 snd_printk("unable to grab MIDI port at 0x%lx-0x%lx\n", sonic->midi_port, sonic->midi_port + 4 - 1);1291 1291 return -EBUSY; 1292 1292 } 1293 1293 sonic->game_port = pci_resource_start(pci, 4); 1294 1294 if (request_irq(pci->irq, snd_sonicvibes_interrupt, SA_INTERRUPT|SA_SHIRQ, "S3 SonicVibes", (void *)sonic)) { 1295 snd_magic_kfree(sonic);1296 1295 snd_printk("unable to grab IRQ %d\n", pci->irq); 1296 snd_sonicvibes_free(sonic); 1297 1297 return -EBUSY; 1298 1298 }
Note:
See TracChangeset
for help on using the changeset viewer.