TI tlv320aic3104 codec调试之路径控制

驱动init()函数已经打开控件如下

#left line output
adb shell amix 'Left DAC Mux' DAC_L1
adb shell amix 'Left Line Mixer DACL1 Switch' 1


#right line output
adb shell amix 'Right DAC Mux' DAC_R1
adb shell amix 'Right Line Mixer DACR1 Switch' 1


#left HP output
adb shell amix 'Left DAC Mux' DAC_L1
adb shell amix 'Left HP Mixer DACL1 Switch' 1


#right HP output
adb shell amix 'Right DAC Mux' DAC_R1
adb shell amix 'Right HP Mixer DACR1 Switch' 1

#left HPCOM output
adb shell amix 'Left DAC Mux' DAC_L1
adb shell amix 'Left HPCOM Mixer DACL1 Switch' 1
adb shell amix "Left HPCOM Mux" 0

#RIGHT HPCOM output
adb shell amix 'Right DAC Mux' DAC_R1
adb shell amix 'Right HPCOM Mixer DACR1 Switch' 1
adb shell amix 'Right HPCOM Mux' 0

#left/right line output mute control
adb shell amix 'Line Playback Switch' 1
#left/right HP output mute control
adb shell amix 'HP Playback Switch' 1
#left/right HPCOM output mute control
adb shell amix 'HPCOM Playback Switch' 1

#left/right ADC mute control, init()函数已经unmute
adb shell amix 'PGA Capture Switch' 1

play.bat

#clock   代码实现忽略
#adb shell "echo "0x66 0xa2" > /sys/kernel/debug/regmap/4-0018/registers"


#L/R DAC
#adb shell "echo "0x2b 0x00" > /sys/kernel/debug/regmap/4-0018/registers"
#adb shell "echo "0x2c 0x00" > /sys/kernel/debug/regmap/4-0018/registers"



adb shell amix 'PCM Playback Volume' 127 127
#right line output
adb shell amix 'Left DAC Mux' DAC_L1
#adb shell amix 'Right DAC Mux' DAC_R1
adb shell amix 'Right Line Mixer DACL1 Switch' 1
#adb shell amix 'Right Line Mixer DACR1 Switch' 1

adb shell amix 'SEC_AUX_PCM_RX Audio Mixer MultiMedia1' 1

pause

rec.bat

#mic2
amix 'Left PGA Mixer Mic2L Switch' 1
amix 'Left PGA Mixer Mic2R Switch' 1

#clock
#adb shell "echo "0x66 0xa2" > /sys/kernel/debug/regmap/4-0018/registers"


#micbias
#adb shell "echo "0x19 0x80" > /sys/kernel/debug/regmap/4-0018/registers"

#MIC1R P/M
adb shell amix 'Left Line1R Mux' 1
adb shell amix 'Left PGA Mixer Line1R Switch' 1
adb shell amix 'MultiMedia1 Mixer SEC_AUX_PCM_UL_TX' 1



#volume control
#adb shell amix 'PGA Capture Volume'

#adb shell amix 'Left Line1L Mux' 1
#adb shell amix 'Left PGA Mixer Line1L Switch' 1

#adb shell "echo "0x13 0x78" > /sys/kernel/debug/regmap/4-0018/registers"
#adb shell "echo "0x16 0x78" > /sys/kernel/debug/regmap/4-0018/registers"

pause
posted @ 2021-03-05 09:55  bobfly1984  阅读(754)  评论(0编辑  收藏  举报