tag | line | file | source code |
audio_devs | 201 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 237 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 411 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 459 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 476 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
audio_devs | 521 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 539 | drivers/sound/ad1848.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
audio_devs | 594 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 653 | drivers/sound/ad1848.c | ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 850 | drivers/sound/ad1848.c | audio_devs[my_dev = num_audiodevs++] = &ad1848_pcm_operations[nr_ad1848_devs]; |
audio_devs | 856 | drivers/sound/ad1848.c | audio_devs[my_dev]->dmachan = dma_playback; |
audio_devs | 857 | drivers/sound/ad1848.c | audio_devs[my_dev]->buffcount = 1; |
audio_devs | 858 | drivers/sound/ad1848.c | audio_devs[my_dev]->buffsize = DSP_BUFFSIZE * 2; |
audio_devs | 859 | drivers/sound/ad1848.c | audio_devs[my_dev]->devc = devc; |
audio_devs | 860 | drivers/sound/ad1848.c | audio_devs[my_dev]->format_mask = ad_format_mask[devc->mode]; |
audio_devs | 880 | drivers/sound/ad1848.c | devc = (ad1848_info *) audio_devs[dev]->devc; |
audio_devs | 65 | drivers/sound/audio.c | if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ |
audio_devs | 217 | drivers/sound/audio.c | if (!audio_devs[dev]->copy_from_user) |
audio_devs | 224 | drivers/sound/audio.c | audio_devs[dev]->copy_from_user (dev, |
audio_devs | 355 | drivers/sound/audio.c | return IOCTL_OUT (arg, audio_devs[dev]->format_mask); |
audio_devs | 201 | drivers/sound/dev_table.h | struct audio_operations *audio_devs[MAX_AUDIO_DEV] = {NULL}; int num_audiodevs = 0; |
audio_devs | 327 | drivers/sound/dev_table.h | extern struct audio_operations * audio_devs[MAX_AUDIO_DEV]; int num_audiodevs; |
audio_devs | 54 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 55 | drivers/sound/dmabuf.c | struct audio_operations *dsp_dev = audio_devs[dev]; |
audio_devs | 112 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
audio_devs | 113 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
audio_devs | 153 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
audio_devs | 176 | drivers/sound/dmabuf.c | if (!audio_devs[dev]) |
audio_devs | 182 | drivers/sound/dmabuf.c | dmap = audio_devs[dev]->dmap = &dmaps[dev]; |
audio_devs | 195 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, mode)) < 0) |
audio_devs | 204 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1); |
audio_devs | 205 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1); |
audio_devs | 206 | drivers/sound/dmabuf.c | audio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1); |
audio_devs | 219 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
audio_devs | 220 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
audio_devs | 222 | drivers/sound/dmabuf.c | if ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0) |
audio_devs | 235 | drivers/sound/dmabuf.c | if (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT) |
audio_devs | 240 | drivers/sound/dmabuf.c | && audio_devs[dev]->dmap->qlen) |
audio_devs | 246 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
audio_devs | 257 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) /* Device has hidden buffers */ |
audio_devs | 260 | drivers/sound/dmabuf.c | && audio_devs[dev]->local_qlen (dev)) |
audio_devs | 267 | drivers/sound/dmabuf.c | return audio_devs[dev]->dmap->qlen; |
audio_devs | 276 | drivers/sound/dmabuf.c | && (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)) |
audio_devs | 286 | drivers/sound/dmabuf.c | audio_devs[dev]->reset (dev); |
audio_devs | 288 | drivers/sound/dmabuf.c | audio_devs[dev]->close (dev); |
audio_devs | 290 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->dma_mode = DMODE_NONE; |
audio_devs | 291 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap->flags &= ~DMA_BUSY; |
audio_devs | 302 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 327 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_input (dev, |
audio_devs | 338 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
audio_devs | 340 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
audio_devs | 371 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 393 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 469 | drivers/sound/dmabuf.c | if (dmap->fragment_size > audio_devs[dev]->buffsize) |
audio_devs | 470 | drivers/sound/dmabuf.c | dmap->fragment_size = audio_devs[dev]->buffsize; |
audio_devs | 472 | drivers/sound/dmabuf.c | if (dmap->fragment_size == audio_devs[dev]->buffsize && |
audio_devs | 473 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & DMA_AUTOMODE) |
audio_devs | 482 | drivers/sound/dmabuf.c | return audio_devs[dev]->ioctl (dev, cmd, arg, local); |
audio_devs | 492 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 505 | drivers/sound/dmabuf.c | if (audio_devs[dev]->local_qlen) |
audio_devs | 507 | drivers/sound/dmabuf.c | tmp = audio_devs[dev]->local_qlen (dev); |
audio_devs | 525 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 548 | drivers/sound/dmabuf.c | if ((err = audio_devs[dev]->prepare_for_output (dev, |
audio_devs | 594 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 607 | drivers/sound/dmabuf.c | ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
audio_devs | 608 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART)) |
audio_devs | 618 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
audio_devs | 620 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE) || |
audio_devs | 631 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
audio_devs | 632 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 644 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
audio_devs | 730 | drivers/sound/dmabuf.c | audio_devs[dev]->dmap = &dmaps[dev]; |
audio_devs | 748 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 765 | drivers/sound/dmabuf.c | audio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead], |
audio_devs | 767 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
audio_devs | 773 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
audio_devs | 774 | drivers/sound/dmabuf.c | if ((audio_devs[dev]->flags & DMA_AUTOMODE) && |
audio_devs | 775 | drivers/sound/dmabuf.c | audio_devs[dev]->flags & NEEDS_RESTART) |
audio_devs | 794 | drivers/sound/dmabuf.c | struct dma_buffparms *dmap = audio_devs[dev]->dmap; |
audio_devs | 800 | drivers/sound/dmabuf.c | audio_devs[dev]->halt_xfer (dev); |
audio_devs | 802 | drivers/sound/dmabuf.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
audio_devs | 815 | drivers/sound/dmabuf.c | audio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail], |
audio_devs | 817 | drivers/sound/dmabuf.c | !(audio_devs[dev]->flags & DMA_AUTOMODE)); |
audio_devs | 833 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
audio_devs | 854 | drivers/sound/dmabuf.c | int chan = audio_devs[dev]->dmachan; |
audio_devs | 1605 | drivers/sound/gus_wave.c | blk_size = audio_devs[gus_devnum]->buffsize; |
audio_devs | 1649 | drivers/sound/gus_wave.c | COPY_FROM_USER (audio_devs[gus_devnum]->dmap->raw_buf[0], |
audio_devs | 1656 | drivers/sound/gus_wave.c | audio_devs[gus_devnum]->dmap->raw_buf_phys[0], |
audio_devs | 1665 | drivers/sound/gus_wave.c | if (audio_devs[gus_devnum]->dmachan > 3) |
audio_devs | 1684 | drivers/sound/gus_wave.c | if (audio_devs[gus_devnum]->dmachan > 3) |
audio_devs | 2197 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 2214 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 2267 | drivers/sound/gus_wave.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 2977 | drivers/sound/gus_wave.c | audio_devs[gus_devnum = num_audiodevs++] = &gus_sampling_operations; |
audio_devs | 2978 | drivers/sound/gus_wave.c | audio_devs[gus_devnum]->dmachan = dma; |
audio_devs | 2979 | drivers/sound/gus_wave.c | audio_devs[gus_devnum]->buffcount = 1; |
audio_devs | 2980 | drivers/sound/gus_wave.c | audio_devs[gus_devnum]->buffsize = DSP_BUFFSIZE; |
audio_devs | 277 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 280 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
audio_devs | 295 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 326 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 329 | drivers/sound/pas2_pcm.c | if (audio_devs[my_devnum]->flags & DMA_AUTOMODE && |
audio_devs | 341 | drivers/sound/pas2_pcm.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 405 | drivers/sound/pas2_pcm.c | audio_devs[my_devnum = num_audiodevs++] = &pas_pcm_operations; |
audio_devs | 406 | drivers/sound/pas2_pcm.c | audio_devs[my_devnum]->dmachan = hw_config->dma; |
audio_devs | 407 | drivers/sound/pas2_pcm.c | audio_devs[my_devnum]->buffcount = 1; |
audio_devs | 408 | drivers/sound/pas2_pcm.c | audio_devs[my_devnum]->buffsize = 2 * DSP_BUFFSIZE; |
audio_devs | 428 | drivers/sound/pas2_pcm.c | if (!(audio_devs[my_devnum]->flags & DMA_AUTOMODE)) |
audio_devs | 287 | drivers/sound/sb16_dsp.c | int pos, chan = audio_devs[dev]->dmachan; |
audio_devs | 298 | drivers/sound/sb16_dsp.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
audio_devs | 344 | drivers/sound/sb16_dsp.c | int pos, chan = audio_devs[dev]->dmachan; |
audio_devs | 355 | drivers/sound/sb16_dsp.c | if (audio_devs[dev]->flags & DMA_AUTOMODE && |
audio_devs | 391 | drivers/sound/sb16_dsp.c | audio_devs[my_dev]->dmachan = dsp_16bit ? dma16 : dma8; |
audio_devs | 400 | drivers/sound/sb16_dsp.c | audio_devs[my_dev]->dmachan = dsp_16bit ? dma16 : dma8; |
audio_devs | 483 | drivers/sound/sb16_dsp.c | audio_devs[my_dev = num_audiodevs++] = &sb16_dsp_operations; |
audio_devs | 484 | drivers/sound/sb16_dsp.c | audio_devs[my_dev]->dmachan = hw_config->dma; |
audio_devs | 485 | drivers/sound/sb16_dsp.c | audio_devs[my_dev]->buffcount = 1; |
audio_devs | 486 | drivers/sound/sb16_dsp.c | audio_devs[my_dev]->buffsize = DSP_BUFFSIZE; |
audio_devs | 405 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 459 | drivers/sound/sb_dsp.c | if (audio_devs[dev]->dmachan > 3) |
audio_devs | 836 | drivers/sound/sb_dsp.c | audio_devs[my_dev = num_audiodevs++] = &sb_dsp_operations; |
audio_devs | 837 | drivers/sound/sb_dsp.c | audio_devs[my_dev]->buffcount = DSP_BUFFCOUNT; |
audio_devs | 838 | drivers/sound/sb_dsp.c | audio_devs[my_dev]->buffsize = DSP_BUFFSIZE; |
audio_devs | 839 | drivers/sound/sb_dsp.c | audio_devs[my_dev]->dmachan = hw_config->dma; |
audio_devs | 196 | drivers/sound/sound_switch.c | if (!put_status (audio_devs[i]->name)) |
audio_devs | 304 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0) |
audio_devs | 306 | drivers/sound/soundcard.c | dmap = audio_devs[dev]->dmap; |
audio_devs | 308 | drivers/sound/soundcard.c | if (audio_devs[dev]->flags & DMA_AUTOMODE) |
audio_devs | 309 | drivers/sound/soundcard.c | audio_devs[dev]->buffcount = 1; |
audio_devs | 311 | drivers/sound/soundcard.c | if (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536) |
audio_devs | 318 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize > dma_pagesize) |
audio_devs | 319 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = dma_pagesize; |
audio_devs | 320 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize &= 0xfffff000; /* Truncate to n*4k */ |
audio_devs | 321 | drivers/sound/soundcard.c | if (audio_devs[dev]->buffsize < 4096) |
audio_devs | 322 | drivers/sound/soundcard.c | audio_devs[dev]->buffsize = 4096; |
audio_devs | 326 | drivers/sound/soundcard.c | for (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++) |
audio_devs | 328 | drivers/sound/soundcard.c | start_addr = mem_ptr - audio_devs[dev]->buffsize; |
audio_devs | 329 | drivers/sound/soundcard.c | if (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize)) |
audio_devs | 333 | drivers/sound/soundcard.c | end_addr = start_addr + audio_devs[dev]->buffsize - 1; |