Lines Matching full:stream

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