我的PCM3168工作在IIC控制模式,录音没有信号,而且PCM3168A发烫,硬件上IIS接口和ARM芯片的IIS引脚连接接有3.3V上拉,软件PCM3168A复位后进行如下配置
snd_soc_update_bits(codec, 0x50, 0x03, 0x01<<0);//single rate
snd_soc_update_bits(codec, 0x51, 0x70, 0);//slave从模式
snd_soc_update_bits(codec, 0x51, 0x07, 0);//24bit I2S
snd_soc_update_bits(codec, 0x52, 0x77, 0x66<<0);//ADC1/2正常,ADC3456节能,ADC HPF设置
snd_soc_update_bits(codec, 0x53, 0x3f, 0x3f<<0);//设置6通道均为单端输入
snd_soc_update_bits(codec, 0x54, 0x3f, 0x3f<<0);//模拟输入信号极性不反转
snd_soc_update_bits(codec, 0x55, 0x3f, 0x3e<<0);//ADC1非静音,其他静音
snd_soc_update_bits(codec,0x58,0xff,215<<0);//ADC1输入衰减20DB
snd_soc_update_bits(codec,0x59,0xff,0x00<<0);//衰减ADC2
snd_soc_update_bits(codec,0x5a,0xff,0x00<<0);//衰减
snd_soc_update_bits(codec,0x5b,0xff,0x00<<0);//衰减
snd_soc_update_bits(codec,0x5c,0xff,0x00<<0);//衰减
snd_soc_update_bits(codec,0x5d,0xff,0x00<<0);//衰减
snd_soc_update_bits(codec,0x5e,0xff,0x00<<0);//衰减
采样率为44.1K,想贴出示波器波形图和原理图,无奈不知如何上传图片。求指教。不胜感激。