• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/ali5451/

Lines Matching refs:pvoice

857 	struct snd_ali_voice *pvoice;
874 pvoice = &codec->synth.voices[channel];
875 runtime = pvoice->substream->runtime;
880 if (pvoice->pcm && pvoice->substream) {
883 outb((u8)(pvoice->number), ALI_REG(codec, ALI_GC_CIR));
887 if (pvoice->running) {
891 snd_pcm_period_elapsed(pvoice->substream);
942 struct snd_ali_voice *pvoice;
956 pvoice = &(codec->synth.voices[idx]);
957 pvoice->codec = codec;
958 pvoice->use = 1;
959 pvoice->pcm = 1;
960 pvoice->mode = rec;
962 return pvoice;
970 struct snd_ali_voice *pvoice)
975 snd_ali_printk("free_voice: channel=%d\n",pvoice->number);
976 if (!pvoice->use)
978 snd_ali_clear_voices(codec, pvoice->number, pvoice->number);
980 private_free = pvoice->private_free;
981 private_data = pvoice->private_data;
982 pvoice->private_free = NULL;
983 pvoice->private_data = NULL;
984 if (pvoice->pcm)
985 snd_ali_free_channel_pcm(codec, pvoice->number);
986 pvoice->use = pvoice->pcm = pvoice->synth = 0;
987 pvoice->substream = NULL;
1104 struct snd_ali_voice *pvoice, *evoice;
1124 pvoice = s->runtime->private_data;
1125 evoice = pvoice->extra;
1126 what |= 1 << (pvoice->number & 0x1f);
1128 whati |= 1 << (pvoice->number & 0x1f);
1134 pvoice->running = 1;
1138 pvoice->running = 0;
1143 if (pvoice->mode)
1169 struct snd_ali_voice *pvoice = runtime->private_data;
1170 struct snd_ali_voice *evoice = pvoice->extra;
1188 pvoice->extra = evoice;
1194 pvoice->extra = evoice = NULL;
1205 struct snd_ali_voice *pvoice = runtime->private_data;
1206 struct snd_ali_voice *evoice = pvoice ? pvoice->extra : NULL;
1211 pvoice->extra = NULL;
1232 struct snd_ali_voice *pvoice = runtime->private_data;
1233 struct snd_ali_voice *evoice = pvoice->extra;
1251 if (pvoice->number == ALI_SPDIF_IN_CHANNEL ||
1252 pvoice->number == ALI_PCM_IN_CHANNEL)
1253 snd_ali_disable_special_channel(codec, pvoice->number);
1257 && pvoice->number == ALI_SPDIF_OUT_CHANNEL) {
1266 pvoice->count = runtime->period_size;
1269 pvoice->eso = runtime->buffer_size;
1272 pvoice->eso, pvoice->count);
1275 ESO = pvoice->eso -1;
1285 pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL);
1287 pvoice->number,
1299 evoice->count = pvoice->count;
1300 evoice->eso = pvoice->count << 1;
1324 struct snd_ali_voice *pvoice = runtime->private_data;
1339 snd_ali_enable_special_channel(codec,pvoice->number);
1341 Delta = (pvoice->number == ALI_MODEM_IN_CHANNEL ||
1342 pvoice->number == ALI_MODEM_OUT_CHANNEL) ?
1343 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode);
1346 if (pvoice->number == ALI_SPDIF_IN_CHANNEL) {
1372 pvoice->eso = runtime->buffer_size;
1375 pvoice->count = runtime->period_size;
1381 ESO = pvoice->eso - 1;
1389 pvoice->number,
1412 struct snd_ali_voice *pvoice = runtime->private_data;
1416 if (!pvoice->running) {
1420 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1433 struct snd_ali_voice *pvoice = runtime->private_data;
1437 if (!pvoice->running) {
1441 outb(pvoice->number, ALI_REG(codec, ALI_GC_CIR));
1498 struct snd_ali_voice *pvoice = runtime->private_data;
1501 if (pvoice) {
1502 codec = pvoice->codec;
1503 snd_ali_free_voice(pvoice->codec, pvoice);
1512 struct snd_ali_voice *pvoice;
1514 pvoice = snd_ali_alloc_voice(codec, SNDRV_ALI_VOICE_TYPE_PCM, rec,
1516 if (!pvoice)
1519 pvoice->substream = substream;
1520 runtime->private_data = pvoice;
1548 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1550 snd_ali_disable_special_channel(codec,pvoice->number);