11
VIA VAB-950 Yocto 3.1 EVK Quick Start Guide
3.7
Audio Output and Record
To set up the HDMI audio output, use the following command:
root@aiv8385-linux:~# aplay -Dhw:0,28 /data/sda1/test.wav
To set up the headphone audio output, use the following command:
root@aiv8385-linux:~# amixer cset numid=1 1
root@aiv8385-linux:~# amixer cset numid=2 1
root@aiv8385-linux:~# aplay -Dhw:0,0 /data/sda1/test.wav
To disable the headphone audio output, use the following command:
root@aiv8385-linux:~# amixer cset numid=1 0
root@aiv8385-linux:~# amixer cset numid=2 0
To set up the speaker audio output, use the following command:
root@aiv8385-linux:~# amixer cset numid=4 1
root@aiv8385-linux:~# aplay -Dhw:0,0 /data/sda1/test.wav
To disable the speaker audio output, use the following command:
root@aiv8385-linux:~# amixer cset numid=4 0
Note:
Before changing to different audio output device, you must make sure the previous audio output device is disabled.
To change the audio volume, use the following command:
root@aiv8385-linux:~# amixer cset numid=10 17
numid=10,iface=MIXER,name='Lineout_PGAL_GAIN'
; type=ENUMERATED,access=rw------,values=1,items=20
; Item #0 '8Db'
; Item #1 '7Db'
; Item #2 '6Db'
; Item #3 '5Db'
; Item #4 '4Db'
; Item #5 '3Db'
; Item #6 '2Db'
; Item #7 '1Db'
; Item #8 '0Db'
; Item #9 '-1Db'
; Item #10 '-2Db'
; Item #11 '-3Db'
; Item #12 '-4Db'
; Item #13 '-5Db'
; Item #14 '-6Db'
; Item #15 '-7Db'
; Item #16 '-8Db'
; Item #17 '-9Db'
; Item #18 '-10Db'
; Item #19 '-40Db'
: values=17
root@aiv8385-linux:~#
To set up the Mic-in audio recording, use the following command:
root@aiv8385-linux:~# amixer cset numid=36 ADC2
root@aiv8385-linux:~# amixer cset numid=23 1
root@aiv8385-linux:~# amixer cset numid=24 1
root@aiv8385-linux:~# amixer cset numid=27 IN_ADC2
root@aiv8385-linux:~# amixer cset numid=45 IN_ADC2
root@aiv8385-linux:~# arecord -Dhw:0,1 -c 2 -r 48000 -f S16_LE /data/sda1/t1.wav