aboutsummaryrefslogtreecommitdiff
path: root/e2eaudiotest.sh
blob: 99c6872b40ee913526dae6a1761c06c981ebc3d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#play a sine wave at A 440 hz
amixer sset Headset 10
amixer sset 'Headset Left Playback' 'HS DAC' 
amixer sset 'Headset Right Playback' 'HS DAC'
speaker-test -D hw:0,8 -c 2 -F S32_LE -r 96000 -t sine -f 440 -l 1 &
STPID=$!
trap "kill $STPID" TERM INT EXIT

# check the loopback frequency
if ./testfreq ; then
   # do the successful LAVA return 
   echo "e2eaudiotest: pass 440 sinewave detected"
else
   echo "e2eaudiotest: fail 440 sinewave not detected" 
fi