Lines Matching defs:stream
24 struct acp_dsp_stream *stream = runtime->private_data;
30 stream->num_pages = PFN_UP(runtime->dma_bytes);
31 stream->dmab = substream->runtime->dma_buffer_p;
33 ret = acp_dsp_stream_config(sdev, stream);
35 dev_err(sdev->dev, "stream configuration failed\n");
40 platform_params->phy_addr = stream->reg_offset;
41 platform_params->stream_tag = stream->stream_tag;
44 /* write buffer size of stream in scratch memory */
48 index = stream->stream_tag - 1;
59 struct acp_dsp_stream *stream;
61 stream = acp_dsp_stream_get(sdev, 0);
62 if (!stream)
65 substream->runtime->private_data = stream;
66 stream->substream = substream;
74 struct acp_dsp_stream *stream;
76 stream = substream->runtime->private_data;
77 if (!stream) {
78 dev_err(sdev->dev, "No open stream\n");
82 stream->substream = NULL;
85 return acp_dsp_stream_put(sdev, stream);
94 struct snd_sof_pcm_stream *stream;
107 stream = &spcm->stream[substream->stream];
108 ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
110 dev_warn(sdev->dev, "failed to read stream position: %d\n", ret);
114 memcpy(&stream->posn, &posn, sizeof(posn));
115 pos = spcm->stream[substream->stream].posn.host_posn;