Lines Matching defs:runtime
294 switch (substream->runtime->rate) {
326 switch (substream->runtime->format) {
364 channels = substream->runtime->channels;
371 if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE)
374 if (substream->runtime->format == SNDRV_PCM_FORMAT_S32_LE)
603 channels = substream->runtime->channels;
610 frame2.regval = (substream->runtime->channels - 1) | (ca << 24);
613 frame2.regx.chnl_cnt = substream->runtime->channels - 1;
876 u32 addr = substream->runtime->dma_addr + ofs;
879 if (!substream->runtime->no_period_wakeup)
889 intelhaddata->pcmbuf_filled %= substream->runtime->periods;
904 struct snd_pcm_runtime *runtime = substream->runtime;
907 num_periods = runtime->periods;
912 frames_to_bytes(runtime, runtime->period_size);
933 int num_periods = substream->runtime->periods;
1065 struct snd_pcm_runtime *runtime;
1069 runtime = substream->runtime;
1075 /* set the runtime hw parameter with local snd_pcm_hardware struct */
1076 runtime->hw = had_pcm_hardware;
1078 retval = snd_pcm_hw_constraint_integer(runtime,
1086 retval = snd_pcm_hw_constraint_step(substream->runtime, 0,
1091 retval = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1191 struct snd_pcm_runtime *runtime;
1194 runtime = substream->runtime;
1197 (int)frames_to_bytes(runtime, runtime->period_size));
1198 dev_dbg(intelhaddata->dev, "periods=%d\n", runtime->periods);
1201 dev_dbg(intelhaddata->dev, "rate=%d\n", runtime->rate);
1202 dev_dbg(intelhaddata->dev, "channels=%d\n", runtime->channels);
1207 retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
1217 had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,
1254 len = bytes_to_frames(substream->runtime, len);
1256 len %= substream->runtime->buffer_size;
1291 retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
1301 had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,