End to end audio test - initial drop
jaswinder.singh at linaro.org
Tue Nov 29 06:58:55 UTC 2011
On 29 November 2011 07:31, Kurt Taylor <kurt.taylor at linaro.org> wrote:
> Hi everyone,
> Last week I did an initial drop of the end to end audio test we have been
> The idea is fairly simple, play a sine wave and test the audio stack by
> sampling/testing the sine back in via loopback cable. The app is called
> testfreq and is driven by a script called e2eaudiotest. It opens and
> configures the audio device, takes a sample and then does a discrete fourier
> transformation to find the frequency using the fftw3 library. The test
> script driver uses speaker-test to play a sine wave at A 440, which for now
> is the test frequency. It's still basic at this point, but it does work on
> my system. There is a lot of additional things I'd like to do, initial stack
> configuration, passing in the device, passing the test frequency, doing more
> auto detection, clean up the code, etc, but I wanted to start getting
> feedback. Any and all would be appreciated.
> Have a look, and if you have a loopback cable, give it a spin:
> You can also read more about it and check my progress here:
Though, how bad is the idea of separating out stream capture from
DFT analysis part ?
That could make testing simpler by just 'piping' in the captured data
real-time or from a recorded file using standard apps like 'arecord'
or some android app.
More information about the linaro-dev