Ignore:
Timestamp:
Oct 18, 2007, 6:38:12 AM (18 years ago)
Author:
Brendan Oakley
Message:

Merged to ALSA 0.9.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/pci/sonicvibes.c

    r250 r262  
    265265};
    266266
    267 static struct pci_device_id snd_sonic_ids[] __devinitdata = {
     267static struct pci_device_id snd_sonic_ids[] = {
    268268        { 0x5333, 0xca00, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },
    269269        { 0, }
     
    12691269        sonic->sb_port = pci_resource_start(pci, 0);
    12701270        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);
    12711272                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);
    12731273                return -EBUSY;
    12741274        }
    12751275        sonic->enh_port = pci_resource_start(pci, 1);
    12761276        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);
    12771278                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);
    12791279                return -EBUSY;
    12801280        }
    12811281        sonic->synth_port = pci_resource_start(pci, 2);
    12821282        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);
    12831284                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);
    12851285                return -EBUSY;
    12861286        }
    12871287        sonic->midi_port = pci_resource_start(pci, 3);
    12881288        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);
    12891290                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);
    12911291                return -EBUSY;
    12921292        }
    12931293        sonic->game_port = pci_resource_start(pci, 4);
    12941294        if (request_irq(pci->irq, snd_sonicvibes_interrupt, SA_INTERRUPT|SA_SHIRQ, "S3 SonicVibes", (void *)sonic)) {
    1295                 snd_magic_kfree(sonic);
    12961295                snd_printk("unable to grab IRQ %d\n", pci->irq);
     1296                snd_sonicvibes_free(sonic);
    12971297                return -EBUSY;
    12981298        }
Note: See TracChangeset for help on using the changeset viewer.