patch-1.3.37 linux/drivers/sound/soundcard.c
Next file: linux/fs/proc/array.c
Previous file: linux/drivers/sound/sequencer.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Oct 28 15:18:55 1995
- Orig file:
v1.3.36/linux/drivers/sound/soundcard.c
- Orig date:
Mon Oct 23 18:02:16 1995
diff -u --recursive --new-file v1.3.36/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -667,7 +667,7 @@
if (((long) start_addr & ~(dma_pagesize - 1))
!= ((long) end_addr & ~(dma_pagesize - 1))
- || end_addr >= (char *) (16 * 1024 * 1024))
+ || end_addr >= (char *) MAX_DMA_ADDRESS)
{
printk (
"sound: kmalloc returned invalid address 0x%lx for %ld Bytes DMA-buffer\n",
@@ -677,7 +677,7 @@
}
}
dmap->raw_buf = start_addr;
- dmap->raw_buf_phys = (unsigned long) start_addr;
+ dmap->raw_buf_phys = virt_to_bus((unsigned long) start_addr);
for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this