8
VIA SOM-9X35-STK 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@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='O00 I05 Switch' 1
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='O01 I06 Switch' 1
root@aiv8365m1v1-aiot-emmc:~# aplay /data/sda1/test.wav
To disable the HDMI audio output, use the following command:
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='O00 I05 Switch' 0
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='O01 I06 Switch' 0
To set up the headphone and the speaker audio output, use the following command:
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='Audio_Amp_R_Switch' 1
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='Audio_Amp_L_Switch' 1
root@aiv8365m1v1-aiot-emmc:~# aplay /data/sda1/test.wav
To disable the headphone and the speaker audio output, use the following command:
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='Audio_Amp_R_Switch' 0
root@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='Audio_Amp_L_Switch' 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@aiv8365m1v1-aiot-emmc:~# amixer -c0 cset name='Headset_PGAR_GAIN' 30
numid=35,iface=MIXER,name='Headset_PGAR_GAIN'
; type=ENUMERATED,access=rw------,values=1,items=32
; 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 '-11Db'
; Item #20 '-12Db'
; Item #21 '-13Db'
; Item #22 '-14Db'
; Item #23 '-15Db'
; Item #24 '-16Db'
; Item #25 '-17Db'
; Item #26 '-18Db'
; Item #27 '-19Db'
; Item #28 '-20Db'
; Item #29 '-21Db'
; Item #30 '-22Db'
; Item #31 '-40Db'
: values=30
root@aiv8365m1v1-aiot-emmc:~#