Update of /cvsroot/alsa/alsa-kernel/pci In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21322/pci
Modified Files: es1968.c Log Message: - fixed the handling of DMA buffer with the recent API change. Index: es1968.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/es1968.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- es1968.c 21 Jan 2004 18:32:47 -0000 1.59 +++ es1968.c 2 Mar 2004 18:07:40 -0000 1.60 @@ -1495,13 +1495,15 @@ static int __devinit snd_es1968_init_dmabuf(es1968_t *chip) { + int err; esm_memory_t *chunk; - snd_dma_device_pci(&chip->dma_dev, chip->pci, 0); + chip->dma_dev.type = SNDRV_DMA_TYPE_PCI; + chip->dma_dev.dev.data = chip->pci; + chip->dma_dev.id = 0; if (! snd_dma_get_reserved(&chip->dma_dev, &chip->dma)) { - chip->dma.area = snd_malloc_pci_pages_fallback(chip->pci, chip->total_bufsize, - &chip->dma.addr, &chip->dma.bytes); - if (chip->dma.area == NULL) { + err = snd_dma_alloc_pages_fallback(&chip->dma_dev, chip->total_bufsize, &chip->dma); + if (err < 0 || ! chip->dma.area) { snd_printk("es1968: can't allocate dma pages for size %d\n", chip->total_bufsize); return -ENOMEM; ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog