Lines Matching refs:voice

194 	struct emu10k1x_voice *voice;  member
347 static void snd_emu10k1x_pcm_interrupt(struct emu10k1x *emu, struct emu10k1x_voice *voice) in snd_emu10k1x_pcm_interrupt() argument
351 epcm = voice->epcm; in snd_emu10k1x_pcm_interrupt()
408 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params()
409 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
410 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params()
411 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params()
428 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free()
429 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free()
430 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free()
431 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free()
443 int voice = epcm->voice->number; in snd_emu10k1x_pcm_prepare() local
444 u32 *table_base = (u32 *)(emu->dma_buffer->area+1024*voice); in snd_emu10k1x_pcm_prepare()
453 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_ADDR, voice, emu->dma_buffer->addr+1024*voice); in snd_emu10k1x_pcm_prepare()
454 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_SIZE, voice, (runtime->periods - 1) << 19); in snd_emu10k1x_pcm_prepare()
455 snd_emu10k1x_ptr_write(emu, PLAYBACK_LIST_PTR, voice, 0); in snd_emu10k1x_pcm_prepare()
456 snd_emu10k1x_ptr_write(emu, PLAYBACK_POINTER, voice, 0); in snd_emu10k1x_pcm_prepare()
457 snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN1, voice, 0); in snd_emu10k1x_pcm_prepare()
458 snd_emu10k1x_ptr_write(emu, PLAYBACK_UNKNOWN2, voice, 0); in snd_emu10k1x_pcm_prepare()
459 snd_emu10k1x_ptr_write(emu, PLAYBACK_DMA_ADDR, voice, runtime->dma_addr); in snd_emu10k1x_pcm_prepare()
461 …snd_emu10k1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_… in snd_emu10k1x_pcm_prepare()
473 int channel = epcm->voice->number; in snd_emu10k1x_pcm_trigger()
510 int channel = epcm->voice->number; in snd_emu10k1x_pcm_pointer()
589 if (! epcm->voice) { in snd_emu10k1x_pcm_hw_params_capture()
592 epcm->voice = &epcm->emu->capture_voice; in snd_emu10k1x_pcm_hw_params_capture()
593 epcm->voice->epcm = epcm; in snd_emu10k1x_pcm_hw_params_capture()
594 epcm->voice->use = 1; in snd_emu10k1x_pcm_hw_params_capture()
611 if (epcm->voice) { in snd_emu10k1x_pcm_hw_free_capture()
612 epcm->voice->use = 0; in snd_emu10k1x_pcm_hw_free_capture()
613 epcm->voice->epcm = NULL; in snd_emu10k1x_pcm_hw_free_capture()
614 epcm->voice = NULL; in snd_emu10k1x_pcm_hw_free_capture()