Lines Matching defs:pvoice

834 	struct snd_ali_voice *pvoice;
847 pvoice = &codec->synth.voices[channel];
852 if (pvoice->pcm && pvoice->substream) {
854 if (pvoice->running) {
860 snd_pcm_period_elapsed(pvoice->substream);
911 struct snd_ali_voice *pvoice;
925 pvoice = &(codec->synth.voices[idx]);
926 pvoice->codec = codec;
927 pvoice->use = 1;
928 pvoice->pcm = 1;
929 pvoice->mode = rec;
931 return pvoice;
939 struct snd_ali_voice *pvoice)
944 dev_dbg(codec->card->dev, "free_voice: channel=%d\n", pvoice->number);
945 if (!pvoice->use)
947 snd_ali_clear_voices(codec, pvoice->number, pvoice->number);
949 private_free = pvoice->private_free;
950 private_data = pvoice->private_data;
951 pvoice->private_free = NULL;
952 pvoice->private_data = NULL;
953 if (pvoice->pcm)
954 snd_ali_free_channel_pcm(codec, pvoice->number);
955 pvoice->use = pvoice->pcm = pvoice->synth = 0;
956 pvoice->substream = NULL;
1073 struct snd_ali_voice *pvoice, *evoice;
1093 pvoice = s->runtime->private_data;
1094 evoice = pvoice->extra;
1095 what |= 1 << (pvoice->number & 0x1f);
1097 whati |= 1 << (pvoice->number & 0x1f);
1103 pvoice->running = 1;
1107 pvoice->running = 0;
1136 struct snd_ali_voice *pvoice = runtime->private_data;
1137 struct snd_ali_voice *evoice = pvoice->extra;
1149 pvoice->extra = evoice;
1155 pvoice->extra = evoice = NULL;
1166 struct snd_ali_voice *pvoice = runtime->private_data;
1167 struct snd_ali_voice *evoice = pvoice ? pvoice->extra : NULL;
1171 pvoice->extra = NULL;
1180 struct snd_ali_voice *pvoice = runtime->private_data;
1181 struct snd_ali_voice *evoice = pvoice->extra;
1199 if (pvoice->number == ALI_SPDIF_IN_CHANNEL ||
1200 pvoice->number == ALI_PCM_IN_CHANNEL)
1201 snd_ali_disable_special_channel(codec, pvoice->number);
1205 && pvoice->number == ALI_SPDIF_OUT_CHANNEL) {
1214 pvoice->count = runtime->period_size;
1217 pvoice->eso = runtime->buffer_size;
1220 pvoice->eso, pvoice->count);
1223 ESO = pvoice->eso -1;
1234 pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL);
1236 pvoice->number,
1248 evoice->count = pvoice->count;
1249 evoice->eso = pvoice->count << 1;
1273 struct snd_ali_voice *pvoice = runtime->private_data;
1288 snd_ali_enable_special_channel(codec,pvoice->number);
1290 Delta = (pvoice->number == ALI_MODEM_IN_CHANNEL ||
1291 pvoice->number == ALI_MODEM_OUT_CHANNEL) ?
1292 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode);
1295 if (pvoice->number == ALI_SPDIF_IN_CHANNEL) {
1322 pvoice->eso = runtime->buffer_size;
1325 pvoice->count = runtime->period_size;
1331 ESO = pvoice->eso - 1;
1339 pvoice->number,
1362 struct snd_ali_voice *pvoice = runtime->private_data;
1366 if (!pvoice->running) {
1370 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1384 struct snd_ali_voice *pvoice = runtime->private_data;
1388 if (!pvoice->running) {
1392 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1450 struct snd_ali_voice *pvoice = runtime->private_data;
1452 if (pvoice)
1453 snd_ali_free_voice(pvoice->codec, pvoice);
1461 struct snd_ali_voice *pvoice;
1463 pvoice = snd_ali_alloc_voice(codec, SNDRV_ALI_VOICE_TYPE_PCM, rec,
1465 if (!pvoice)
1468 pvoice->substream = substream;
1469 runtime->private_data = pvoice;
1497 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1499 snd_ali_disable_special_channel(codec,pvoice->number);