Home
last modified time | relevance | path

Searched refs:audio_devs (Results 1 – 22 of 22) sorted by relevance

/linux-2.4.37.9/drivers/sound/
Daudio.c47 audio_devs[dev]->local_conversion = 0; in set_format()
49 if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ in set_format()
54 audio_devs[dev]->local_conversion = CNV_MU_LAW; in set_format()
59 audio_devs[dev]->audio_format = audio_devs[dev]->d->set_bits(dev, fmt); in set_format()
60 audio_devs[dev]->local_format = fmt; in set_format()
63 return audio_devs[dev]->local_format; in set_format()
65 if (audio_devs[dev]->local_conversion) in set_format()
66 return audio_devs[dev]->local_conversion; in set_format()
68 return audio_devs[dev]->local_format; in set_format()
90 driver = audio_devs[dev]->d; in audio_open()
[all …]
Dsb_audio.c36 sb_devc *devc = audio_devs[dev]->devc; in sb_audio_open()
99 sb_devc *devc = audio_devs[dev]->devc; in sb_audio_close()
107 dmap_temp = audio_devs[dev]->dmap_out; in sb_audio_close()
108 audio_devs[dev]->dmap_out = audio_devs[dev]->dmap_in; in sb_audio_close()
109 audio_devs[dev]->dmap_in = dmap_temp; in sb_audio_close()
111 audio_devs[dev]->dmap_out->dma = devc->dma8; in sb_audio_close()
112 audio_devs[dev]->dmap_in->dma = ( devc->duplex ) ? in sb_audio_close()
131 sb_devc *devc = audio_devs[dev]->devc; in sb_set_output_parms()
151 sb_devc *devc = audio_devs[dev]->devc; in sb_set_input_parms()
177 sb_devc *devc = audio_devs[dev]->devc; in sb1_audio_output_block()
[all …]
Ddmabuf.c239 audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_SETFMT, (caddr_t)&bits); in default_set_bits()
249 audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_SPEED, (caddr_t)&speed); in default_set_speed()
260 audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_CHANNELS, (caddr_t)&c); in default_set_channels()
277 struct audio_operations *adev = audio_devs[dev]; in DMAbuf_open()
325 if (audio_devs[dev]->open_mode & OPEN_WRITE) in DMAbuf_reset()
328 if (audio_devs[dev]->open_mode & OPEN_READ) in DMAbuf_reset()
334 struct audio_operations *adev = audio_devs[dev]; in dma_reset_output()
377 struct audio_operations *adev = audio_devs[dev]; in dma_reset_input()
397 struct audio_operations *adev = audio_devs[dev]; in DMAbuf_launch_output()
425 struct audio_operations *adev = audio_devs[dev]; in DMAbuf_sync()
[all …]
Dvidc.c291 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; in vidc_audio_output_block()
323 struct audio_operations *adev = audio_devs[dev]; in vidc_audio_prepare_for_output()
346 struct audio_operations *adev = audio_devs[dev]; in vidc_audio_trigger()
442 audio_devs[adev]->min_fragment = 10; in attach_vidc()
443 audio_devs[adev]->mixer_dev = num_mixers; in attach_vidc()
445 audio_devs[adev]->mixer_dev = in attach_vidc()
450 if (audio_devs[adev]->mixer_dev < 0) in attach_vidc()
489 sound_unload_mixerdev(audio_devs[adev]->mixer_dev); in attach_vidc()
519 sound_unload_mixerdev(audio_devs[adev]->mixer_dev); in unload_vidc()
Dpas2_pcm.c260 if (audio_devs[dev]->dmap_out->dma > 3) in pas_audio_output_block()
263 if (audio_devs[dev]->flags & DMA_AUTOMODE && in pas_audio_output_block()
276 if (audio_devs[dev]->dmap_out->dma > 3) in pas_audio_output_block()
308 if (audio_devs[dev]->dmap_out->dma > 3) in pas_audio_start_input()
311 if (audio_devs[pas_audiodev]->flags & DMA_AUTOMODE && in pas_audio_start_input()
321 if (audio_devs[dev]->dmap_out->dma > 3) in pas_audio_start_input()
421 if (!(audio_devs[pas_audiodev]->flags & DMA_AUTOMODE)) in pas_pcm_interrupt()
Dwaveartist.c388 devc = (wavnc_info *) audio_devs[dev]->devc; in waveartist_open()
389 portc = (wavnc_port_info *) audio_devs[dev]->portc; in waveartist_open()
414 wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; in waveartist_close()
415 wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; in waveartist_close()
432 wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; in waveartist_output_block()
433 wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; in waveartist_output_block()
452 audio_devs[dev]->flags & DMA_AUTOMODE && in waveartist_output_block()
477 wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; in waveartist_start_input()
478 wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; in waveartist_start_input()
495 audio_devs[dev]->flags & DMA_AUTOMODE && in waveartist_start_input()
[all …]
Dad1816.c145 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_halt_input()
154 disable_dma(audio_devs[dev]->dmap_in->dma); in ad1816_halt_input()
164 enable_dma(audio_devs[dev]->dmap_in->dma); in ad1816_halt_input()
177 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_halt_output()
189 disable_dma(audio_devs[dev]->dmap_out->dma); in ad1816_halt_output()
199 enable_dma(audio_devs[dev]->dmap_out->dma); in ad1816_halt_output()
214 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_output_block()
236 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_start_input()
256 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_prepare_for_input()
303 ad1816_info *devc = (ad1816_info *) audio_devs[dev]->devc; in ad1816_prepare_for_output()
[all …]
Dad1848.c779 ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; in ad1848_set_speed()
780 ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; in ad1848_set_speed()
868 ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; in ad1848_set_channels()
879 ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; in ad1848_set_bits()
880 ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; in ad1848_set_bits()
987 devc = (ad1848_info *) audio_devs[dev]->devc; in ad1848_open()
988 portc = (ad1848_port_info *) audio_devs[dev]->portc; in ad1848_open()
999 if (audio_devs[dev]->flags & DMA_DUPLEX) in ad1848_open()
1025 ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; in ad1848_close()
1026 ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; in ad1848_close()
[all …]
Dsb_ess.c288 sb_devc *devc = audio_devs[dev]->devc; in ess_set_output_parms()
306 sb_devc *devc = audio_devs[dev]->devc; in ess_set_input_parms()
439 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_prepare_for_input()
460 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_prepare_for_output_audio1()
481 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_prepare_for_output_audio2()
519 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_prepare_for_output()
523 , audio_devs[dev]->dmap_out->dma, audio_devs[dev]->dmap_in->dma); in ess_audio_prepare_for_output()
536 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_halt_xfer()
552 sb_devc *devc = audio_devs[dev]->devc; in ess_audio_start_input()
559 if (audio_devs[dev]->dmap_in->dma > 3) count >>= 1; in ess_audio_start_input()
[all …]
Dgus_wave.c1819 blk_sz = audio_devs[gus_devnum]->dmap_out->bytes_in_use; in guswave_load_patch()
1858 if (audio_devs[gus_devnum]->dmap_out->raw_buf == NULL) in guswave_load_patch()
1867 …copy_from_user(audio_devs[gus_devnum]->dmap_out->raw_buf, &(addr)[sizeof_patch + src_offs], blk_sz… in guswave_load_patch()
1873 DMAbuf_start_dma(gus_devnum, audio_devs[gus_devnum]->dmap_out->raw_buf_phys, in guswave_load_patch()
1900 if (audio_devs[gus_devnum]->dmap_out->dma > 3) in guswave_load_patch()
1919 if (audio_devs[gus_devnum]->dmap_out->dma > 3) in guswave_load_patch()
2261 audio_devs[dev]->format_mask = AFMT_U8; in gus_audio_open()
2263 audio_devs[dev]->format_mask = AFMT_U8 | AFMT_S16_LE; in gus_audio_open()
2441 if (audio_devs[dev]->dmap_out->dma > 3) in gus_transfer_output_block()
2457 if (audio_devs[dev]->dmap_out->dma > 3) in gus_transfer_output_block()
[all …]
Ddev_table.c73 audio_devs[num] = op; in sound_install_audiodrv()
128 audio_devs[dev] = NULL; in sound_unload_audiodev()
Dsoundcard.c372 return sound_mixer_ioctl(audio_devs[dev >> 4]->mixer_dev, in sound_ioctl()
443 dmap = audio_devs[dev]->dmap_out; in sound_mmap()
445 dmap = audio_devs[dev]->dmap_in; in sound_mmap()
486 if( audio_devs[dev]->d->mmap) in sound_mmap()
487 audio_devs[dev]->d->mmap(dev); in sound_mmap()
Dsound_syms.c18 EXPORT_SYMBOL(audio_devs);
Dsscape.c339 audio_devs[devc->codec_audiodev]->flags &= ~DMA_AUTOMODE; in do_dma()
341 audio_devs[devc->codec_audiodev]->flags |= DMA_AUTOMODE; in do_dma()
446 if (audio_devs[devc->codec_audiodev]->dmap_out->raw_buf == NULL) in sscape_download_boot()
451 memcpy(audio_devs[devc->codec_audiodev]->dmap_out->raw_buf, block, size); in sscape_download_boot()
459 audio_devs[devc->codec_audiodev]->dmap_out->raw_buf_phys, in sscape_download_boot()
1397 audio_devs[hw_config->slots[0]]->coproc = &sscape_coproc_operations; in attach_ss_ms_sound()
Ddev_table.h353 struct audio_operations *audio_devs[MAX_AUDIO_DEV]; variable
368 extern struct audio_operations *audio_devs[MAX_AUDIO_DEV];
Dnm256_audio.c1195 audio_devs[card->dev[x]]->min_fragment = 10; in nm256_install()
1197 audio_devs[card->dev[x]]->max_fragment = 13; in nm256_install()
1512 struct audio_operations *adev = audio_devs[dev]; in nm256_getDMAbuffer()
1583 audio_devs[dev]->dmap_in->flags |= DMA_NODMA; in nm256_audio_prepare_for_input()
1610 audio_devs[dev]->dmap_out->flags |= DMA_NODMA; in nm256_audio_prepare_for_output()
Dsgalaxy.c123 if (n!=-1 && audio_devs[n]->mixer_dev != -1 ) { in attach_sgalaxy()
Dpas2_mixer.c331 audio_devs[pas_audiodev]->mixer_dev = d; in pas_init_mixer()
Dpas2_card.c375 sound_unload_mixerdev(audio_devs[pas_audiodev]->mixer_dev); in unload_pas()
Dcs4232.c276 audio_devs[hw_config->slots[0]]->mixer_dev!=-1) in attach_cs4232()
Dpss.c1103 audio_devs[hw_config->slots[0]]->coproc = &pss_coproc_operations; in attach_pss_mss()
1107 devc->ad_mixer_dev = audio_devs[hw_config->slots[0]]->mixer_dev; in attach_pss_mss()
Dsb_common.c897 devc = audio_devs[hw_config->slots[0]]->devc; in sb_dsp_unload()