Lines Matching refs:runtime
136 struct snd_pcm_runtime *runtime) in amdtp_stream_add_pcm_hw_constraints() argument
141 err = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); in amdtp_stream_add_pcm_hw_constraints()
155 err = snd_pcm_hw_constraint_minmax(runtime, in amdtp_stream_add_pcm_hw_constraints()
174 err = snd_pcm_hw_constraint_step(runtime, 0, in amdtp_stream_add_pcm_hw_constraints()
178 err = snd_pcm_hw_constraint_step(runtime, 0, in amdtp_stream_add_pcm_hw_constraints()
401 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s32() local
406 src = (void *)runtime->dma_area + in amdtp_write_s32()
407 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_write_s32()
408 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in amdtp_write_s32()
418 src = (void *)runtime->dma_area; in amdtp_write_s32()
426 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_write_s16() local
431 src = (void *)runtime->dma_area + in amdtp_write_s16()
432 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_write_s16()
433 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in amdtp_write_s16()
443 src = (void *)runtime->dma_area; in amdtp_write_s16()
451 struct snd_pcm_runtime *runtime = pcm->runtime; in amdtp_read_s32() local
456 dst = (void *)runtime->dma_area + in amdtp_read_s32()
457 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_read_s32()
458 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; in amdtp_read_s32()
467 dst = (void *)runtime->dma_area; in amdtp_read_s32()
574 if (ptr >= pcm->runtime->buffer_size) in update_pcm_pointers()
575 ptr -= pcm->runtime->buffer_size; in update_pcm_pointers()
579 if (s->pcm_period_pointer >= pcm->runtime->period_size) { in update_pcm_pointers()
580 s->pcm_period_pointer -= pcm->runtime->period_size; in update_pcm_pointers()