Lines Matching refs:runtime

104 	struct hdac_stream *hstream = substream->runtime->private_data;  in hda_dsp_pcm_hw_params()
112 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
155 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack()
156 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() local
160 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
161 buf_size = frames_to_bytes(runtime, runtime->buffer_size); in hda_dsp_pcm_ack()
178 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger()
190 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_pointer()
210 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer()
221 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open() local
239 runtime->hw.info |= SNDRV_PCM_INFO_NO_REWINDS | SNDRV_PCM_INFO_SYNC_APPLPTR; in hda_dsp_pcm_open()
246 runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE; in hda_dsp_pcm_open()
256 runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE; in hda_dsp_pcm_open()
270 snd_pcm_hw_constraint_step(substream->runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4); in hda_dsp_pcm_open()
273 snd_pcm_hw_constraint_integer(substream->runtime, in hda_dsp_pcm_open()
277 if (runtime->hw.periods_max > HDA_DSP_MAX_BDL_ENTRIES) in hda_dsp_pcm_open()
278 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIODS, in hda_dsp_pcm_open()
279 runtime->hw.periods_min, in hda_dsp_pcm_open()
284 snd_pcm_hw_constraint_mask64(substream->runtime, SNDRV_PCM_HW_PARAM_FORMAT, in hda_dsp_pcm_open()
303 snd_pcm_hw_constraint_minmax(substream->runtime, in hda_dsp_pcm_open()
309 substream->runtime->private_data = &dsp_stream->hstream; in hda_dsp_pcm_open()
325 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_close()
337 substream->runtime->private_data = NULL; in hda_dsp_pcm_close()