Lines Matching refs:stream
1129 struct pcxhr_stream *stream) in pcxhr_stream_read_position() argument
1135 stream_mask = stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_stream_read_position()
1139 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_stream_read_position()
1140 stream->pipe->first_audio, 0, stream_mask); in pcxhr_stream_read_position()
1152 stream->pipe->is_capture ? 'C' : 'P', in pcxhr_stream_read_position()
1153 stream->substream->number, in pcxhr_stream_read_position()
1155 stream->timer_abs_periods + stream->timer_period_frag + in pcxhr_stream_read_position()
1161 struct pcxhr_stream *stream, in pcxhr_update_timer_pos() argument
1164 if (stream->substream && in pcxhr_update_timer_pos()
1165 (stream->status == PCXHR_STREAM_STATUS_RUNNING)) { in pcxhr_update_timer_pos()
1169 struct snd_pcm_runtime *runtime = stream->substream->runtime; in pcxhr_update_timer_pos()
1172 stream->timer_is_synced = 0; in pcxhr_update_timer_pos()
1177 if (!stream->timer_is_synced) { in pcxhr_update_timer_pos()
1178 if ((stream->timer_abs_periods != 0) || in pcxhr_update_timer_pos()
1179 ((stream->timer_period_frag + samples_to_add) >= in pcxhr_update_timer_pos()
1182 pcxhr_stream_read_position(mgr, stream); in pcxhr_update_timer_pos()
1190 stream->timer_is_synced = 1; in pcxhr_update_timer_pos()
1198 new_sample_count = stream->timer_abs_periods + in pcxhr_update_timer_pos()
1199 stream->timer_period_frag + samples_to_add; in pcxhr_update_timer_pos()
1202 u_int64_t new_elapse_pos = stream->timer_abs_periods + in pcxhr_update_timer_pos()
1207 stream->timer_buf_periods++; in pcxhr_update_timer_pos()
1208 if (stream->timer_buf_periods >= runtime->periods) in pcxhr_update_timer_pos()
1209 stream->timer_buf_periods = 0; in pcxhr_update_timer_pos()
1210 stream->timer_abs_periods = new_elapse_pos; in pcxhr_update_timer_pos()
1212 if (new_sample_count >= stream->timer_abs_periods) { in pcxhr_update_timer_pos()
1213 stream->timer_period_frag = in pcxhr_update_timer_pos()
1215 stream->timer_abs_periods); in pcxhr_update_timer_pos()
1224 snd_pcm_period_elapsed(stream->substream); in pcxhr_update_timer_pos()