Lines Matching refs:pvoice
218 struct snd_gus_voice * pvoice, in snd_gf1_alloc_voice_use() argument
221 pvoice->use = 1; in snd_gf1_alloc_voice_use()
225 pvoice->pcm = 1; in snd_gf1_alloc_voice_use()
228 pvoice->synth = 1; in snd_gf1_alloc_voice_use()
229 pvoice->client = client; in snd_gf1_alloc_voice_use()
230 pvoice->port = port; in snd_gf1_alloc_voice_use()
233 pvoice->midi = 1; in snd_gf1_alloc_voice_use()
234 pvoice->client = client; in snd_gf1_alloc_voice_use()
235 pvoice->port = port; in snd_gf1_alloc_voice_use()
242 struct snd_gus_voice *pvoice; in snd_gf1_alloc_voice() local
254 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
255 if (!pvoice->use) { in snd_gf1_alloc_voice()
256 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()
258 return pvoice; in snd_gf1_alloc_voice()
262 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
263 if (pvoice->midi && !pvoice->client) { in snd_gf1_alloc_voice()
264 snd_gf1_clear_voices(gus, pvoice->number, pvoice->number); in snd_gf1_alloc_voice()
265 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()
267 return pvoice; in snd_gf1_alloc_voice()