Lines Matching refs:pvoice
235 struct snd_gus_voice * pvoice, in snd_gf1_alloc_voice_use() argument
238 pvoice->use = 1; in snd_gf1_alloc_voice_use()
242 pvoice->pcm = 1; in snd_gf1_alloc_voice_use()
245 pvoice->synth = 1; in snd_gf1_alloc_voice_use()
246 pvoice->client = client; in snd_gf1_alloc_voice_use()
247 pvoice->port = port; in snd_gf1_alloc_voice_use()
250 pvoice->midi = 1; in snd_gf1_alloc_voice_use()
251 pvoice->client = client; in snd_gf1_alloc_voice_use()
252 pvoice->port = port; in snd_gf1_alloc_voice_use()
259 struct snd_gus_voice *pvoice; in snd_gf1_alloc_voice() local
271 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
272 if (!pvoice->use) { in snd_gf1_alloc_voice()
273 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()
275 return pvoice; in snd_gf1_alloc_voice()
279 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
280 if (pvoice->midi && !pvoice->client) { in snd_gf1_alloc_voice()
281 snd_gf1_clear_voices(gus, pvoice->number, pvoice->number); in snd_gf1_alloc_voice()
282 snd_gf1_alloc_voice_use(gus, pvoice, type, client, port); in snd_gf1_alloc_voice()
284 return pvoice; in snd_gf1_alloc_voice()