通过指令读取widget与codec_reg的值

ADB指令:


cat /sys/devices/platform/soc-audio/RT3261\ I2S1/codec_reg 
cat sys/devices/platform/soc-audio/RT3261\ I2S1/dapm_widget       
cat  /sys/devices/platform/rk29_i2c.0/i2c-0/0-001c/dsp_reg
cat  /sys/devices/platform/rk30_i2c.0/i2c-0/0-001c/dsp_reg
alsa_amixer contents  
alsa_amixer controls  
logcat -v time -s ALSAModule ALSALib AudioHardwareALSA AudioFlinger AudioPolicyManagerALSA AudioTrack AudioHardwareInterface &
cd /proc/driver/  
echo w:1d=2f2f > /proc/driver/rt3261_ts
echo w:fc=00e0 > /proc/driver/rt3261_ts
echo w:fa=0701 > /proc/driver/rt3261_ts
echo w:6a=003f > /proc/driver/rt3261_ts
echo w:6c=0000 > /proc/driver/rt3261_ts
 cat /sys/devices/platform/rk29_i2c.0/i2c-0/0-001c/index_reg 
echo r:fa >/proc/driver/rt3261_ts
cat /system/etc/asound.conf
cd /sys/devices/platform/rk29_i2c.0/i2c-0/0-001c
cd /sys/devices/platform/rk30_i2c.0/i2c-0/0-001c
echo "230c 0300" > dsp_reg
echo "230c 0300" > /sys/devices/platform/rk29_i2c.0/i2c-0/0-001c/dsp_reg    
echo c:230c >/proc/driver/rt3261_ts




alsa_amixer cget name='OUT Playback Volume' 
alsa_amixer cset name='OUT Playback Volume' 31 31
alsa_amixer cget name='RECMIXL BST1 Switch'
alsa_amixer cget name='RECMIXR BST1 Switch'
alsa_amixer cset name='RECMIXL BST1 Switch' 1

alsa_amixer cset name='RECMIXR BST1 Switch' 1



cat sys/devices/platform/soc-audio/RT3261\ I2S1/dapm_widget 

你可能感兴趣的:(技术文章)