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

#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 "Successful detection of A440 Sine"
   exit 0
else
   echo "Problem detecting the frequency" 
   exit 1
fi