• Home
  • Raw
  • Download

Lines Matching refs:stream

31 	int stream = substream->stream;  in create_page_table()  local
38 spcm->stream[stream].page_table.area, size); in create_page_table()
94 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed()
102 struct sof_ipc_stream stream; in sof_pcm_dsp_pcm_free() local
106 stream.hdr.size = sizeof(stream); in sof_pcm_dsp_pcm_free()
107 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE; in sof_pcm_dsp_pcm_free()
108 stream.comp_id = spcm->stream[substream->stream].comp_id; in sof_pcm_dsp_pcm_free()
111 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in sof_pcm_dsp_pcm_free()
112 sizeof(stream), &reply, sizeof(reply)); in sof_pcm_dsp_pcm_free()
114 spcm->prepared[substream->stream] = false; in sof_pcm_dsp_pcm_free()
143 if (spcm->prepared[substream->stream]) { in sof_pcm_hw_params()
150 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params()
168 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_pcm_hw_params()
171 spcm->stream[substream->stream].page_table.addr; in sof_pcm_hw_params()
173 pcm.params.direction = substream->stream; in sof_pcm_hw_params()
229 spcm->prepared[substream->stream] = true; in sof_pcm_hw_params()
232 memcpy(&spcm->params[substream->stream], params, sizeof(*params)); in sof_pcm_hw_params()
254 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_free()
256 if (spcm->prepared[substream->stream]) { in sof_pcm_hw_free()
262 cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work); in sof_pcm_hw_free()
288 if (spcm->prepared[substream->stream]) in sof_pcm_prepare()
292 spcm->pcm.pcm_id, substream->stream); in sof_pcm_prepare()
296 substream, &spcm->params[substream->stream]); in sof_pcm_prepare()
316 struct sof_ipc_stream stream; in sof_pcm_trigger() local
331 spcm->pcm.pcm_id, substream->stream, cmd); in sof_pcm_trigger()
333 stream.hdr.size = sizeof(stream); in sof_pcm_trigger()
334 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG; in sof_pcm_trigger()
335 stream.comp_id = spcm->stream[substream->stream].comp_id; in sof_pcm_trigger()
339 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE; in sof_pcm_trigger()
343 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE; in sof_pcm_trigger()
346 if (spcm->stream[substream->stream].suspend_ignored) { in sof_pcm_trigger()
352 spcm->stream[substream->stream].suspend_ignored = false; in sof_pcm_trigger()
366 if (spcm->stream[substream->stream].suspend_ignored) { in sof_pcm_trigger()
372 spcm->stream[substream->stream].suspend_ignored = false; in sof_pcm_trigger()
375 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START; in sof_pcm_trigger()
379 spcm->stream[substream->stream].d0i3_compatible) { in sof_pcm_trigger()
386 spcm->stream[substream->stream].suspend_ignored = true; in sof_pcm_trigger()
391 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP; in sof_pcm_trigger()
409 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in sof_pcm_trigger()
410 sizeof(stream), &reply, sizeof(reply)); in sof_pcm_trigger()
445 spcm->stream[substream->stream].posn.host_posn); in sof_pcm_pointer()
447 spcm->stream[substream->stream].posn.dai_posn); in sof_pcm_pointer()
451 spcm->pcm.pcm_id, substream->stream, host, dai); in sof_pcm_pointer()
476 spcm->pcm.pcm_id, substream->stream); in sof_pcm_open()
479 caps = &spcm->pcm.caps[substream->stream]; in sof_pcm_open()
509 spcm->stream[substream->stream].posn.host_posn = 0; in sof_pcm_open()
510 spcm->stream[substream->stream].posn.dai_posn = 0; in sof_pcm_open()
511 spcm->stream[substream->stream].substream = substream; in sof_pcm_open()
512 spcm->prepared[substream->stream] = false; in sof_pcm_open()
538 spcm->pcm.pcm_id, substream->stream); in sof_pcm_close()
565 int stream = SNDRV_PCM_STREAM_PLAYBACK; in sof_pcm_new() local
581 caps = &spcm->pcm.caps[stream]; in sof_pcm_new()
588 if (!pcm->streams[stream].substream) { in sof_pcm_new()
593 snd_pcm_set_managed_buffer(pcm->streams[stream].substream, in sof_pcm_new()
597 stream = SNDRV_PCM_STREAM_CAPTURE; in sof_pcm_new()
603 caps = &spcm->pcm.caps[stream]; in sof_pcm_new()
610 if (!pcm->streams[stream].substream) { in sof_pcm_new()
615 snd_pcm_set_managed_buffer(pcm->streams[stream].substream, in sof_pcm_new()