DA7212 - Noise while recording from AUX

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
arjun.salariya
Offline
Last seen:10 months 2 weeks ago
加入:2019-02-28 12:37
DA7212 - Noise while recording from AUX

Hi Support Team,

We have DA7212 Evaluation kit. We trying to capture the audio from the AUX input. We have seen some noise in left channel while recording from the AUX.
Below amixer commands we run:

amixer q csetname='Aux Volume' 78%
amixer q csetname='Aux Switch' on
amixer q csetname='Mixin Left Aux Left Switch' on
amixer q csetname='Mixin Right Aux Right Switch' on
amixer q csetname='Mixin PGA Volume' 47%
amixer q csetname='Mixin PGA Switch' on
amixer q csetname='ADC Volume' 76%
amixer q csetname='ADC Switch' on
# Route Input Mixers to Output Mixers
amixer q csetname='Mixout Right Mixin Right Switch' on
amixer q csetname='Mixout Left Mixin Left Switch' on

Record command:

arecord -D hw:0,0 -c 2 -r 48000 -f S32_LE test_aux1.wav

Can you please guide us, what could be the reason for the noise in left channel only? Is it hardware issue or needs software changes required to resolve it?

Regards,
Darshak

Device:
arjun.salariya
Offline
Last seen:10 months 2 weeks ago
加入:2019-02-28 12:37
Hi Team,

Hi Team,

Is there any update?

Thanks,
Arjun

arjun.salariya
Offline
Last seen:10 months 2 weeks ago
加入:2019-02-28 12:37
Hi Team,

Hi Team,

Is there any update?

Thanks,
Arjun

bmcadam
Offline
Last seen:7 months 3 weeks ago
工作人员
加入:2015-09-16 16:25
Hello,

Hello,

It would be unexpected to have noise though could be a result of clocks not being setup properly.

What clocks are you providing :-

MCLK, WCLK and data format ?

Below are the writes and clock setup for the path :-

WRITE DA7212 0x92 0x00 //Set Ramp rate to default
DELAY 40
WRITE DA7212 0x90 0x80 //Enable Digital LDO
WRITE DA7212 0x29 0xCC //Enable AIF 32bit I2S mode
WRITE DA7212 0x22 0x0B //Set incoming sample rate to 48kHz
WRITE DA7212 0x98 0x00 //DAI_Offset set to zero
WRITE DA7212 0x94 0x02 //Set PC sync to resync
WRITE DA7212 0x27 0x04 //PLL_CTRL PLL disabled

WRITE DA7212 0x23 0x08 //Enable master bias
WRITE DA7212 0x32 0x01 //MIXIN_L input from AUXL
WRITE DA7212 0x33 0x01 //MIXIN_R input from AUXR
WRITE DA7212 0x60 0xA0 //Enable Aux
WRITE DA7212 0x61 0xA0 //Enable Aux
WRITE DA7212 0x65 0x88 //Enable mixer left
WRITE DA7212 0x66 0x88 //Enable mixer right
WRITE DA7212 0x67 0xA0 //Enable ADC Left
WRITE DA7212 0x68 0xA0 //Enable ADC Right