• Home
  • Raw
  • Download

Lines Matching refs:voices

87 	ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff;  in snd_emu10k1_efx_playback_pointer()
95 static int snd_emu10k1_pcm_channel_alloc(struct snd_emu10k1_pcm * epcm, int voices) in snd_emu10k1_pcm_channel_alloc() argument
99 if (epcm->voices[1] != NULL && voices < 2) { in snd_emu10k1_pcm_channel_alloc()
100 snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); in snd_emu10k1_pcm_channel_alloc()
101 epcm->voices[1] = NULL; in snd_emu10k1_pcm_channel_alloc()
103 for (i = 0; i < voices; i++) { in snd_emu10k1_pcm_channel_alloc()
104 if (epcm->voices[i] == NULL) in snd_emu10k1_pcm_channel_alloc()
107 if (i == voices) in snd_emu10k1_pcm_channel_alloc()
110 for (i = 0; i < ARRAY_SIZE(epcm->voices); i++) { in snd_emu10k1_pcm_channel_alloc()
111 if (epcm->voices[i]) { in snd_emu10k1_pcm_channel_alloc()
112 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); in snd_emu10k1_pcm_channel_alloc()
113 epcm->voices[i] = NULL; in snd_emu10k1_pcm_channel_alloc()
118 voices, in snd_emu10k1_pcm_channel_alloc()
119 &epcm->voices[0]); in snd_emu10k1_pcm_channel_alloc()
123 epcm->voices[0]->epcm = epcm; in snd_emu10k1_pcm_channel_alloc()
124 if (voices > 1) { in snd_emu10k1_pcm_channel_alloc()
125 for (i = 1; i < voices; i++) { in snd_emu10k1_pcm_channel_alloc()
126 epcm->voices[i] = &epcm->emu->voices[(epcm->voices[0]->number + i) % NUM_G]; in snd_emu10k1_pcm_channel_alloc()
127 epcm->voices[i]->epcm = epcm; in snd_emu10k1_pcm_channel_alloc()
141 for (i = 0; i < voices; i++) { in snd_emu10k1_pcm_channel_alloc()
142 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); in snd_emu10k1_pcm_channel_alloc()
143 epcm->voices[i] = NULL; in snd_emu10k1_pcm_channel_alloc()
442 if (epcm->voices[1]) { in snd_emu10k1_playback_hw_free()
443 snd_emu10k1_voice_free(epcm->emu, epcm->voices[1]); in snd_emu10k1_playback_hw_free()
444 epcm->voices[1] = NULL; in snd_emu10k1_playback_hw_free()
446 if (epcm->voices[0]) { in snd_emu10k1_playback_hw_free()
447 snd_emu10k1_voice_free(epcm->emu, epcm->voices[0]); in snd_emu10k1_playback_hw_free()
448 epcm->voices[0] = NULL; in snd_emu10k1_playback_hw_free()
474 if (epcm->voices[i]) { in snd_emu10k1_efx_playback_hw_free()
475 snd_emu10k1_voice_free(epcm->emu, epcm->voices[i]); in snd_emu10k1_efx_playback_hw_free()
476 epcm->voices[i] = NULL; in snd_emu10k1_efx_playback_hw_free()
506 snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], in snd_emu10k1_playback_prepare()
509 if (epcm->voices[1]) in snd_emu10k1_playback_prepare()
510 snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[1], in snd_emu10k1_playback_prepare()
537 snd_emu10k1_pcm_init_voice(emu, 1, 0, epcm->voices[0], in snd_emu10k1_efx_playback_prepare()
543 snd_emu10k1_pcm_init_voice(emu, 0, 0, epcm->voices[i], in snd_emu10k1_efx_playback_prepare()
755 snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[0]); in snd_emu10k1_playback_trigger()
762 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 1, 0, mix); in snd_emu10k1_playback_trigger()
763 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[1], 0, 0, mix); in snd_emu10k1_playback_trigger()
765 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 1, 0); in snd_emu10k1_playback_trigger()
766 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[1], 0, 0); in snd_emu10k1_playback_trigger()
774 snd_emu10k1_playback_stop_voice(emu, epcm->voices[0]); in snd_emu10k1_playback_trigger()
775 snd_emu10k1_playback_stop_voice(emu, epcm->voices[1]); in snd_emu10k1_playback_trigger()
864 ptr = snd_emu10k1_ptr_read(emu, CCCA, epcm->voices[0]->number) & 0x00ffffff; in snd_emu10k1_playback_pointer()
902 snd_emu10k1_playback_invalidate_cache(emu, 0, epcm->voices[i]); in snd_emu10k1_efx_playback_trigger()
909 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[0], 0, 0, in snd_emu10k1_efx_playback_trigger()
912 snd_emu10k1_playback_prepare_voice(emu, epcm->voices[i], 0, 0, in snd_emu10k1_efx_playback_trigger()
914 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[0], 0, 0); in snd_emu10k1_efx_playback_trigger()
917 snd_emu10k1_playback_trigger_voice(emu, epcm->voices[i], 0, 0); in snd_emu10k1_efx_playback_trigger()
925 snd_emu10k1_playback_stop_voice(emu, epcm->voices[i]); in snd_emu10k1_efx_playback_trigger()