Audio loopback latency test - refactor to return noise sample delay in
frames.

Return delay in frames for check_for_noise(). Also change some variable
names to be more meaningful with unit.

BUG=chromium-os:32898
TEST=Run loopback_latency on Lumpy, use argument '-c' and '-i hw:0,0 -o
hw:0,0' to test from CRAS and to hw directly, both get very closed
mesured latency and reported latency (about 1ms diff).

Change-Id: Ib9108319ed9b86196cc7a441d2cc938c50b92523
Reviewed-on: https://gerrit.chromium.org/gerrit/34253
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
1 file changed