tests: Adjust latency test calibration
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 22 May 2013 10:29:24 +0000 (15:59 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:44 +0000 (00:38 +0530)
commit36bdd720aa3ff11bede9efc5b630e4f8a7f5ea02
tree4289c68b63b0504aa3e4a4b0a7eed14f62b37e5a
parent3f16c7100be0b3f9aa5069350bc27c1f9d2aa47f
tests: Adjust latency test calibration

This makes the test more robust by:

1. Decreasing the '1' threshold during calibration - the RMS value for
   the sine wave will be 0.5, so the previous code was making us take
   the ALSA mixer past 0dB.

2. Using the difference rather than absolute value for 0->1 transitions,
   so that we're somewhat independent noise in our calculations.
src/tests/lo-latency-test.c