sound/pci/mixart/mixart.c : Use the DMA_32BIT_MASK
Subsystems (2)
PATCH 1/1 sound/pci/mixart/mixart.c : Use the DMA_32BIT_MASK
Use the DMA_32BIT_MASK constant from dma-mapping.h
when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
sound/pci/mixart/mixart.c +2 -1
@@ -26,6 +26,7 @@#include <linux/interrupt.h> #include <linux/pci.h> #include <linux/moduleparam.h> +#include <linux/dma-mapping.h> #include <sound/core.h> #include <sound/initval.h> #include <sound/info.h>
@@ -1284,7 +1285,7 @@ static int __devinit snd_mixart_probe(stpci_set_master (pci);/* check if we can restrict PCI DMA transfers to 32 bits */ -if (pci_set_dma_mask (pci,0xffffffff ) <0 ) { +if (pci_set_dma_mask (pci,DMA_32BIT_MASK ) <0 ) {snd_printk (KERN_ERR "architecture does not support 32bit PCI busmaster DMA\n" );pci_disable_device (pci);return -ENXIO ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 3 lines · Christophe Lucas
Use the
DMA_32BIT_MASKconstant fromdma-mapping.h
when callingpci_set_dma_mask()orpci_set_consistent_dma_mask()See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details
Christophe,
I've got some of these hanging around here and will send them alltogether as soon as I'm sure I catched _all_. So it might be a waste of your time when you work on the same thing.
Thanks, Tobias
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 10 lines · Tobias Klauser
Quoted 3 lines · Christophe Lucas
Use the
DMA_32BIT_MASKconstant fromdma-mapping.h
when callingpci_set_dma_mask()orpci_set_consistent_dma_mask()See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for detailsChristophe,
I've got some of these hanging around here and will send them alltogether as soon as I'm sure I catched _all_. So it might be a waste of your time when you work on the same thing.
Ok I am really sorry :-(
I have just seen that in sound/* this one have been missed, but it is not.
Have a nice day, and good work.
~Christophe
PS: Sorry again.
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors