Lines Matching full:voice

24 				      struct snd_emu10k1_voice *voice)  in snd_emu10k1_pcm_interrupt()  argument
28 if ((epcm = voice->epcm) == NULL) in snd_emu10k1_pcm_interrupt()
278 int voice, stereo, w_16; in snd_emu10k1_pcm_init_voice() local
285 voice = evoice->number; in snd_emu10k1_pcm_init_voice()
309 /* mono, left, right (master voice = left) */ in snd_emu10k1_pcm_init_voice()
324 snd_emu10k1_ptr_write(emu, CPF, voice, CPF_STEREO_MASK); in snd_emu10k1_pcm_init_voice()
325 snd_emu10k1_ptr_write(emu, CPF, (voice + 1), CPF_STEREO_MASK); in snd_emu10k1_pcm_init_voice()
327 snd_emu10k1_ptr_write(emu, CPF, voice, 0); in snd_emu10k1_pcm_init_voice()
333 snd_emu10k1_ptr_write(emu, A_FXRT1, voice, in snd_emu10k1_pcm_init_voice()
335 snd_emu10k1_ptr_write(emu, A_FXRT2, voice, in snd_emu10k1_pcm_init_voice()
337 snd_emu10k1_ptr_write(emu, A_SENDAMOUNTS, voice, in snd_emu10k1_pcm_init_voice()
343 snd_emu10k1_ptr_write(emu, FXRT, voice, in snd_emu10k1_pcm_init_voice()
347 snd_emu10k1_ptr_write(emu, PTRX, voice, (send_amount[0] << 8) | send_amount[1]); in snd_emu10k1_pcm_init_voice()
348 snd_emu10k1_ptr_write(emu, DSL, voice, end_addr | (send_amount[3] << 24)); in snd_emu10k1_pcm_init_voice()
349 snd_emu10k1_ptr_write(emu, PSST, voice, in snd_emu10k1_pcm_init_voice()
357 snd_emu10k1_ptr_write(emu, CCCA, voice, start_addr | in snd_emu10k1_pcm_init_voice()
361 snd_emu10k1_ptr_write(emu, CCCA, voice, (start_addr + ccis) | in snd_emu10k1_pcm_init_voice()
365 snd_emu10k1_ptr_write(emu, Z1, voice, 0); in snd_emu10k1_pcm_init_voice()
366 snd_emu10k1_ptr_write(emu, Z2, voice, 0); in snd_emu10k1_pcm_init_voice()
369 snd_emu10k1_ptr_write(emu, MAPA, voice, silent_page); in snd_emu10k1_pcm_init_voice()
370 snd_emu10k1_ptr_write(emu, MAPB, voice, silent_page); in snd_emu10k1_pcm_init_voice()
372 snd_emu10k1_ptr_write(emu, CVCF, voice, 0xffff); in snd_emu10k1_pcm_init_voice()
373 snd_emu10k1_ptr_write(emu, VTFT, voice, 0xffff); in snd_emu10k1_pcm_init_voice()
374 snd_emu10k1_ptr_write(emu, ATKHLDM, voice, 0); in snd_emu10k1_pcm_init_voice()
375 snd_emu10k1_ptr_write(emu, DCYSUSM, voice, 0x007f); in snd_emu10k1_pcm_init_voice()
376 snd_emu10k1_ptr_write(emu, LFOVAL1, voice, 0x8000); in snd_emu10k1_pcm_init_voice()
377 snd_emu10k1_ptr_write(emu, LFOVAL2, voice, 0x8000); in snd_emu10k1_pcm_init_voice()
378 snd_emu10k1_ptr_write(emu, FMMOD, voice, 0); in snd_emu10k1_pcm_init_voice()
379 snd_emu10k1_ptr_write(emu, TREMFRQ, voice, 0); in snd_emu10k1_pcm_init_voice()
380 snd_emu10k1_ptr_write(emu, FM2FRQ2, voice, 0); in snd_emu10k1_pcm_init_voice()
381 snd_emu10k1_ptr_write(emu, ENVVAL, voice, 0x8000); in snd_emu10k1_pcm_init_voice()
383 snd_emu10k1_ptr_write(emu, ATKHLDV, voice, 0x7f7f); in snd_emu10k1_pcm_init_voice()
384 snd_emu10k1_ptr_write(emu, ENVVOL, voice, 0x0000); in snd_emu10k1_pcm_init_voice()
386 snd_emu10k1_ptr_write(emu, PEFE_FILTERAMOUNT, voice, 0x7f); in snd_emu10k1_pcm_init_voice()
388 snd_emu10k1_ptr_write(emu, PEFE_PITCHAMOUNT, voice, 0); in snd_emu10k1_pcm_init_voice()
536 /* only difference with the master voice is we use it for the pointer */ in snd_emu10k1_efx_playback_prepare()
622 unsigned int voice, stereo, i, ccis, cra = 64, cs, sample; in snd_emu10k1_playback_invalidate_cache() local
627 voice = evoice->number; in snd_emu10k1_playback_invalidate_cache()
635 snd_emu10k1_ptr_write(emu, CD0 + i, voice, sample); in snd_emu10k1_playback_invalidate_cache()
637 snd_emu10k1_ptr_write(emu, CD0 + i, voice + 1, sample); in snd_emu10k1_playback_invalidate_cache()
641 snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice, 0); in snd_emu10k1_playback_invalidate_cache()
642 snd_emu10k1_ptr_write(emu, CCR_READADDRESS, voice, cra); in snd_emu10k1_playback_invalidate_cache()
644 snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice + 1, 0); in snd_emu10k1_playback_invalidate_cache()
645 snd_emu10k1_ptr_write(emu, CCR_READADDRESS, voice + 1, cra); in snd_emu10k1_playback_invalidate_cache()
648 snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice, ccis); in snd_emu10k1_playback_invalidate_cache()
650 snd_emu10k1_ptr_write(emu, CCR_CACHEINVALIDSIZE, voice+1, ccis); in snd_emu10k1_playback_invalidate_cache()
661 unsigned int voice, tmp; in snd_emu10k1_playback_prepare_voice() local
663 if (evoice == NULL) /* skip second voice for mono */ in snd_emu10k1_playback_prepare_voice()
667 voice = evoice->number; in snd_emu10k1_playback_prepare_voice()
672 snd_emu10k1_ptr_write(emu, IFATN, voice, attn); in snd_emu10k1_playback_prepare_voice()
673 snd_emu10k1_ptr_write(emu, VTFT, voice, vattn | 0xffff); in snd_emu10k1_playback_prepare_voice()
674 snd_emu10k1_ptr_write(emu, CVCF, voice, vattn | 0xffff); in snd_emu10k1_playback_prepare_voice()
675 snd_emu10k1_ptr_write(emu, DCYSUSV, voice, 0x7f7f); in snd_emu10k1_playback_prepare_voice()
676 snd_emu10k1_voice_clear_loop_stop(emu, voice); in snd_emu10k1_playback_prepare_voice()
683 unsigned int voice, pitch, pitch_target; in snd_emu10k1_playback_trigger_voice() local
685 if (evoice == NULL) /* skip second voice for mono */ in snd_emu10k1_playback_trigger_voice()
689 voice = evoice->number; in snd_emu10k1_playback_trigger_voice()
696 snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, pitch_target); in snd_emu10k1_playback_trigger_voice()
698 snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, pitch_target); in snd_emu10k1_playback_trigger_voice()
699 snd_emu10k1_ptr_write(emu, IP, voice, pitch); in snd_emu10k1_playback_trigger_voice()
701 snd_emu10k1_voice_intr_enable(emu, voice); in snd_emu10k1_playback_trigger_voice()
706 unsigned int voice; in snd_emu10k1_playback_stop_voice() local
710 voice = evoice->number; in snd_emu10k1_playback_stop_voice()
711 snd_emu10k1_voice_intr_disable(emu, voice); in snd_emu10k1_playback_stop_voice()
712 snd_emu10k1_ptr_write(emu, PTRX_PITCHTARGET, voice, 0); in snd_emu10k1_playback_stop_voice()
713 snd_emu10k1_ptr_write(emu, CPF_CURRENTPITCH, voice, 0); in snd_emu10k1_playback_stop_voice()
714 snd_emu10k1_ptr_write(emu, IFATN, voice, 0xffff); in snd_emu10k1_playback_stop_voice()
715 snd_emu10k1_ptr_write(emu, VTFT, voice, 0xffff); in snd_emu10k1_playback_stop_voice()
716 snd_emu10k1_ptr_write(emu, CVCF, voice, 0xffff); in snd_emu10k1_playback_stop_voice()
717 snd_emu10k1_ptr_write(emu, IP, voice, 0); in snd_emu10k1_playback_stop_voice()
728 source voice */ in snd_emu10k1_playback_mangle_extra()
1799 * each bit = corresponding voice in snd_emu10k1_pcm_efx()