根据您的描述,您正在使用TLV320AIC3204作为从设备,并且您已经提供了一些寄存器配置。在这种情况下,录制后没有声音出来可能是由于以下原因:
1. 配置错误:请确保您已经正确配置了AIC3204的寄存器。以下是一份在调试板上声音正常的寄存器配置示例:
```c
/* Configure AIC3204 */
aic3204_write(IIC_device_addr[num], 0, 0x0); // Select page 0
aic3204_write(IIC_device_addr[num], 1, 0x1); // Reset Codec
mdelay(20);
aic3204_write(IIC_device_addr[num], 0, 0x1); // Select page 1
aic3204_write(IIC_device_addr[num], 1, 0x8); // DisabLED weak connection of AVDD with DVDD
aic3204_write(IIC_device_addr[num], 0, 0x2); // Select page 2
aic3204_write(IIC_device_addr[num], 2, 0x0); // Set sample rate to 48kHz
aic3204_write(IIC_device_addr[num], 3, 0x0); // Set format to I2S
aic3204_write(IIC_device_addr[num], 4, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 5, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 6, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 7, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 8, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 9, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 10, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 11, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 12, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 13, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 14, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 15, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 16, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 17, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 18, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 19, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 20, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 21, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 22, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 23, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 24, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 25, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 26, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 27, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 28, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 29, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 30, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 31, 0x0); // Set clock divider
根据您的描述,您正在使用TLV320AIC3204作为从设备,并且您已经提供了一些寄存器配置。在这种情况下,录制后没有声音出来可能是由于以下原因:
1. 配置错误:请确保您已经正确配置了AIC3204的寄存器。以下是一份在调试板上声音正常的寄存器配置示例:
```c
/* Configure AIC3204 */
aic3204_write(IIC_device_addr[num], 0, 0x0); // Select page 0
aic3204_write(IIC_device_addr[num], 1, 0x1); // Reset Codec
mdelay(20);
aic3204_write(IIC_device_addr[num], 0, 0x1); // Select page 1
aic3204_write(IIC_device_addr[num], 1, 0x8); // DisabLED weak connection of AVDD with DVDD
aic3204_write(IIC_device_addr[num], 0, 0x2); // Select page 2
aic3204_write(IIC_device_addr[num], 2, 0x0); // Set sample rate to 48kHz
aic3204_write(IIC_device_addr[num], 3, 0x0); // Set format to I2S
aic3204_write(IIC_device_addr[num], 4, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 5, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 6, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 7, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 8, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 9, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 10, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 11, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 12, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 13, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 14, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 15, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 16, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 17, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 18, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 19, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 20, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 21, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 22, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 23, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 24, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 25, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 26, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 27, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 28, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 29, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 30, 0x0); // Set clock divider
aic3204_write(IIC_device_addr[num], 31, 0x0); // Set clock divider
举报