TLV320AIC3101: Mixing LineIn1 with I2S audio stream
Part Number: TLV320AIC3101
Output from lineLP to Lpga to earphone is ok, lineLP to Lpga to Ladc is ok, but from Dout to Ldac to earphone is silent,Din and Dout are connected
aic3101Write(0,0x02,0x44); aic3101Write(0,0x03,0x91);/*pll enabled q=2,p=1*/ aic3101Write(0,0x04,0x20); /*j=8*/ aic3101Write(0,0x05,0x00); aic3101Write(0,0x06,0x00);/*D*/ aic3101Write(0,0x0b,0x01);/*R=1*/ aic3101Write(0,0x65,0x01);/*CODEC_CLKIN uses CLKDIV_OUT*/ aic3101Write(0,0x08,0xD0); aic3101Write(0,0x09,0x06); aic3101Write(0,0x2a,0x94); aic3101Write(0,0x19,0x00); aic3101Write(0,0x13,0x06); aic3101Write(0,0x18,0x00); aic3101Write(0,0x16,0x04); aic3101Write(0,0x0f,0x50); aic3101Write(0,0x10,0x50); aic3101Write(0,0x28,0x80); aic3101Write(0,0x0e,0x88); aic3101Write(0,0x07,0x0a); aic3101Write(0,0x40,0x80);
aic3101Write(0,0x25,0xc0); aic3101Write(0,0x26,0x06); aic3101Write(0,0x2c,0x00); aic3101Write(0,0x2b,0x00); aic3101Write(0,0x41,0x79); aic3101Write(0,0x33,0x79);#if 1 aic3101Write(0,0x3f,0x80);/*PGA_R is routed to HPROUT.*/ aic3101Write(0,0x2e,0x80);/*PGA_L is routed to HPLOUT.*/#endif
Some quick questions before I look into the register settings more in depth:
1. What is the input clock frequency you are using? What is the sample rate?
2. Is the PLL being used? i see that it is enabled but in register 0x65, the CLKDIV_OUT is being used instead of PLLDIV_OUT.
3. Is this on a custom board or an EVM? If on an EVM, there are other steps to take when using DOUT to DIN loopback.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Aaron Estrada51:
Hello there,1. The input clock frequency is 12.288M and the sampling rate is 16K2. Using pll, I don't know if it needs to be turned on, the main control chip has no extra clock pins for tlv320aic3101 input, so it is configured in the main mode3. Using a traditional development board, DIN and DOUT are directly connected togetherThe current progress is to be able to use dac output, but it must be under the premise of reg0x0c=0x00, otherwise the output waveform is a high-level straight line, I want to know whythank you very much!Chen
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.