Lines Matching refs:substream

95 			  struct snd_pcm_substream *substream,
99 struct hdac_stream *hstream = substream->runtime->private_data;
105 hstream->substream = substream;
107 dmab = substream->runtime->dma_buffer_p;
147 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream)
149 struct hdac_stream *hstream = substream->runtime->private_data;
150 struct snd_pcm_runtime *runtime = substream->runtime;
169 struct snd_pcm_substream *substream, int cmd)
171 struct hdac_stream *hstream = substream->runtime->private_data;
178 struct snd_pcm_substream *substream)
180 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
182 struct hdac_stream *hstream = substream->runtime->private_data;
196 pos = spcm->stream[substream->stream].posn.host_posn;
200 pos = hda_dsp_stream_get_position(hstream, substream->stream, true);
202 pos = bytes_to_frames(substream->runtime, pos);
204 trace_sof_intel_hda_dsp_pcm(sdev, hstream, substream, pos);
209 struct snd_pcm_substream *substream)
211 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
212 struct snd_pcm_runtime *runtime = substream->runtime;
216 int direction = substream->stream;
241 spcm->stream[substream->stream].d0i3_compatible)
251 snd_pcm_hw_constraint_step(substream->runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
254 snd_pcm_hw_constraint_integer(substream->runtime,
259 snd_pcm_hw_constraint_mask64(substream->runtime, SNDRV_PCM_HW_PARAM_FORMAT,
278 snd_pcm_hw_constraint_minmax(substream->runtime,
283 /* binding pcm substream to hda stream */
284 substream->runtime->private_data = &dsp_stream->hstream;
297 struct snd_pcm_substream *substream)
299 struct hdac_stream *hstream = substream->runtime->private_data;
300 int direction = substream->stream;
306 dev_dbg(sdev->dev, "stream %s not opened!\n", substream->name);
310 /* unbinding pcm substream to hda stream */
311 substream->runtime->private_data = NULL;