Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
floop: fill zeroes to fix level instead of calculating realtime
Flexible loopback device originally fills zeroes according to the rate it runs on each time input_frames_queued is called. This mechanism fills zeroes in a irregular manner, causing flexible loopback device need to frquently wake up instead of its original schedule. Always fill the buffer to min_cb_level to ensure it was running in its original schedule. This will also create a delay when next output stream starts. BUG=b:362679648 TEST=cras_test_client --pin_device <dev> -C /dev/null \ and check wakeup time with cras_test_client --follow_a Change-Id: I149b7b738474ef59ff567d75932cbb608c736a70 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5892521 Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com> Commit-Queue: Curtis Malainey <cujomalainey@chromium.org> Reviewed-by: Curtis Malainey <cujomalainey@chromium.org> Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
- Loading branch information