Lines Matching defs:stream
74 /* Seek stream format for requirements. */
103 static int start_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
108 if (stream == &oxfw->rx_stream)
117 err = amdtp_domain_add_stream(&oxfw->domain, stream,
128 struct amdtp_stream *stream)
134 if (stream == &oxfw->tx_stream)
140 if ((err >= 0) && used && !amdtp_stream_running(stream)) {
151 static int init_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
171 if (stream == &oxfw->tx_stream) {
190 err = amdtp_am824_init(stream, oxfw->unit, s_dir, flags);
199 static int keep_resources(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
208 if (stream == &oxfw->rx_stream) {
239 // The stream should have one pcm channels at least.
243 err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm,
248 return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream));
252 struct amdtp_stream *stream,
272 if (stream == &oxfw->tx_stream)
298 err = set_stream_format(oxfw, stream, rate, pcm_channels);
301 "fail to set stream format: %d\n", err);
353 "fail to prepare rx stream: %d\n", err);
362 "fail to prepare tx stream: %d\n", err);
419 static void destroy_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
423 if (stream == &oxfw->tx_stream)
428 amdtp_stream_destroy(stream);
458 // This function should be called before starting the stream or after stopping
607 "fail to get current stream format for isoc %s plug %d:%d\n",
613 /* parse and set stream format */
682 "fail to get stream format %d for isoc %s plug %d:%d\n",
696 /* parse and set stream format */
718 "fail to get stream format %d for isoc %s plug %d:%d\n",