Lines Matching refs:pvoices

36 	struct snd_gus_voice *pvoices[2];
134 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
153 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
163 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number);
202 snd_gf1_select_voice(gus, pcmp->pvoices[1]->number);
223 snd_gf1_select_voice(gus, pcmp->pvoices[idx]->number);
233 snd_gf1_select_voice(gus, pcmp->pvoices[idx]->number);
274 cvoice = pcmp->pvoices[0] == pvoice ? 0 : 1;
427 if (pcmp->pvoices[0] == NULL) {
428 pcmp->pvoices[0] = snd_gf1_alloc_voice(pcmp->gus, SNDRV_GF1_VOICE_TYPE_PCM, 0, 0);
429 if (!pcmp->pvoices[0])
431 pcmp->pvoices[0]->handler_wave = snd_gf1_pcm_interrupt_wave;
432 pcmp->pvoices[0]->handler_volume = snd_gf1_pcm_interrupt_volume;
433 pcmp->pvoices[0]->volume_change = snd_gf1_pcm_volume_change;
434 pcmp->pvoices[0]->private_data = pcmp;
436 if (pcmp->voices > 1 && pcmp->pvoices[1] == NULL) {
437 pcmp->pvoices[1] = snd_gf1_alloc_voice(pcmp->gus, SNDRV_GF1_VOICE_TYPE_PCM, 0, 0);
438 if (!pcmp->pvoices[1])
440 pcmp->pvoices[1]->handler_wave = snd_gf1_pcm_interrupt_wave;
441 pcmp->pvoices[1]->handler_volume = snd_gf1_pcm_interrupt_volume;
442 pcmp->pvoices[1]->volume_change = snd_gf1_pcm_volume_change;
443 pcmp->pvoices[1]->private_data = pcmp;
445 if (pcmp->pvoices[1]) {
446 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[1]);
447 pcmp->pvoices[1] = NULL;
458 if (pcmp->pvoices[0]) {
459 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[0]);
460 pcmp->pvoices[0] = NULL;
462 if (pcmp->pvoices[1]) {
463 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[1]);
464 pcmp->pvoices[1] = NULL;
499 voice = pcmp->pvoices[0]->number;
501 if (pcmp->pvoices[1]) {
502 voice = pcmp->pvoices[1]->number;
522 snd_gf1_select_voice(gus, pcmp->pvoices[0]->number);
782 vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;