Lines Matching defs:stream
168 static int keep_resources(struct snd_dice *dice, struct amdtp_stream *stream,
190 err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports,
199 amdtp_am824_set_pcm_position(stream, i, i * 2);
200 amdtp_am824_set_pcm_position(stream, i + pcm_chs,
206 amdtp_stream_get_max_payload(stream),
224 struct amdtp_stream *stream;
231 stream = &dice->tx_stream[i];
239 stream = &dice->rx_stream[i];
260 err = keep_resources(dice, stream, resources, rate, pcm_chs,
305 // return invalid stream formats. Selecting clock parameters
347 struct amdtp_stream *stream;
352 stream = dice->tx_stream + i;
355 stream = dice->rx_stream + i;
381 err = amdtp_domain_add_stream(&dice->domain, stream,
507 struct amdtp_stream *stream;
512 stream = &dice->tx_stream[index];
515 stream = &dice->rx_stream[index];
524 err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING);
526 amdtp_stream_destroy(stream);
541 struct amdtp_stream *stream;
545 stream = &dice->tx_stream[index];
548 stream = &dice->rx_stream[index];
552 amdtp_stream_destroy(stream);
640 * Available stream format is restricted at current mode of sampling
653 * invalid stream formats. Selecting clock parameters have an effect