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.

PCM3070: PCM3070 Enabling Loopback?

Part Number: PCM3070
Other Parts Discussed in Thread: OMAP-L138

Hi, I am bringing up a new HW design with a PCM3070. The codec is coupled to an OMAP-L138 McASP and successfully streaming wav files with aplay, but still working on getting audio capture going.

The immediate question however is loopback. I am trying to validate some of the analog signal path, according to the PCM3070 Application Reference Guide SLAU332–March 2011

Page 0 / Register 29: Audio Interface Setting Register 3 - 0x00 / 0x1D - bit D5

enables "Audio Data in is routed to Audio Data out" . Looking at Figure 2-1. Analog Routing Diagram it appears that IN1 is the only input routed to HPL/HPR.

However with the HP stage and output active, with the loopback enabled and with audio being input to IN1, there is no audio out. Is this a simple analog path? Are there any other register settings I am missing? Does anything else need to be activated? ie: I2S clocks?  If you could provide a register set example like in Chapter 4 Example Setups to enable loopback would be very much appreciated.  Thanks in advance, Tom

  • Ok, looks like the analog path from INL/R to HPL/R has nothing to do with loopback, just set Page 1 / Register 12: HPL Routing Selection Register - 0x01 / 0x0C & Page 1 / Register 13: HPR Routing Selection Register - 0x01 / 0x0D. Simply misunderstood "audio data" my bad.
  • Hi, Tom,

    The Audio Loopback feature you are referring is actually not related to the analog section of the device.  "Audio Data in is routed to Audio Data out" refers to the digital interface, by enabling this bit, the data sent to the codec on DIN signal will be sent back to the processor via DOUT. The second loopback(Stereo ADC output is routed to Stereo DAC input)  makes a similar effect, but inside the codec, connecting the ADC output to the DAC input, bypassing the digital audio interface.

    In order to bypass audio from IN1 to HP outputs, you need to configure the following registers (apart from the typical device initialization):

    #Select Page 1
    w 30 00 01
    #IN1L is routed to HPL
    w 30 0C 04
    #IN1R is routed to HPR
    w 30 0D 04

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego, thanks for the quick response & clarification, it helps my understanding of how this works. Regs, Tom