3.1.3. Audio Test
3.1.3.1. Audio Playback
Refer to /tools/audio_playback.sh
$ amixer -c 0 cset iface=MIXER,name='RX1 MIX1 INP1' 'RX1'
$ amixer -c 0 cset iface=MIXER,name='RX2 MIX1 INP1' 'RX2'
$ amixer -c 0 cset iface=MIXER,name='RDAC2 MUX' 'RX2'
$ amixer -c 0 cset iface=MIXER,name='HPHL' 1
$ amixer -c 0 cset iface=MIXER,name='HPHR' 1
$ amixer -c 0 cset iface=MIXER,name='RX1 Digital Volume' 127
$ amixer -c 0 cset iface=MIXER,name='RX2 Digital Volume' 127
$ aplay -D plughw:0,1 test.wav
If you want to play audio on HDMI audio channel, you can see the DHMI audio is at card 0,
device 0.
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DB410c [DB410c], device 0: ADV7533 adv7511-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DB410c [DB410c], device 1: WCD msm8916_wcd_i2s_rx1-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
Then, you can play as below.
$ aplay -D plughw:0,0 test.wav
3.1.3.2. Audio Recording
Refer to /tools/audio_recording.sh
$ amixer -c 0 cset iface=MIXER,name='DEC1 MUX' 'ADC2'
$ amixer -c 0 cset iface=MIXER,name='ADC2 Volume' 70
$ amixer -c 0 cset iface=MIXER,name='ADC2 MUX' 'INP2'
30