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)
158 if (stream == &oxfw->tx_stream) {
172 err = amdtp_am824_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING);
184 if (stream == &oxfw->tx_stream) {
193 static int keep_resources(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
202 if (stream == &oxfw->rx_stream) {
233 // The stream should have one pcm channels at least.
237 err = amdtp_am824_set_parameters(stream, formation.rate, formation.pcm,
242 return cmp_connection_reserve(conn, amdtp_stream_get_max_payload(stream));
246 struct amdtp_stream *stream,
266 if (stream == &oxfw->tx_stream)
292 err = set_stream_format(oxfw, stream, rate, pcm_channels);
295 "fail to set stream format: %d\n", err);
344 "fail to prepare rx stream: %d\n", err);
353 "fail to prepare tx stream: %d\n", err);
404 static void destroy_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
408 if (stream == &oxfw->tx_stream)
413 amdtp_stream_destroy(stream);
443 // This function should be called before starting the stream or after stopping
592 "fail to get current stream format for isoc %s plug %d:%d\n",
598 /* parse and set stream format */
667 "fail to get stream format %d for isoc %s plug %d:%d\n",
681 /* parse and set stream format */
703 "fail to get stream format %d for isoc %s plug %d:%d\n",