zoukankan      html  css  js  c++  java
  • 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
    
  • 相关阅读:
    BZOJ3899 仙人掌树的同构(圆方树+哈希)
    BZOJ3590 SNOI2013Quare(状压dp)
    BZOJ2178 圆的面积并(simpson积分)
    BZOJ3724 PA2014Final Krolestwo(欧拉回路+构造)
    BZOJ3589 动态树(树链剖分+容斥原理)
    BZOJ3453 XLkxc(拉格朗日插值)
    BZOJ4650 NOI2016优秀的拆分(后缀数组)
    Luogu5058 ZJOI2004嗅探器(割点)
    shutil模块---文件,文件夹复制、删除、压缩等处理
    面向过程---通过查找字符串,找到相应的文件路径
  • 原文地址:https://www.cnblogs.com/bobfly1984/p/14484518.html
Copyright © 2011-2022 走看看