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);
130 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);
147 snd_hdac_stream_reset(hdac_stream(stream));
148 err = snd_hdac_stream_set_params(hdac_stream(stream), format_val);
154 * platforms is to couple the stream before writing the format
157 snd_hdac_ext_stream_decouple(bus, stream, false);
158 err = snd_hdac_stream_setup(hdac_stream(stream));
159 snd_hdac_ext_stream_decouple(bus, stream, true);
161 err = snd_hdac_stream_setup(hdac_stream(stream));
167 hdac_stream(stream)->prepared = 1;
177 struct hdac_ext_stream *stream;
181 hstream = snd_hdac_get_stream(bus, params->stream,
186 stream = stream_to_hdac_ext_stream(hstream);
187 snd_hdac_ext_stream_decouple(bus, stream, true);
194 snd_hdac_ext_stream_reset(stream);
196 snd_hdac_ext_stream_setup(stream, format_val);
199 if (stream->hstream.direction == SNDRV_PCM_STREAM_PLAYBACK) {
207 stream->link_prepared = 1;
216 struct hdac_ext_stream *stream;
224 stream = snd_hdac_ext_stream_assign(bus, substream,
226 if (stream == NULL)
235 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
240 runtime->private_data = stream;
246 dma_params->stream_tag = hdac_stream(stream)->stream_tag;
249 dev_dbg(dai->dev, "stream tag set in dma params=%d\n",
254 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
274 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
304 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
319 dma_id = hdac_stream(stream)->stream_tag - 1;
327 p_params.stream = substream->stream;
329 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
335 m_cfg = skl_tplg_fe_get_cpr_module(dai, p_params.stream);
345 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
353 snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(bus));
373 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
383 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
390 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
399 snd_hdac_stream_cleanup(hdac_stream(stream));
400 hdac_stream(stream)->prepared = 0;
415 p_params.stream = substream->stream;
424 struct hdac_ext_stream *stream;
429 stream = get_hdac_ext_stream(substream);
430 hstr = hdac_stream(stream);
455 snd_hdac_stream_start(hdac_stream(stream));
458 snd_hdac_stream_stop(hdac_stream(stream));
472 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
473 struct hdac_stream *hstream = hdac_stream(stream);
477 mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
481 w = snd_soc_dai_get_widget(dai, substream->stream);
487 * enable DMA Resume enable bit for the stream, set the
532 snd_hdac_ext_stream_decouple(bus, stream, false);
570 snd_soc_dai_set_stream(codec_dai, hdac_stream(link_dev), substream->stream);
576 p_params.stream = substream->stream;
581 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
596 mconfig = skl_tplg_be_get_cpr_module(dai, substream->stream);
610 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
625 snd_hdac_ext_stream_decouple(bus, stream, false);
652 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1090 struct hdac_ext_stream *stream;
1097 stream = get_hdac_ext_stream(substream);
1098 hstr = hdac_stream(stream);
1125 stream = get_hdac_ext_stream(s);
1126 sbits |= 1 << hdac_stream(stream)->index;
1138 stream = get_hdac_ext_stream(s);
1140 snd_hdac_stream_start(hdac_stream(stream));
1142 snd_hdac_stream_stop(hdac_stream(stream));
1180 * Use DPIB for Playback stream as the periodic DMA Position-in-
1188 * For capture stream following workaround is required to fix the
1192 * the interrupt is generated for stream completion as update happens
1200 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1233 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)