根据平台设定合适的headphone配置即可使用tinycap和tinyplay进行wav的录制和播放
#!/bin/sh
echo "==================================================="
echo "==================tinycap===================="
echo "==================================================="
#echo "SLIMBUS_0_RX Audio Mixer MultiMedia1"
#tinymix "SLIMBUS_0_RX Audio Mixer MultiMedia1" 1
echo "SLIM_0_TX"
tinymix 'SLIM_0_TX Channels' 'One'
echo "AIF1_CAP"
tinymix 'AIF1_CAP Mixer SLIM TX7' 1
echo "SLIM TX7 MUX"
tinymix 'SLIM TX7 MUX' 'DEC7'
echo "ADC MUX7"
tinymix 'ADC MUX7' 'DMIC'
echo "DMIC MUX7"
tinymix 'DMIC MUX7' 'DMIC2'
echo "DEC7 Volume"
tinymix 'DEC7 Volume' 84
echo "MultiMedia1 Mixer"
tinymix 'MultiMedia1 Mixer SLIM_0_TX' 1
echo "tinycap begin"
tinycap /data/dmic0.wav -c 1 -r 48000
echo "tinycap done"