Lines Matching refs:stream
87 static void stop_stream(struct snd_dice *dice, struct amdtp_stream *stream) in stop_stream() argument
89 amdtp_stream_pcm_abort(stream); in stop_stream()
90 amdtp_stream_stop(stream); in stop_stream()
92 if (stream == &dice->tx_stream) in stop_stream()
98 static int start_stream(struct snd_dice *dice, struct amdtp_stream *stream, in start_stream() argument
109 if (stream == &dice->tx_stream) { in start_stream()
135 err = amdtp_am824_set_parameters(stream, rate, pcm_chs, midi_ports, in start_stream()
144 amdtp_am824_set_pcm_position(stream, i, i * 2); in start_stream()
145 amdtp_am824_set_pcm_position(stream, i + pcm_chs, in start_stream()
151 amdtp_stream_get_max_payload(stream)); in start_stream()
158 err = amdtp_stream_start(stream, resources->channel, in start_stream()
290 static int init_stream(struct snd_dice *dice, struct amdtp_stream *stream) in init_stream() argument
296 if (stream == &dice->tx_stream) { in init_stream()
309 err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); in init_stream()
311 amdtp_stream_destroy(stream); in init_stream()
322 static void destroy_stream(struct snd_dice *dice, struct amdtp_stream *stream) in destroy_stream() argument
326 if (stream == &dice->tx_stream) in destroy_stream()
331 amdtp_stream_destroy(stream); in destroy_stream()