电路图如上:
配置参数如下:
tlv320aic31_write(IIC_device_addr[chip_num], 2, 0xaa);
tlv320aic31_write(IIC_device_addr[chip_num], 3, 0x10);
tlv320aic31_write(IIC_device_addr[chip_num], 7, 0x0a);
tlv320aic31_write(IIC_device_addr[chip_num], 8, 0xf0);
tlv320aic31_write(IIC_device_addr[chip_num], 9, 0x07);
tlv320aic31_write(IIC_device_addr[chip_num], 12, 0x50);
tlv320aic31_write(IIC_device_addr[chip_num], 14, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 15, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 16, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 17, 0x0f);
tlv320aic31_write(IIC_device_addr[chip_num], 18, 0xf0);
tlv320aic31_write(IIC_device_addr[chip_num], 19, 0x04);
tlv320aic31_write(IIC_device_addr[chip_num], 24, 0x04);
//tlv320aic31_write(IIC_device_addr[chip_num], 22, 0x78);
tlv320aic31_write(IIC_device_addr[chip_num], 25, 0x40);
tlv320aic31_write(IIC_device_addr[chip_num], 37, 0xE0);
tlv320aic31_write(IIC_device_addr[chip_num], 38, 0x14);
tlv320aic31_write(IIC_device_addr[chip_num], 40, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 41, 0x01);
tlv320aic31_write(IIC_device_addr[chip_num], 42, 0xA8);
tlv320aic31_write(IIC_device_addr[chip_num], 43, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 44, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 47, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 51, 0x9f);
tlv320aic31_write(IIC_device_addr[chip_num], 64, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 65, 0x9f);
tlv320aic31_write(IIC_device_addr[chip_num], 102, 0x32);
3559采集端的配置如下:
stACapAttr.enAudioMode = HI_MPP_AUDIO_MODE_I2S_SLAVE; /* I2S 从模式 */
stACapAttr.enBitwidth = HI_MPP_AUDIO_BITWIDTH_16; /* Bit width is 16 bits */
stACapAttr.enSampleRate = HI_MPP_AUDIO_SAMPLE_RATE_48; /* 48K Sample rate */
stACapAttr.enSoundMode = HI_MPP_AUDIO_SOUND_MODE_STEREO; /* 立体声 */
stACapAttr.u32PtNumPerFrm = 1024; /* 每帧采样点个数 */
TLV320AIC3101一端的I2S配置成主模式,采集端3559是不是就应该配置成从模式。
请帮忙确认下,以上电路和配置是不是匹配,我现在采集出来,没有声音。I2S的MCLK有时钟12M多。sample rate是否匹配?