Lines Matching defs:stream
432 __be32 min_free; /* min free space since stream start */
461 struct snd_compr_stream *stream;
3481 if (compr->stream)
3482 snd_compr_fragment_elapsed(compr->stream);
3490 int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream)
3493 struct snd_soc_pcm_runtime *rtd = stream->private_data;
3505 if (wm_adsp_fw[dsp->fw].compr_direction != stream->direction) {
3506 adsp_err(dsp, "%s: Firmware does not support stream direction\n",
3514 adsp_err(dsp, "%s: Only a single stream supported per dai\n",
3528 compr->stream = stream;
3533 stream->runtime->private_data = compr;
3543 struct snd_compr_stream *stream)
3545 struct wm_adsp_compr *compr = stream->runtime->private_data;
3562 static int wm_adsp_compr_check_params(struct snd_compr_stream *stream,
3565 struct wm_adsp_compr *compr = stream->runtime->private_data;
3590 if (stream->direction == SND_COMPRESS_PLAYBACK) {
3618 struct snd_compr_stream *stream,
3621 struct wm_adsp_compr *compr = stream->runtime->private_data;
3625 ret = wm_adsp_compr_check_params(stream, params);
3646 struct snd_compr_stream *stream,
3649 struct wm_adsp_compr *compr = stream->runtime->private_data;
4017 struct snd_compr_stream *stream, int cmd)
4019 struct wm_adsp_compr *compr = stream->runtime->private_data;
4032 compr_err(compr, "Failed to link buffer and stream: %d\n",
4091 compr_dbg(buf, "Avail check on unstarted stream\n");
4156 if (compr && compr->stream)
4157 snd_compr_fragment_elapsed(compr->stream);
4181 struct snd_compr_stream *stream,
4184 struct wm_adsp_compr *compr = stream->runtime->private_data;
4196 snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN);
4216 snd_compr_stop_error(stream,
4306 snd_compr_stop_error(compr->stream, SNDRV_PCM_STATE_XRUN);
4340 struct snd_compr_stream *stream, char __user *buf,
4343 struct wm_adsp_compr *compr = stream->runtime->private_data;
4349 if (stream->direction == SND_COMPRESS_CAPTURE)
4367 if (compr->stream)
4368 snd_compr_fragment_elapsed(compr->stream);