/[openvortex]/alsa/pci/au88x0/au88x0.c
ViewVC logotype

Diff of /alsa/pci/au88x0/au88x0.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by vizard, Wed Apr 23 02:15:53 2003 UTC revision 1.5 by vizard, Wed Apr 23 02:19:44 2003 UTC
# Line 153  snd_vortex_create(snd_card_t *card, stru Line 153  snd_vortex_create(snd_card_t *card, stru
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);
# Line 160  snd_vortex_create(snd_card_t *card, stru Line 165  snd_vortex_create(snd_card_t *card, stru
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) {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26