This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320AIC3101: Mixing LineIn1 with I2S audio stream

Part Number: TLV320AIC3101
Other Parts Discussed in Thread: TLV320AIC3254, CC8520

Hi,

is it possible to mix LineIN1 audio input on TLV320AIC3101 with an I2S audio input, so that they both go through the Volume Control block? 

I managed to get the two streams mixed, but only in case where LineIN1 bypasses data converters, so that output of the PGA is routed directly to the output stage. The data routing configuration that I have at the moment is shown in blue on the attached image and the one which I want to have is shown in red.

  • Andrej,

    Unfortunately this is not possible.  There is no mixer,  DINL and the output from ADCL are different inputs to the mux.  Only one input and one output can be selected. 

    please reference section 11.4.2 in the datasheet. for info on SW-D1 (which is currently open in your case)  The intended use for that line is to provide a record-only path. 

    For your current path, you do have the analog volume control, for example if you are using HPLCOM,  you could use R54 and R53 to control the volume of each.  These volume controls would not have the soft step feature of course. 

    best regards,

    -Steve wilson

  • Hi Steve,

    thanks for a prompt reply, it's all clear now. Do you know if there are any codec ICs in TI portfolio that allow mixing  I2S audio stream with analog input so that volume control for both of them happens on the codec itsef?

    Regards,

    Andrej.

  • Hi Andrej,

    I may be misunderstanding your question, but the AIC3101 does have the capability to control both volumes on the codec. As I mentioend in my previous post, one example of this that I pointed out was using the summing block before the HPLCOM block and use R53 and R54 to control each volume.

    if you are saying that you need to do this mixing digitally, then you would need one of our devices with a fully programmable mini-dsp such as the TLV320AIC3254. This is a much more powerful codec, and the mixing feature would only use a small fraction of the miniDSP's capability.

    best regards,
    -Steve Wilson
  • Hi Steve,

    yes, my bad, I totally forgot to mention that I'm using AIC3101 with CC8520 chip, which is configured through Purepath Wireless Configurator. CC8520 runs in autonomous mode and handles the volume control. From what I understand, it sends commands to AIC3101 over I2C to do the volume control. I couldn't find a way to program CC8520 to send particular I2C commands to codec, when volume control GPIOs are pressed, so I assumed that this part of firmware is simply not configurable. If I'm not mistaken, by default, when volume control GPIOs are pressed, CC8520 changes values of R43 and R44. Consequently I came to a conclusion that I'd need to either route both I2s  and LineIn streams through the DAC or to have an external microcontroller which would change values of R53 and R54 in addition to R43 and R44. To keep the number of parts on my PCB as small as possible, I decided to investigate the first option. But since you said it is not possible, I guess I'll have to use a microcontroller. Thanks for your help.

    Regards,

    Andrej.

  • Hi Steve,

    turns out it is possible to define I2C commands which are sent from CC8520 to AIC3101 by creating a custom Audio Device Definition File. I managed to get it all working. Thank you very much for your help.

    Regards,

    Andrej.
  • Andrej,

    I'm glad you were able to get this working. The purepath wireless configuration tool can be a little obtuse, but it is flexible and gets the job done.

    Let us know if you have any other questions!

    best regards,
    -Steve wilson