Lines Matching defs:stream

23  * struct snd_compr_runtime: runtime stream description
24 * @state: stream state
60 * struct snd_compr_stream: compressed stream
65 * @error_work: delayed work used when closing the stream due to an error
66 * @direction: stream direction, playback/recording
69 * @partial_drain: undergoing partial_drain for stream, true when set
91 * @open: Open the compressed stream
92 * This callback is mandatory and shall keep dsp ready to receive the stream
94 * @free: Close the compressed stream, mandatory
95 * @set_params: Sets the compressed stream parameters, mandatory
96 * This can be called in during stream creation only to set codec params
97 * and the stream properties
99 * @set_metadata: Set the metadata values for a stream
100 * @get_metadata: retrieves the requested metadata values from stream
113 int (*open)(struct snd_compr_stream *stream);
114 int (*free)(struct snd_compr_stream *stream);
115 int (*set_params)(struct snd_compr_stream *stream,
117 int (*get_params)(struct snd_compr_stream *stream,
119 int (*set_metadata)(struct snd_compr_stream *stream,
121 int (*get_metadata)(struct snd_compr_stream *stream,
123 int (*trigger)(struct snd_compr_stream *stream, int cmd);
124 int (*pointer)(struct snd_compr_stream *stream,
126 int (*copy)(struct snd_compr_stream *stream, char __user *buf,
128 int (*mmap)(struct snd_compr_stream *stream,
130 int (*ack)(struct snd_compr_stream *stream, size_t bytes);
131 int (*get_caps) (struct snd_compr_stream *stream,
133 int (*get_codec_caps) (struct snd_compr_stream *stream,
191 static inline void snd_compr_fragment_elapsed(struct snd_compr_stream *stream)
193 wake_up(&stream->runtime->sleep);
196 static inline void snd_compr_drain_notify(struct snd_compr_stream *stream)
198 if (snd_BUG_ON(!stream))
202 if (stream->partial_drain) {
203 stream->runtime->state = SNDRV_PCM_STATE_RUNNING;
204 stream->partial_drain = false; /* clear this flag as well */
206 stream->runtime->state = SNDRV_PCM_STATE_SETUP;
209 wake_up(&stream->runtime->sleep);
214 * @stream: compress stream to set
221 snd_compr_set_runtime_buffer(struct snd_compr_stream *stream,
224 struct snd_compr_runtime *runtime = stream->runtime;
239 int snd_compr_malloc_pages(struct snd_compr_stream *stream, size_t size);
240 int snd_compr_free_pages(struct snd_compr_stream *stream);
242 int snd_compr_stop_error(struct snd_compr_stream *stream,