Lines Matching defs:runtime
185 int count; /* runtime->period_size */
1047 struct snd_pcm_runtime *runtime = substream->runtime;
1053 if (snd_pcm_format_width(runtime->format) == 16)
1055 if (!snd_pcm_format_unsigned(runtime->format))
1057 if (runtime->channels > 1)
1093 pvoice = s->runtime->private_data;
1135 struct snd_pcm_runtime *runtime = substream->runtime;
1136 struct snd_ali_voice *pvoice = runtime->private_data;
1165 struct snd_pcm_runtime *runtime = substream->runtime;
1166 struct snd_ali_voice *pvoice = runtime->private_data;
1179 struct snd_pcm_runtime *runtime = substream->runtime;
1180 struct snd_ali_voice *pvoice = runtime->private_data;
1197 Delta = snd_ali_convert_rate(runtime->rate, 0);
1206 snd_ali_set_spdif_out_rate(codec, runtime->rate);
1211 LBA = runtime->dma_addr;
1214 pvoice->count = runtime->period_size;
1217 pvoice->eso = runtime->buffer_size;
1234 pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL);
1272 struct snd_pcm_runtime *runtime = substream->runtime;
1273 struct snd_ali_voice *pvoice = runtime->private_data;
1292 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode);
1318 Delta = ((rate << 12) / runtime->rate) & 0x00ffff;
1322 pvoice->eso = runtime->buffer_size;
1325 pvoice->count = runtime->period_size;
1328 LBA = runtime->dma_addr;
1361 struct snd_pcm_runtime *runtime = substream->runtime;
1362 struct snd_ali_voice *pvoice = runtime->private_data;
1375 cso %= runtime->buffer_size;
1383 struct snd_pcm_runtime *runtime = substream->runtime;
1384 struct snd_ali_voice *pvoice = runtime->private_data;
1396 cso %= runtime->buffer_size;
1448 static void snd_ali_pcm_free_substream(struct snd_pcm_runtime *runtime)
1450 struct snd_ali_voice *pvoice = runtime->private_data;
1460 struct snd_pcm_runtime *runtime = substream->runtime;
1469 runtime->private_data = pvoice;
1470 runtime->private_free = snd_ali_pcm_free_substream;
1472 runtime->hw = *phw;
1474 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
1497 struct snd_ali_voice *pvoice = substream->runtime->private_data;
1572 return snd_pcm_hw_constraint_list(substream->runtime, 0,