Lines Matching defs:runtime
397 #define get_azx_dev(substream) (substream->runtime->private_data)
880 dma_addr_t dma_addr = azx_dev->substream->runtime->dma_addr;
1085 struct snd_pcm_runtime *runtime = substream->runtime;
1095 runtime->hw = azx_pcm_hw;
1096 runtime->hw.channels_min = hinfo->channels_min;
1097 runtime->hw.channels_max = hinfo->channels_max;
1098 runtime->hw.formats = hinfo->formats;
1099 runtime->hw.rates = hinfo->rates;
1100 snd_pcm_limit_hw_rates(runtime);
1101 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
1102 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1104 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1116 runtime->private_data = azx_dev;
1167 struct snd_pcm_runtime *runtime = substream->runtime;
1172 azx_dev->format_val = snd_hda_calc_stream_format(runtime->rate,
1173 runtime->channels,
1174 runtime->format,
1178 runtime->rate, runtime->channels, runtime->format);
1258 return bytes_to_frames(substream->runtime, pos);