Lines Matching refs:runtime

202 		ua->playback.substream->runtime->delay -=  in playback_urb_complete()
224 struct snd_pcm_runtime *runtime; in copy_playback_data() local
228 runtime = stream->substream->runtime; in copy_playback_data()
230 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data()
231 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
235 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_playback_data()
238 runtime->dma_area, (frames - frames1) * frame_bytes); in copy_playback_data()
242 if (stream->buffer_pos >= runtime->buffer_size) in copy_playback_data()
243 stream->buffer_pos -= runtime->buffer_size; in copy_playback_data()
245 if (stream->period_pos >= runtime->period_size) { in copy_playback_data()
246 stream->period_pos -= runtime->period_size; in copy_playback_data()
317 ua->playback.substream->runtime->delay += frames; in playback_tasklet()
328 struct snd_pcm_runtime *runtime; in copy_capture_data() local
332 runtime = stream->substream->runtime; in copy_capture_data()
334 dest = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_capture_data()
335 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_capture_data()
339 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_capture_data()
341 memcpy(runtime->dma_area, in copy_capture_data()
347 if (stream->buffer_pos >= runtime->buffer_size) in copy_capture_data()
348 stream->buffer_pos -= runtime->buffer_size; in copy_capture_data()
350 if (stream->period_pos >= runtime->period_size) { in copy_capture_data()
351 stream->period_pos -= runtime->period_size; in copy_capture_data()
631 substream->runtime->hw.info = in set_stream_hw()
638 substream->runtime->hw.formats = ua->format_bit; in set_stream_hw()
639 substream->runtime->hw.rates = snd_pcm_rate_to_rate_bit(ua->rate); in set_stream_hw()
640 substream->runtime->hw.rate_min = ua->rate; in set_stream_hw()
641 substream->runtime->hw.rate_max = ua->rate; in set_stream_hw()
642 substream->runtime->hw.channels_min = channels; in set_stream_hw()
643 substream->runtime->hw.channels_max = channels; in set_stream_hw()
644 substream->runtime->hw.buffer_bytes_max = 45000 * 1024; in set_stream_hw()
645 substream->runtime->hw.period_bytes_min = 1; in set_stream_hw()
646 substream->runtime->hw.period_bytes_max = UINT_MAX; in set_stream_hw()
647 substream->runtime->hw.periods_min = 2; in set_stream_hw()
648 substream->runtime->hw.periods_max = UINT_MAX; in set_stream_hw()
649 err = snd_pcm_hw_constraint_minmax(substream->runtime, in set_stream_hw()
655 err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); in set_stream_hw()
668 substream->runtime->hw.fifo_size = in capture_pcm_open()
670 substream->runtime->delay = substream->runtime->hw.fifo_size; in capture_pcm_open()
689 substream->runtime->hw.fifo_size = in playback_pcm_open()
825 substream->runtime->delay = 0; in playback_pcm_prepare()