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
89 * @open: Open the compressed stream
90 * This callback is mandatory and shall keep dsp ready to receive the stream
92 * @free: Close the compressed stream, mandatory
93 * @set_params: Sets the compressed stream parameters, mandatory
94 * This can be called in during stream creation only to set codec params
95 * and the stream properties
97 * @set_metadata: Set the metadata values for a stream
98 * @get_metadata: retrieves the requested metadata values from stream
111 int (*open)(struct snd_compr_stream *stream);
112 int (*free)(struct snd_compr_stream *stream);
113 int (*set_params)(struct snd_compr_stream *stream,
115 int (*get_params)(struct snd_compr_stream *stream,
117 int (*set_metadata)(struct snd_compr_stream *stream,
119 int (*get_metadata)(struct snd_compr_stream *stream,
121 int (*trigger)(struct snd_compr_stream *stream, int cmd);
122 int (*pointer)(struct snd_compr_stream *stream,
124 int (*copy)(struct snd_compr_stream *stream, char __user *buf,
126 int (*mmap)(struct snd_compr_stream *stream,
128 int (*ack)(struct snd_compr_stream *stream, size_t bytes);
129 int (*get_caps) (struct snd_compr_stream *stream,
131 int (*get_codec_caps) (struct snd_compr_stream *stream,
177 static inline void snd_compr_fragment_elapsed(struct snd_compr_stream *stream)
179 wake_up(&stream->runtime->sleep);
182 static inline void snd_compr_drain_notify(struct snd_compr_stream *stream)
184 if (snd_BUG_ON(!stream))
188 if (stream->partial_drain) {
189 stream->runtime->state = SNDRV_PCM_STATE_RUNNING;
190 stream->partial_drain = false; /* clear this flag as well */
192 stream->runtime->state = SNDRV_PCM_STATE_SETUP;
195 wake_up(&stream->runtime->sleep);
200 * @stream: compress stream to set
207 snd_compr_set_runtime_buffer(struct snd_compr_stream *stream,
210 struct snd_compr_runtime *runtime = stream->runtime;
225 int snd_compr_malloc_pages(struct snd_compr_stream *stream, size_t size);
226 int snd_compr_free_pages(struct snd_compr_stream *stream);
228 int snd_compr_stop_error(struct snd_compr_stream *stream,