1. 听筒
tinymix "RX_CDC_DMA_RX_0 Audio Mixer MultiMedia1" "1"
tinymix "RX_MACRO RX0 MUX" "AIF1_PB"
tinymix "RX_CDC_DMA_RX_0 Channels" "One"
tinymix "RX INT0_1 MIX1 INP0" "RX0"
tinymix "RX_RX0 Digital Volume" "100"
tinymix "RX INT0 DEM MUX" "CLSH_DSM_OUT"
tinymix "EAR_RDAC Switch" "1"
tinymix "RDAC3_MUX" "RX1"
tinymix "RX_EAR Mode" "ON"
tinyplay vendor/1.wav
2. 喇叭 (AUX使能输出)
tinymix "RX_CDC_DMA_RX_0 Audio Mixer MultiMedia1" "1"
tinymix "RX_RX1 Digital Volume" "100"
tinymix "RX_MACRO RX0 MUX" "AIF1_PB"
tinymix "RX_CDC_DMA_RX_0 Channels" "One"
tinymix "RX INT2_1 MIX1 INP0" "RX0"
tinymix "AUX_RDAC Switch" "1"
tinymix "Ext Spk Switch" "On"
tinyplay vendor/1.wav
3. 主麦克
tinymix "MultiMedia1 Mixer TX_CDC_DMA_TX_3" "1"
tinymix "TX_CDC_DMA_TX_3 Channels" "One"
tinymix "TX DEC2 MUX" "SWR_MIC"
tinymix "TX SMIC MUX2" "ADC0"
tinymix "TX_AIF1_CAP Mixer DEC2" "1"
tinymix "ADC1_MIXER Switch" "1"
tinycap /data/input1.wav
4. 副麦克
tinymix "MultiMedia1 Mixer TX_CDC_DMA_TX_3" "1"
tinymix "TX_CDC_DMA_TX_3 Channels" "One"
tinymix "TX DEC2 MUX" "SWR_MIC"
tinymix "TX SMIC MUX2" "ADC2"
tinymix "TX_AIF1_CAP Mixer DEC2" "1"
tinymix "ADC2_MIXER Switch" "1"
tinymix "ADC2 MUX" "INP3"
tinycap /data/input3.wav
5. 备注
我这边的tinyalsa命令并不一定适合你的平台,请阅读相关的高通音频文档,注意检查相关硬件电路设计。