Lines Matching refs:stream

65 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
66 struct hdac_stream *hstream = hdac_stream(stream);
75 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
77 hdac_stream(stream)->bufsize = 0;
78 hdac_stream(stream)->period_bytes = 0;
79 hdac_stream(stream)->format_val = 0;
103 * check if the stream opened is marked as ignore_suspend by machine, if so
116 w = snd_soc_dai_get_widget(dai, substream->stream);
129 struct hdac_ext_stream *stream;
133 hstream = snd_hdac_get_stream(bus, params->stream,
138 stream = stream_to_hdac_ext_stream(hstream);
139 snd_hdac_ext_stream_decouple(bus, stream, true);
148 snd_hdac_stream_reset(hdac_stream(stream));
149 err = snd_hdac_stream_set_params(hdac_stream(stream), format_val);
153 err = snd_hdac_ext_host_stream_setup(stream, false);
157 hdac_stream(stream)->prepared = 1;
167 struct hdac_ext_stream *stream;
172 hstream = snd_hdac_get_stream(bus, params->stream,
177 stream = stream_to_hdac_ext_stream(hstream);
178 snd_hdac_ext_stream_decouple(bus, stream, true);
187 snd_hdac_ext_stream_reset(stream);
189 snd_hdac_ext_stream_setup(stream, format_val);
192 if (stream->hstream.direction == SNDRV_PCM_STREAM_PLAYBACK) {
200 stream->link_prepared = 1;
209 struct hdac_ext_stream *stream;
217 stream = snd_hdac_ext_stream_assign(bus, substream,
219 if (stream == NULL)
228 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
233 runtime->private_data = stream;
239 dma_params->stream_tag = hdac_stream(stream)->stream_tag;
242 dev_dbg(dai->dev, "stream tag set in dma params=%d\n",
247 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
267 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
297 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
312 dma_id = hdac_stream(stream)->stream_tag - 1;
320 p_params.stream = substream->stream;
322 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
328 m_cfg = skl_tplg_fe_get_cpr_module(dai, p_params.stream);
338 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
346 snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(bus));
366 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
376 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
383 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
392 snd_hdac_stream_cleanup(hdac_stream(stream));
393 hdac_stream(stream)->prepared = 0;
408 p_params.stream = substream->stream;
417 struct hdac_ext_stream *stream;
422 stream = get_hdac_ext_stream(substream);
423 hstr = hdac_stream(stream);
448 snd_hdac_stream_start(hdac_stream(stream));
451 snd_hdac_stream_stop(hdac_stream(stream));
465 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
466 struct hdac_stream *hstream = hdac_stream(stream);
470 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
474 w = snd_soc_dai_get_widget(dai, substream->stream);
480 * enable DMA Resume enable bit for the stream, set the
528 snd_hdac_ext_stream_decouple(bus, stream, false);
566 snd_soc_dai_set_stream(codec_dai, hdac_stream(link_dev), substream->stream);
572 p_params.stream = substream->stream;
577 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
592 mconfig = skl_tplg_be_get_cpr_module(dai, substream->stream);
606 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
621 snd_hdac_ext_stream_decouple(bus, stream, false);
648 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1086 struct hdac_ext_stream *stream;
1093 stream = get_hdac_ext_stream(substream);
1094 hstr = hdac_stream(stream);
1121 stream = get_hdac_ext_stream(s);
1122 sbits |= 1 << hdac_stream(stream)->index;
1134 stream = get_hdac_ext_stream(s);
1136 snd_hdac_stream_start(hdac_stream(stream));
1138 snd_hdac_stream_stop(hdac_stream(stream));
1176 * Use DPIB for Playback stream as the periodic DMA Position-in-
1184 * For capture stream following workaround is required to fix the
1188 * the interrupt is generated for stream completion as update happens
1196 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1229 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)