Lines Matching defs:runtime
992 struct snd_pcm_runtime *runtime = substream->runtime;
1005 snd_dma_program(chip->dma1, runtime->dma_addr, size,
1008 format = snd_opti93x_get_freq(runtime->rate);
1009 format |= snd_opti93x_get_format(chip, runtime->format,
1010 runtime->channels);
1025 struct snd_pcm_runtime *runtime = substream->runtime;
1037 snd_dma_program(chip->dma2, runtime->dma_addr, size,
1040 format = snd_opti93x_get_freq(runtime->rate);
1041 format |= snd_opti93x_get_format(chip, runtime->format,
1042 runtime->channels);
1063 return bytes_to_frames(substream->runtime, ptr);
1075 return bytes_to_frames(substream->runtime, ptr);
1086 chip->capture_substream->runtime->overrange++;
1148 struct snd_pcm_runtime *runtime = substream->runtime;
1154 runtime->hw = snd_opti93x_playback;
1155 snd_pcm_limit_isa_dma_size(chip->dma1, &runtime->hw.buffer_bytes_max);
1156 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1164 struct snd_pcm_runtime *runtime = substream->runtime;
1168 runtime->hw = snd_opti93x_capture;
1171 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max);
1172 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);