Lines Matching defs:stream
141 __be32 min_free; /* min free space since stream start */
170 struct snd_compr_stream *stream;
1224 if (compr->stream)
1225 snd_compr_fragment_elapsed(compr->stream);
1233 int wm_adsp_compr_open(struct wm_adsp *dsp, struct snd_compr_stream *stream)
1236 struct snd_soc_pcm_runtime *rtd = stream->private_data;
1248 if (wm_adsp_fw[dsp->fw].compr_direction != stream->direction) {
1249 adsp_err(dsp, "%s: Firmware does not support stream direction\n",
1257 adsp_err(dsp, "%s: Only a single stream supported per dai\n",
1271 compr->stream = stream;
1276 stream->runtime->private_data = compr;
1286 struct snd_compr_stream *stream)
1288 struct wm_adsp_compr *compr = stream->runtime->private_data;
1305 static int wm_adsp_compr_check_params(struct snd_compr_stream *stream,
1308 struct wm_adsp_compr *compr = stream->runtime->private_data;
1333 if (stream->direction == SND_COMPRESS_PLAYBACK) {
1361 struct snd_compr_stream *stream,
1364 struct wm_adsp_compr *compr = stream->runtime->private_data;
1368 ret = wm_adsp_compr_check_params(stream, params);
1389 struct snd_compr_stream *stream,
1392 struct wm_adsp_compr *compr = stream->runtime->private_data;
1701 struct snd_compr_stream *stream, int cmd)
1703 struct wm_adsp_compr *compr = stream->runtime->private_data;
1716 compr_err(compr, "Failed to link buffer and stream: %d\n",
1775 compr_dbg(buf, "Avail check on unstarted stream\n");
1840 if (compr && compr->stream)
1841 snd_compr_fragment_elapsed(compr->stream);
1865 struct snd_compr_stream *stream,
1868 struct wm_adsp_compr *compr = stream->runtime->private_data;
1880 snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN);
1900 snd_compr_stop_error(stream,
1990 snd_compr_stop_error(compr->stream, SNDRV_PCM_STATE_XRUN);
2024 struct snd_compr_stream *stream, char __user *buf,
2027 struct wm_adsp_compr *compr = stream->runtime->private_data;
2033 if (stream->direction == SND_COMPRESS_CAPTURE)
2052 if (compr->stream)
2053 snd_compr_fragment_elapsed(compr->stream);