sgtl5000 record not OK

cancel
Showing results for 
Search instead for 
Did you mean: 

sgtl5000 record not OK

123 Views
Contributor I

Hi,

   sgtl5000 is the codec chip in my zynqMP project and the play is OK.The key register value is as following,

CHIP_DIG_POWER = 0x63

CHIP_SSS_CTRL = 0x10

CHIP_ANA_CTRL = 0x22

The record has noise when playing the same time, and has no voice when not playing.

I analyze the code of the chip(mxs,imx,tegra)。The mentioned chip all have "audio-routing" in the device tree.

Does the zynqMP(xilnx) need it?

Can anyone help me?

Tags (1)
0 Kudos
1 Reply

6 Views
NXP TechSupport
NXP TechSupport

SGTL5000的录音流是这样的:

pastedImage_1.png

你可以按照下面步骤,或者按照datasheet 参考代码把MIC_IN-->select--->ADC--->SWITCH--->I2S_OUT--->MCU I2S_IN这条路打通:

1、CHIP_MIC_CTRL:

BIAS_RESISTOR = 0X1
BIAS_VOLT=0x5
GAIN=0x0

2、CHIP_ANA_CTRL

SELECT_ADC=0x0
EN_ZCD_ADC=0x1
MUTE_ADC=0x0

3、CHIP_ANA_ADC_CTRL=0x0001

4、CHIP_SSS_CTRL //让MIC IN--->ADC--->I2S OUT, 音频流route到MCU I2S in
I2S_SELECT=0x0

这个需要你在MCU端启动录音程序:要么录到文件里,要么录到RAM里,播放出来。

另外,如果这样还不行,你先按照下面的路径打通试试:同时打开耳机HP和喇叭SPK,看看你MIC里说话,HP和SPK能不能听到。如果能,而上面录音没声音,你要检查录音程序是不是没收到正确数据。

pastedImage_2.png

Hope above information is helpful for you!

Have a nice day!

BR,

Weidong

0 Kudos