Lines Matching full:pcm

10 // PCM Layer, interface between ALSA and IPC.
42 * sof pcm period elapse work
59 * sof pcm period elapse, this could be called at irq thread context.
78 * when the PCM is done draining or xrun happened, a STOP IPC will in snd_sof_pcm_period_elapsed()
111 dev_err(sdev->dev, "error: failed widget list set up for pcm %d dir %d\n", in sof_pcm_setup_connected_widgets()
112 spcm->pcm.pcm_id, dir); in sof_pcm_setup_connected_widgets()
128 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_hw_params()
154 dev_dbg(component->dev, "pcm: hw params stream %d dir %d\n", in sof_pcm_hw_params()
155 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params()
188 /* save pcm hw_params */ in sof_pcm_hw_params()
210 dev_dbg(component->dev, "pcm: free stream %d dir %d\n", in sof_pcm_hw_free()
211 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_free()
242 * want to free-up and reset all PCM/DMA resources in sof_pcm_prepare()
249 dev_dbg(component->dev, "pcm: prepare stream %d dir %d\n", in sof_pcm_prepare()
250 spcm->pcm.pcm_id, substream->stream); in sof_pcm_prepare()
257 "error: set pcm hw_params after resume\n"); in sof_pcm_prepare()
273 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_trigger()
287 dev_dbg(component->dev, "pcm: trigger stream %d dir %d cmd %d\n", in sof_pcm_trigger()
288 spcm->pcm.pcm_id, substream->stream, cmd); in sof_pcm_trigger()
374 /* free PCM if reset_hw_params is set and the STOP IPC is successful */ in sof_pcm_trigger()
386 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_pointer()
439 dev_dbg(component->dev, "pcm: open stream %d dir %d\n", in sof_pcm_open()
440 spcm->pcm.pcm_id, substream->stream); in sof_pcm_open()
443 caps = &spcm->pcm.caps[substream->stream]; in sof_pcm_open()
480 dev_err(component->dev, "error: pcm open failed %d\n", ret); in sof_pcm_open()
501 dev_dbg(component->dev, "pcm: close stream %d dir %d\n", in sof_pcm_close()
502 spcm->pcm.pcm_id, substream->stream); in sof_pcm_close()
506 dev_err(component->dev, "error: pcm close failed %d\n", in sof_pcm_close()
527 struct snd_pcm *pcm = rtd->pcm; in sof_pcm_new() local
531 /* find SOF PCM for this RTD */ in sof_pcm_new()
534 dev_warn(component->dev, "warn: can't find PCM with DAI ID %d\n", in sof_pcm_new()
539 dev_dbg(component->dev, "creating new PCM %s\n", spcm->pcm.pcm_name); in sof_pcm_new()
542 if (!spcm->pcm.playback) in sof_pcm_new()
545 caps = &spcm->pcm.caps[stream]; in sof_pcm_new()
552 if (!pcm->streams[stream].substream) { in sof_pcm_new()
557 snd_pcm_set_managed_buffer(pcm->streams[stream].substream, in sof_pcm_new()
564 if (!spcm->pcm.capture) in sof_pcm_new()
567 caps = &spcm->pcm.caps[stream]; in sof_pcm_new()
574 if (!pcm->streams[stream].substream) { in sof_pcm_new()
579 snd_pcm_set_managed_buffer(pcm->streams[stream].substream, in sof_pcm_new()
599 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_dai_link_fixup()
684 const struct sof_ipc_pcm_ops *pcm_ops = sof_ipc_get_ops(sdev, pcm); in sof_pcm_delay()
728 /* increment module refcount when a pcm is opened */ in snd_sof_new_platform_drv()