Lines Matching refs:runtime
109 struct snd_pcm_runtime *runtime = substream->runtime; in lx_hardware_open() local
110 int channels = runtime->channels; in lx_hardware_open()
113 snd_pcm_uframes_t period_size = runtime->period_size; in lx_hardware_open()
136 struct snd_pcm_runtime *runtime = substream->runtime; in lx_hardware_start() local
140 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
215 struct snd_pcm_runtime *runtime = substream->runtime; in lx_pcm_open() local
223 runtime->hw = lx_caps; in lx_pcm_open()
227 err = snd_pcm_hw_constraint_integer(runtime, in lx_pcm_open()
237 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_RATE, in lx_pcm_open()
246 err = snd_pcm_hw_constraint_minmax(runtime, in lx_pcm_open()
256 snd_pcm_hw_constraint_step(runtime, 0, in lx_pcm_open()
263 runtime->private_data = chip; in lx_pcm_open()
290 pos = lx_stream->frame_pos * substream->runtime->period_size; in lx_pcm_stream_pointer()
340 if (chip->board_sample_rate != substream->runtime->rate) { in lx_pcm_prepare()
342 chip->board_sample_rate = substream->runtime->rate; in lx_pcm_prepare()
431 const u32 channels = substream->runtime->channels; in lx_trigger_start()
433 const u32 period_size = substream->runtime->period_size; in lx_trigger_start()
434 const u32 periods = substream->runtime->periods; in lx_trigger_start()