Lines Matching defs:runtime
186 int count; /* runtime->period_size */
1048 struct snd_pcm_runtime *runtime = substream->runtime;
1054 if (snd_pcm_format_width(runtime->format) == 16)
1056 if (!snd_pcm_format_unsigned(runtime->format))
1058 if (runtime->channels > 1)
1094 pvoice = s->runtime->private_data;
1136 struct snd_pcm_runtime *runtime = substream->runtime;
1137 struct snd_ali_voice *pvoice = runtime->private_data;
1166 struct snd_pcm_runtime *runtime = substream->runtime;
1167 struct snd_ali_voice *pvoice = runtime->private_data;
1180 struct snd_pcm_runtime *runtime = substream->runtime;
1181 struct snd_ali_voice *pvoice = runtime->private_data;
1198 Delta = snd_ali_convert_rate(runtime->rate, 0);
1207 snd_ali_set_spdif_out_rate(codec, runtime->rate);
1212 LBA = runtime->dma_addr;
1215 pvoice->count = runtime->period_size;
1218 pvoice->eso = runtime->buffer_size;
1235 pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL);
1273 struct snd_pcm_runtime *runtime = substream->runtime;
1274 struct snd_ali_voice *pvoice = runtime->private_data;
1293 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode);
1319 Delta = ((rate << 12) / runtime->rate) & 0x00ffff;
1323 pvoice->eso = runtime->buffer_size;
1326 pvoice->count = runtime->period_size;
1329 LBA = runtime->dma_addr;
1362 struct snd_pcm_runtime *runtime = substream->runtime;
1363 struct snd_ali_voice *pvoice = runtime->private_data;
1376 cso %= runtime->buffer_size;
1384 struct snd_pcm_runtime *runtime = substream->runtime;
1385 struct snd_ali_voice *pvoice = runtime->private_data;
1397 cso %= runtime->buffer_size;
1449 static void snd_ali_pcm_free_substream(struct snd_pcm_runtime *runtime)
1451 struct snd_ali_voice *pvoice = runtime->private_data;
1461 struct snd_pcm_runtime *runtime = substream->runtime;
1470 runtime->private_data = pvoice;
1471 runtime->private_free = snd_ali_pcm_free_substream;
1473 runtime->hw = *phw;
1475 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
1498 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1573 return snd_pcm_hw_constraint_list(substream->runtime, 0,