Home
last modified time | relevance | path

Searched refs:dmap (Results 1 – 6 of 6) sorted by relevance

/sound/oss/
Ddmabuf.c46 static long dmabuf_timeout(struct dma_buffparms *dmap) in dmabuf_timeout() argument
50 tmout = (dmap->fragment_size * HZ) / dmap->data_rate; in dmabuf_timeout()
59 static int sound_alloc_dmap(struct dma_buffparms *dmap) in sound_alloc_dmap() argument
66 dmap->mapping_flags &= ~DMA_MAP_MAPPED; in sound_alloc_dmap()
68 if (dmap->raw_buf != NULL) in sound_alloc_dmap()
72 dma_pagesize = (dmap->dma < 4) ? (64 * 1024) : (128 * 1024); in sound_alloc_dmap()
81 dmap->raw_buf = NULL; in sound_alloc_dmap()
82 dmap->buffsize = dma_buffsize; in sound_alloc_dmap()
83 if (dmap->buffsize > dma_pagesize) in sound_alloc_dmap()
84 dmap->buffsize = dma_pagesize; in sound_alloc_dmap()
[all …]
Daudio.c139 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in sync_output() local
141 if (dmap->fragment_size <= 0) in sync_output()
143 dmap->flags |= DMA_POST; in sync_output()
147 if ((l = dmap->user_counter % dmap->fragment_size) > 0) in sync_output()
150 unsigned long offs = dmap->user_counter % dmap->bytes_in_use; in sync_output()
152 len = dmap->fragment_size - l; in sync_output()
153 memset(dmap->raw_buf + offs, dmap->neutral_byte, len); in sync_output()
161 p = dmap->qtail; in sync_output()
162 dmap->flags |= DMA_POST; in sync_output()
164 for (i = dmap->qlen + 1; i < dmap->nbufs; i++) in sync_output()
[all …]
Dsoundcard.c427 struct dma_buffparms *dmap = NULL; in sound_mmap() local
439 dmap = audio_devs[dev]->dmap_out; in sound_mmap()
441 dmap = audio_devs[dev]->dmap_in; in sound_mmap()
448 if (dmap == NULL) { in sound_mmap()
453 if (dmap->raw_buf == NULL) { in sound_mmap()
458 if (dmap->mapping_flags) { in sound_mmap()
470 if (size != dmap->bytes_in_use) { in sound_mmap()
471 printk(KERN_WARNING "Sound: mmap() size = %ld. Should be %d\n", size, dmap->bytes_in_use); in sound_mmap()
474 virt_to_phys(dmap->raw_buf) >> PAGE_SHIFT, in sound_mmap()
480 dmap->mapping_flags |= DMA_MAP_MAPPED; in sound_mmap()
[all …]
Dsound_calls.h20 int DMAbuf_activate_recording (int dev, struct dma_buffparms *dmap);
21 int DMAbuf_get_buffer_pointer (int dev, struct dma_buffparms *dmap, int direction);
22 void DMAbuf_launch_output(int dev, struct dma_buffparms *dmap);
39 void reorganize_buffers (int dev, struct dma_buffparms *dmap, int recording);
Dvidc.c307 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in vidc_audio_output_block() local
311 dma_start = buf - (unsigned long)dmap->raw_buf_phys + (unsigned long)dmap->raw_buf; in vidc_audio_output_block()
Ddev_table.h368 extern int sound_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
370 void sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);