--- linux-2.5.47/sound/core/wrappers.c 2002-11-10 19:28:05.000000000 -0800 +++ linux/sound/core/wrappers.c 2002-11-16 05:54:00.000000000 -0800 @@ -85,9 +85,9 @@ return pci_alloc_consistent(hwdev, size, dma_handle); dma_mask = hwdev->dma_mask; rmask = ~((unsigned long)dma_mask); - hwdev->dma_mask = 0xffffffff; /* do without masking */ + pci_set_dma_mask(hwdev, 0xffffffff); /* do without masking */ ret = pci_alloc_consistent(hwdev, size, dma_handle); - hwdev->dma_mask = dma_mask; /* restore */ + pci_set_dma_mask(hwdev, dma_mask); /* restore */ if (ret) { /* obtained address is out of range? */ if (((unsigned long)*dma_handle + size - 1) & rmask) { --- linux-2.5.47/sound/oss/ite8172.c 2002-11-10 19:28:06.000000000 -0800 +++ linux/sound/oss/ite8172.c 2002-11-16 05:54:00.000000000 -0800 @@ -1807,6 +1807,10 @@ /* enable pci io and bus mastering */ if (pci_enable_device(pcidev)) goto err_dev3; + + if (pci_set_dma_mask(pcidev, 0xffffffff)) + goto err_dev3; + pci_set_master(pcidev); /* get out of legacy mode */ @@ -1878,7 +1882,6 @@ /* store it in the driver field */ pci_set_drvdata(pcidev, s); - pcidev->dma_mask = 0xffffffff; /* put it into driver list */ list_add_tail(&s->devs, &devs); /* increment devindex */ --- linux-2.5.47/sound/oss/nec_vrc5477.c 2002-11-10 19:28:27.000000000 -0800 +++ linux/sound/oss/nec_vrc5477.c 2002-11-16 05:54:00.000000000 -0800 @@ -1913,6 +1913,10 @@ /* enable pci io and bus mastering */ if (pci_enable_device(pcidev)) goto err_dev3; + + if (pci_set_dma_mask(pcidev, 0xffffffff)) + goto err_dev3; + pci_set_master(pcidev); /* @@ -1960,7 +1964,6 @@ /* store it in the driver field */ pci_set_drvdata(pcidev, s); - pcidev->dma_mask = 0xffffffff; /* put it into driver list */ list_add_tail(&s->devs, &devs); /* increment devindex */ --- linux-2.5.47/sound/oss/rme96xx.c 2002-11-10 19:28:09.000000000 -0800 +++ linux/sound/oss/rme96xx.c 2002-11-16 05:54:00.000000000 -0800 @@ -712,7 +711,7 @@ if (pcidev->irq == 0) return -1; - if (!pci_dma_supported(pcidev, 0xffffffff)) { + if (pci_set_dma_mask(pcidev, 0xffffffff)) { printk(KERN_WARNING RME_MESS" architecture does not support 32bit PCI busmaster DMA\n"); return -1; } @@ -751,7 +750,6 @@ goto err_devices; pci_set_drvdata(pcidev, s); - pcidev->dma_mask = 0xffffffff; /* ????? */ /* put it into driver list */ list_add_tail(&s->devs, &devs);