Lines Matching refs:stream
71 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
75 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
92 spcm->stream[dir].page_table.area, size); in create_page_table()
116 if (spcm->stream[dir].cstream) { in sof_compr_open()
121 spcm->stream[dir].cstream = cstream; in sof_compr_open()
122 spcm->stream[dir].posn.host_posn = 0; in sof_compr_open()
123 spcm->stream[dir].posn.dai_posn = 0; in sof_compr_open()
137 struct sof_ipc_stream stream; in sof_compr_free() local
145 stream.hdr.size = sizeof(stream); in sof_compr_free()
146 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE; in sof_compr_free()
147 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_free()
150 ret = sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream)); in sof_compr_free()
155 cancel_work_sync(&spcm->stream[cstream->direction].period_elapsed_work); in sof_compr_free()
156 spcm->stream[cstream->direction].cstream = NULL; in sof_compr_free()
216 pcm->comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_set_params()
218 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params()
239 ret = snd_sof_set_stream_data_offset(sdev, &spcm->stream[cstream->direction], in sof_compr_set_params()
273 struct sof_ipc_stream stream; in sof_compr_trigger() local
280 stream.hdr.size = sizeof(stream); in sof_compr_trigger()
281 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG; in sof_compr_trigger()
282 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_trigger()
286 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START; in sof_compr_trigger()
289 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP; in sof_compr_trigger()
292 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE; in sof_compr_trigger()
295 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE; in sof_compr_trigger()
302 return sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream)); in sof_compr_trigger()
376 tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn, in sof_compr_pointer()