Lines Matching refs:runtime
99 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params()
107 dmab = substream->runtime->dma_buffer_p; in hda_dsp_pcm_hw_params()
149 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack()
150 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_ack() local
154 appl_pos = frames_to_bytes(runtime, runtime->control->appl_ptr); in hda_dsp_pcm_ack()
155 buf_size = frames_to_bytes(runtime, runtime->buffer_size); in hda_dsp_pcm_ack()
171 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_trigger()
182 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_pointer()
202 pos = bytes_to_frames(substream->runtime, pos); in hda_dsp_pcm_pointer()
212 struct snd_pcm_runtime *runtime = substream->runtime; in hda_dsp_pcm_open() local
230 runtime->hw.info |= SNDRV_PCM_INFO_NO_REWINDS | SNDRV_PCM_INFO_SYNC_APPLPTR; in hda_dsp_pcm_open()
237 runtime->hw.info &= ~SNDRV_PCM_INFO_PAUSE; in hda_dsp_pcm_open()
251 snd_pcm_hw_constraint_step(substream->runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4); in hda_dsp_pcm_open()
254 snd_pcm_hw_constraint_integer(substream->runtime, in hda_dsp_pcm_open()
259 snd_pcm_hw_constraint_mask64(substream->runtime, SNDRV_PCM_HW_PARAM_FORMAT, in hda_dsp_pcm_open()
263 substream->runtime->private_data = &dsp_stream->hstream; in hda_dsp_pcm_open()
270 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_close()
282 substream->runtime->private_data = NULL; in hda_dsp_pcm_close()