Lines Matching defs:stream

31 	int stream = substream->stream;
38 spcm->stream[stream].page_table.area, size);
71 "error: period elapsed for unknown stream!\n");
83 schedule_work(&spcm->stream[substream->stream].period_elapsed_work);
107 spcm->stream[dir].list = list;
113 spcm->stream[dir].list = NULL;
146 if (pcm_ops && pcm_ops->hw_free && spcm->prepared[substream->stream]) {
151 spcm->prepared[substream->stream] = false;
154 dev_dbg(component->dev, "pcm: hw params stream %d dir %d\n",
155 spcm->pcm.pcm_id, substream->stream);
164 if (!spcm->stream[substream->stream].list) {
166 substream->stream);
186 spcm->prepared[substream->stream] = true;
189 memcpy(&spcm->params[substream->stream], params, sizeof(*params));
211 dev_dbg(component->dev, "pcm: free stream %d dir %d\n",
212 spcm->pcm.pcm_id, substream->stream);
214 if (spcm->prepared[substream->stream]) {
226 spcm->prepared[substream->stream] = false;
237 ret = sof_widget_list_free(sdev, spcm, substream->stream);
241 cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work);
261 if (spcm->prepared[substream->stream])
264 dev_dbg(component->dev, "pcm: prepare stream %d dir %d\n",
265 spcm->pcm.pcm_id, substream->stream);
269 substream, &spcm->params[substream->stream]);
302 dev_dbg(component->dev, "pcm: trigger stream %d dir %d cmd %d\n",
303 spcm->pcm.pcm_id, substream->stream, cmd);
314 if (spcm->stream[substream->stream].suspend_ignored) {
320 spcm->stream[substream->stream].suspend_ignored = false;
329 spcm->stream[substream->stream].d0i3_compatible) {
336 spcm->stream[substream->stream].suspend_ignored = true;
381 ret = sof_pcm_stream_free(sdev, substream, spcm, substream->stream, false);
408 spcm->stream[substream->stream].posn.host_posn);
410 spcm->stream[substream->stream].posn.dai_posn);
436 dev_dbg(component->dev, "pcm: open stream %d dir %d\n",
437 spcm->pcm.pcm_id, substream->stream);
440 caps = &spcm->pcm.caps[substream->stream];
470 spcm->stream[substream->stream].posn.host_posn = 0;
471 spcm->stream[substream->stream].posn.dai_posn = 0;
472 spcm->stream[substream->stream].substream = substream;
473 spcm->prepared[substream->stream] = false;
498 dev_dbg(component->dev, "pcm: close stream %d dir %d\n",
499 spcm->pcm.pcm_id, substream->stream);
526 int stream = SNDRV_PCM_STREAM_PLAYBACK;
542 caps = &spcm->pcm.caps[stream];
549 if (!pcm->streams[stream].substream) {
554 snd_pcm_set_managed_buffer(pcm->streams[stream].substream,
558 stream = SNDRV_PCM_STREAM_CAPTURE;
564 caps = &spcm->pcm.caps[stream];
571 if (!pcm->streams[stream].substream) {
576 snd_pcm_set_managed_buffer(pcm->streams[stream].substream,