Lines Matching refs:stream
10 #include <sound/sof/stream.h>
715 elem->size, "stream",
759 dev_dbg(sdev->dev, " stream region 0x%x - size 0x%x\n",
869 /* IPC stream position. */
873 struct snd_sof_pcm_stream *stream;
880 dev_err(sdev->dev, "period elapsed for unknown stream, msg_id %d\n",
885 stream = &spcm->stream[direction];
886 ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
888 dev_warn(sdev->dev, "failed to read stream position: %d\n", ret);
894 memcpy(&stream->posn, &posn, sizeof(posn));
897 snd_sof_compr_fragment_elapsed(stream->cstream);
898 else if (stream->substream->runtime &&
899 !stream->substream->runtime->no_period_wakeup)
901 snd_sof_pcm_period_elapsed(stream->substream);
908 struct snd_sof_pcm_stream *stream;
915 dev_err(sdev->dev, "XRUN for unknown stream, msg_id %d\n",
920 stream = &spcm->stream[direction];
921 ret = snd_sof_ipc_msg_data(sdev, stream, &posn, sizeof(posn));
932 memcpy(&stream->posn, &posn, sizeof(posn));
933 snd_pcm_stop_xrun(stream->substream);
937 /* stream notifications from firmware */
952 dev_err(sdev->dev, "unhandled stream message %#x\n",