1、/sys/kernel/debug/asoc/RK29_RT3224/rt3261.0-001c/codec_reg --> write: echo '寄存器 值' > codec_reg
--> read: cat codec_reg
2、/proc/driver/rt3261_ts --> write func: echo 'w:寄存器 =值,寄存器=值,... ' > rt3261_ts
--> read func: echo 'r:寄存器,寄存器,...' > rt3261_ts
3、ALC5640有2种寄存器,一般寄存器(MX /RNG),私有寄存器(PR /RNI)
RNG直接写即可:i2cwrite(0x65,0x0C00);[EX:地址65h写0C00h]
RNI需要间接写:i2cwrite(0x6A,0x003D);i2cwrite(0x6C,0x3400);[EX:地址3DH写3400H]
4、读取index reg:cat /sys/devices/platform/rk30_i2c.0/i2c-0/0-001c/index_reg