patch-2.1.4 linux/drivers/sound/dmabuf.c
Next file: linux/drivers/sound/dmasound.c
Previous file: linux/drivers/sound/audio.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:15 1996
- Orig file:
v2.1.3/linux/drivers/sound/dmabuf.c
- Orig date:
Sat Aug 31 19:39:10 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/sound/dmabuf.c linux/drivers/sound/dmabuf.c
@@ -1018,7 +1018,7 @@
info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in);
info.blocks = audio_devs[dev]->dmap_in->qlen;
info.bytes += info.ptr;
- memcpy_tofs (&((char *) arg)[0], (char *) &info, sizeof (info));
+ copy_to_user (&((char *) arg)[0], (char *) &info, sizeof (info));
if (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
audio_devs[dev]->dmap_in->qlen = 0; /* Acknowledge interrupts */
@@ -1041,7 +1041,7 @@
info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out);
info.blocks = audio_devs[dev]->dmap_out->qlen;
info.bytes += info.ptr;
- memcpy_tofs (&((char *) arg)[0], (char *) &info, sizeof (info));
+ copy_to_user (&((char *) arg)[0], (char *) &info, sizeof (info));
if (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
audio_devs[dev]->dmap_out->qlen = 0; /* Acknowledge interrupts */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov