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;
442 if (pcmp->pvoices[0] == NULL) {
443 if ((pcmp->pvoices[0] = snd_gf1_alloc_voice(pcmp->gus, SNDRV_GF1_VOICE_TYPE_PCM, 0, 0)) == NULL)
445 pcmp->pvoices[0]->handler_wave = snd_gf1_pcm_interrupt_wave;
446 pcmp->pvoices[0]->handler_volume = snd_gf1_pcm_interrupt_volume;
447 pcmp->pvoices[0]->volume_change = snd_gf1_pcm_volume_change;
448 pcmp->pvoices[0]->private_data = pcmp;
450 if (pcmp->voices > 1 && pcmp->pvoices[1] == NULL) {
451 if ((pcmp->pvoices[1] = snd_gf1_alloc_voice(pcmp->gus, SNDRV_GF1_VOICE_TYPE_PCM, 0, 0)) == NULL)
453 pcmp->pvoices[1]->handler_wave = snd_gf1_pcm_interrupt_wave;
454 pcmp->pvoices[1]->handler_volume = snd_gf1_pcm_interrupt_volume;
455 pcmp->pvoices[1]->volume_change = snd_gf1_pcm_volume_change;
456 pcmp->pvoices[1]->private_data = pcmp;
458 if (pcmp->pvoices[1]) {
459 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[1]);
460 pcmp->pvoices[1] = NULL;
471 if (pcmp->pvoices[0]) {
472 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[0]);
473 pcmp->pvoices[0] = NULL;
475 if (pcmp->pvoices[1]) {
476 snd_gf1_free_voice(pcmp->gus, pcmp->pvoices[1]);
477 pcmp->pvoices[1] = NULL;
512 voice = pcmp->pvoices[0]->number;
514 if (pcmp->pvoices[1]) {
515 voice = pcmp->pvoices[1]->number;
535 snd_gf1_select_voice(gus, pcmp->pvoices[0]->number);
794 vol = pvoice == pcmp->pvoices[0] ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;