Noise in HP sound output in i.mx233 processor after recording

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Noise in HP sound output in i.mx233 processor after recording

736 Views
zmlopez
Contributor III

Hi,

In one of my designs I've got a venerable i.mx233 processor, and I've got a strange behavior.

When I use the sound input to record, I get noise in the HP output, and it's not recoverable until reset.

It is reproducible, for example, with:

arecord -t wav -f cd -Dhw:0,0 /tmp/test.wav

I use the last drivers available in linux. My linux version is 3.14.35

Looking with the oscilloscope, I could see that the virtual ground output (HP_VGND) remains at about 1V, but at the HPL and HPR outputs the continuous voltage level falls to 0.3V.

I think that it is a driver problem but I would like to know what this state is, to found the problem in the driver.

I've read all the sound related registers, and there is no change from normal to faulty state:

HW_AUDIOOUT_ANACLKCTRL = 0x00000000
HW_AUDIOOUT_ANACTRL = 0x00020010
HW_AUDIOOUT_BISTCTRL = 0x00000000
HW_AUDIOOUT_BISTSTAT0 = 0x00000000
HW_AUDIOOUT_BISTSTAT1 = 0x00000000
HW_AUDIOOUT_CTRL = 0x001F0043
HW_AUDIOOUT_DACDEBUG = 0x00000002
HW_AUDIOOUT_DACSRR = 0x10110037
HW_AUDIOOUT_DACVOLUME = 0x02FE00FE
HW_AUDIOOUT_DATA = 0x00000000
HW_AUDIOOUT_HPVOL = 0x02003232
HW_AUDIOOUT_PWRDN = 0x00000100
HW_AUDIOOUT_REFCTRL = 0x03381060
HW_AUDIOOUT_RESERVED = 0x00000000
HW_AUDIOOUT_SPEAKERCTRL = 0x00000000
HW_AUDIOOUT_STAT = 0x80000000
HW_AUDIOOUT_TEST = 0x00000000
HW_AUDIOOUT_VERSION = 0x01010000
HW_AUDIOIN_ADCDEBUG = 0x00000000
HW_AUDIOIN_ADCSRR = 0x10110037
HW_AUDIOIN_ADCVOL = 0x00000202
HW_AUDIOIN_ADCVOLUME = 0x00FE00FE
HW_AUDIOIN_ANACLKCTRL = 0x00000400
HW_AUDIOIN_CTRL = 0x000000E0
HW_AUDIOIN_DATA = 0xFFCDFFEE
HW_AUDIOIN_MICLINE = 0x00070001
HW_AUDIOIN_STAT = 0x80000000
HW_POWER_MINPWR = 0x00000040

Could anyone please help me to found what this strange state is, and how could I recover from this state?

Anyone at Freescale?

Thank you in advance.

Labels (1)
0 Kudos
2 Replies

656 Views
igorpadykov
NXP Employee
NXP Employee

Hi miguel

to narrow down issue one can try on i.MX23 EVK with nxp bsp

i.MX23 Evaluation Kit | NXP 

Archived Software and Documentation for the i.MX23 SDK Version 2009.12

or community resources:
Building a kernel 3.x for the iMX233-OLinuXino — Christian's Blog 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

656 Views
zmlopez
Contributor III

Hi Igor,

The MX23 evaluation kit is not easily available nowadays.

My question is about if someone could help me with the strange state, with the virtual ground output (HP_VGND) that remains at about 1V, but the HPL and HPR outputs with a continuous voltage level that falls to 0.3V.

The registers show that the HP protection circuit is not triggered.

If you've got the evaluation kit or another mx233 based board, you can easily reproduce it. Just try to record 1 second with:

arecord -t wav -f cd -d 1 -Dhw:0,0 /tmp/test.wav

And see if you 've got noise at the output and a big plop when the continuous voltage level falls from 0.9V to 0.3V.

 

It seems that you have to maintain the alsa capture driver always taken or something occurs.

Regards,

miguel

0 Kudos