Lines Matching full:live

520     size_t live = hw->total_samples_captured - audio_pcm_hw_find_min_in (hw);  in audio_pcm_hw_get_live_in()  local
521 if (audio_bug(__func__, live > hw->conv_buf.size)) { in audio_pcm_hw_get_live_in()
522 dolog("live=%zu hw->conv_buf.size=%zu\n", live, hw->conv_buf.size); in audio_pcm_hw_get_live_in()
525 return live; in audio_pcm_hw_get_live_in()
555 size_t live, rpos, frames_in, frames_out; in audio_pcm_sw_resample_in() local
557 live = hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_pcm_sw_resample_in()
558 rpos = audio_ring_posb(hw->conv_buf.pos, live, hw->conv_buf.size); in audio_pcm_sw_resample_in()
585 size_t live, frames_out_max, total_in, total_out; in audio_pcm_sw_read() local
587 live = hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_pcm_sw_read()
588 if (!live) { in audio_pcm_sw_read()
591 if (audio_bug(__func__, live > hw->conv_buf.size)) { in audio_pcm_sw_read()
592 dolog("live_in=%zu hw->conv_buf.size=%zu\n", live, hw->conv_buf.size); in audio_pcm_sw_read()
599 audio_pcm_sw_resample_in(sw, live, frames_out_max, &total_in, &total_out); in audio_pcm_sw_read()
641 size_t live = smin; in audio_pcm_hw_get_live_out() local
643 if (audio_bug(__func__, live > hw->mix_buf.size)) { in audio_pcm_hw_get_live_out()
644 dolog("live=%zu hw->mix_buf.size=%zu\n", live, hw->mix_buf.size); in audio_pcm_hw_get_live_out()
647 return live; in audio_pcm_hw_get_live_out()
686 size_t live, wpos, frames_in, frames_out; in audio_pcm_sw_resample_out() local
688 live = sw->total_hw_samples_mixed; in audio_pcm_sw_resample_out()
689 wpos = (hw->mix_buf.pos + live) % hw->mix_buf.size; in audio_pcm_sw_resample_out()
716 size_t live, dead, hw_free, sw_max, fe_max; in audio_pcm_sw_write() local
719 live = sw->total_hw_samples_mixed; in audio_pcm_sw_write()
720 if (audio_bug(__func__, live > hw->mix_buf.size)) { in audio_pcm_sw_write()
721 dolog("live=%zu hw->mix_buf.size=%zu\n", live, hw->mix_buf.size); in audio_pcm_sw_write()
725 if (live == hw->mix_buf.size) { in audio_pcm_sw_write()
727 dolog ("%s is full %zu\n", sw->name, live); in audio_pcm_sw_write()
732 dead = hw->mix_buf.size - live; in audio_pcm_sw_write()
734 hw_free = hw_free > live ? hw_free - live : 0; in audio_pcm_sw_write()
1006 size_t live; in audio_get_avail() local
1012 live = sw->hw->total_samples_captured - sw->total_hw_samples_acquired; in audio_get_avail()
1013 if (audio_bug(__func__, live > sw->hw->conv_buf.size)) { in audio_get_avail()
1014 dolog("live=%zu sw->hw->conv_buf.size=%zu\n", live, in audio_get_avail()
1020 "%s: get_avail live %zu frontend frames %u\n", in audio_get_avail()
1022 live, st_rate_frames_out(sw->rate, live) in audio_get_avail()
1025 return live; in audio_get_avail()
1030 size_t live, dead; in audio_get_free() local
1036 live = sw->total_hw_samples_mixed; in audio_get_free()
1038 if (audio_bug(__func__, live > sw->hw->mix_buf.size)) { in audio_get_free()
1039 dolog("live=%zu sw->hw->mix_buf.size=%zu\n", live, in audio_get_free()
1044 dead = sw->hw->mix_buf.size - live; in audio_get_free()
1047 dolog("%s: get_free live %zu dead %zu frontend frames %u\n", in audio_get_free()
1048 SW_NAME(sw), live, dead, st_rate_frames_in(sw->rate, dead)); in audio_get_free()
1070 size_t live, frames_in, frames_out; in audio_capture_mix_and_clear() local
1074 live = sw->total_hw_samples_mixed; in audio_capture_mix_and_clear()
1077 to_read, sw->hw->mix_buf.size - live, in audio_capture_mix_and_clear()
1100 static size_t audio_pcm_hw_run_out(HWVoiceOut *hw, size_t live) in audio_pcm_hw_run_out() argument
1104 while (live) { in audio_pcm_hw_run_out()
1105 size_t size = live * hw->info.bytes_per_frame; in audio_pcm_hw_run_out()
1113 decr = MIN(size / hw->info.bytes_per_frame, live); in audio_pcm_hw_run_out()
1121 live -= proc; in audio_pcm_hw_run_out()
1143 size_t played, live, prev_rpos; in audio_run_out() local
1191 live = audio_pcm_hw_get_live_out (hw, &nb_live); in audio_run_out()
1193 live = 0; in audio_run_out()
1196 if (audio_bug(__func__, live > hw->mix_buf.size)) { in audio_run_out()
1197 dolog("live=%zu hw->mix_buf.size=%zu\n", live, hw->mix_buf.size); in audio_run_out()
1218 if (!live) { in audio_run_out()
1226 played = audio_pcm_hw_run_out(hw, live); in audio_run_out()
1344 size_t live, rpos, captured; in audio_run_capture() local
1348 captured = live = audio_pcm_hw_get_live_out (hw, NULL); in audio_run_capture()
1350 while (live) { in audio_run_capture()
1352 size_t to_capture = MIN(live, left); in audio_run_capture()
1365 live -= to_capture; in audio_run_capture()