diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2004-03-21 05:18:01 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@redhat.com> | 2004-03-21 05:18:01 -0500 |
| commit | a0c5b7fce68ee2c9368adbd804dc11452bbe28c4 (patch) | |
| tree | b7ff22922a726b7b85044683088cdac6b52109a0 | |
| parent | 67bfb5a707614ffaeda67babba9aadb5b0bdfebc (diff) | |
Set PCI DMA masks in old-OSS via82cxxx audio driver.
| -rw-r--r-- | sound/oss/via82cxxx_audio.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/oss/via82cxxx_audio.c b/sound/oss/via82cxxx_audio.c index f4f34c510ec7..899a6ba75469 100644 --- a/sound/oss/via82cxxx_audio.c +++ b/sound/oss/via82cxxx_audio.c @@ -3411,12 +3411,18 @@ static int __devinit via_init_one (struct pci_dev *pdev, const struct pci_device rc = pci_enable_device (pdev); if (rc) goto err_out; - rc = pci_request_regions (pdev, "via82cxxx_audio"); if (rc) goto err_out_disable; + rc = pci_set_dma_mask(pdev, 0xffffffffULL); + if (rc) + goto err_out_res; + rc = pci_set_consistent_dma_mask(pdev, 0xffffffffULL); + if (rc) + goto err_out_res; + card = kmalloc (sizeof (*card), GFP_KERNEL); if (!card) { printk (KERN_ERR PFX "out of memory, aborting\n"); |
