Other Parts Discussed in Thread: TLV320AIC3212, , TLV320AIC3262
Hi
I am working on a custom board based on AM5728 SoC. I am using tlv320aic3212 audiocodec device.
I have observed that whenever I increase PCM gain above a certain level while playing an audio file, audio signal is getting clipped.
I am trying to enable Dynamic Range Compression (DRC) feature on audiocodec device. As mentioned in the tlv320aic3262 application reference guide,
I have enabled DRC by changing following registers -
i2cset -f -y 3 0x18 0xFF 0x00 # Go to book 0
i2cset -f -y 3 0x18 0x00 0x00 # Go to page 0
i2cset -f -y 3 0x18 0x44 0x7F # DRC Enabled for both channels, Threshold = -24 db, Hysteresis = 3 dB
i2cset -f -y 3 0x18 0x45 0x00 #DRC Hold = 0 ms, Rate of Changes of Gain = 0.5 dB/Fs'
i2cset -f -y 3 0x18 0x46 0xB6 #Attack Rate = 1.9531e-4 dB/Frame , DRC Decay Rate =2.4414e-5 dB/Frame
After enabling DRC also, audio signal is getting clipped.
I have following queries -
1) In tlv320aic3262 application reference guide, there is an example script to setup DRC. It is setting up DRC HPF and LPF also with following register values :
#Go to Book 80
w 30 FF 50
#Go to Page 3
w 30 00 03
#DRC HPF
w 30 34 7F AB 00 00 80 55 00 00 7F 56 00 00
#DRC LPF
W 30 40 00 11 00 00 00 11 00 00 7F DE 00 00
What does it mean. How can I set multiple values to register number 34 & 40 ?
2) Why audio signal is getting clipped on increasing PCM gain above a certain limit ?
Regards,
Rohit Yadav