Lines Matching refs:stream
47 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
49 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
50 if (!stream) in sst_platform_compr_open()
53 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
61 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
62 stream->id = 0; in sst_platform_compr_open()
67 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
68 runtime->private_data = stream; in sst_platform_compr_open()
71 kfree(stream); in sst_platform_compr_open()
78 struct sst_runtime_stream *stream; in sst_platform_compr_free() local
81 stream = cstream->runtime->private_data; in sst_platform_compr_free()
86 str_id = stream->id; in sst_platform_compr_free()
88 ret_val = stream->compr_ops->close(sst->dev, str_id); in sst_platform_compr_free()
90 kfree(stream); in sst_platform_compr_free()
99 struct sst_runtime_stream *stream; in sst_platform_compr_set_params() local
105 stream = cstream->runtime->private_data; in sst_platform_compr_set_params()
159 retval = stream->compr_ops->open(sst->dev, &str_params, &cb); in sst_platform_compr_set_params()
165 stream->id = retval; in sst_platform_compr_set_params()
172 struct sst_runtime_stream *stream = cstream->runtime->private_data; in sst_platform_compr_trigger() local
176 if (stream->compr_ops->stream_start) in sst_platform_compr_trigger()
177 return stream->compr_ops->stream_start(sst->dev, stream->id); in sst_platform_compr_trigger()
180 if (stream->compr_ops->stream_drop) in sst_platform_compr_trigger()
181 return stream->compr_ops->stream_drop(sst->dev, stream->id); in sst_platform_compr_trigger()
184 if (stream->compr_ops->stream_drain) in sst_platform_compr_trigger()
185 return stream->compr_ops->stream_drain(sst->dev, stream->id); in sst_platform_compr_trigger()
188 if (stream->compr_ops->stream_partial_drain) in sst_platform_compr_trigger()
189 return stream->compr_ops->stream_partial_drain(sst->dev, stream->id); in sst_platform_compr_trigger()
192 if (stream->compr_ops->stream_pause) in sst_platform_compr_trigger()
193 return stream->compr_ops->stream_pause(sst->dev, stream->id); in sst_platform_compr_trigger()
196 if (stream->compr_ops->stream_pause_release) in sst_platform_compr_trigger()
197 return stream->compr_ops->stream_pause_release(sst->dev, stream->id); in sst_platform_compr_trigger()
207 struct sst_runtime_stream *stream; in sst_platform_compr_pointer() local
209 stream = cstream->runtime->private_data; in sst_platform_compr_pointer()
210 stream->compr_ops->tstamp(sst->dev, stream->id, tstamp); in sst_platform_compr_pointer()
221 struct sst_runtime_stream *stream; in sst_platform_compr_ack() local
223 stream = cstream->runtime->private_data; in sst_platform_compr_ack()
224 stream->compr_ops->ack(sst->dev, stream->id, (unsigned long)bytes); in sst_platform_compr_ack()
225 stream->bytes_written += bytes; in sst_platform_compr_ack()
234 struct sst_runtime_stream *stream = in sst_platform_compr_get_caps() local
237 return stream->compr_ops->get_caps(caps); in sst_platform_compr_get_caps()
244 struct sst_runtime_stream *stream = in sst_platform_compr_get_codec_caps() local
247 return stream->compr_ops->get_codec_caps(codec); in sst_platform_compr_get_codec_caps()
254 struct sst_runtime_stream *stream = in sst_platform_compr_set_metadata() local
257 return stream->compr_ops->set_metadata(sst->dev, stream->id, metadata); in sst_platform_compr_set_metadata()