summaryrefslogtreecommitdiff
path: root/src/tests/lo-latency-test.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-14update FSF addresses to FSF web pageOndrej Holecek1-3/+1
FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
2013-06-04tests: Make loopback latency test more accurateArun Raghavan1-4/+9
This makes sure that we always take the timing at the point when we write out the pulse, making the overall latency measurement more accurate.
2013-06-04tests: Factor out loopback setup codeArun Raghavan1-298/+32
This moves over setup code for the loopback latency test into a private library so that we can easily write more tests using the same framework.
2013-06-04tests: Adjust latency test calibrationArun Raghavan1-3/+3
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.
2013-06-04tests: Make loopback latency test run with rt priorityArun Raghavan1-0/+5
2013-06-04tests: Add a latency measurement testArun Raghavan1-0/+446
This test is intended to measure real latency by playing a sample to a sink and capturing that over a loopback interface. The loopback can either be physical (cable running from headphone out to line in) or virtual (monitor source or module loopback). Also included in this is calibration code to make sure that volumes are sufficiently adjusted to be able to detect the played back signal (and that there aren't false positives due to line noise). One of the objectives of all this is to later factor out the setup code to allow us to easily write more loopback tests for various functionality (volumes, resampling, mixing, etc.).