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.

TLV320AIC3104EVM-K: Unable to get the codec to output sound

Part Number: TLV320AIC3104EVM-K

Hi All,

I tested the codec with the evaluation software and was able to play audio. Now I am trying to get the codec working with the beaglebone running Debian. The issue is, I don't get any sound output from the codec.

Below image shows my SW-2 settings. Please advise if the settings are right.

By probing the i2c and i2s bus(mclk and audio out) lines, I could confirm that the driver works fine. I tested this using aplay and playing a short wav file. But I don't hear any sound. The below shows the captured signals.

Below is what I get when I dump the register contents of the codec ic.

Also, when I run speaker-test -c2 sine. I get the below output and signals.

Any support getting it to work would be helpful. 

  • Hello Vinay,

    The SW-2 settings look fine. Can you confirm that you can write to the registers?

    Looking at the register dump, I seems like the digital data path is not getting configured. In reg. 7, the Left and Right DAC data paths are off and both DACs are not getting powered on in reg. 37. I would double check that you can confirm a write to the device via I2C.

    Regards,

    Aaron

  • Hello Aaron,

    Yes, I am able to write to the regs as shown below.

    And then I run the "speaker-test -t sine -c 2", after a few seconds I can hear the tones. After this when I dump the reg contents, everything that I had manually configured has been overwritten as shown below.

    I think the driver is overwriting the configuration registers of the codec. I also forcibly write to the registers at present to manually configure them, I need to figure out how to do that via code but that's another problem. For now, I'd like to just configure it once and there on just use the audio interface and leave the i2c alone. Could you provide me insights on how best to approach this problem?

    Thanks,

    Vinay

  • Hello Vinay,

    We unfortunately don't provide driver support and I myself am unfamiliar with these drivers. 

    If you are having configuration issues, then I will be able to provide some insight. Apologies for the inconvenience.

    Regards,

    Aaron

  • Hello Aaron, 

    No problem.

    I just wanted to check if there ever existed any examples drivers/source code by TI (nothing specific to Debian, may be developed to be used with the TI's SDK) for this codec chip for me to use as a reference for development?

    We are a bit stuck in getting the codec to work properly and may be due to a buggy driver. Any insights or directions would be appreciated.

    Thanks,

    Vinay

  • Hi Vinay,

    There is a Windows 7 driver on the EVM product page. That, to my knowledge, is the only driver we have available for the AIC3104. There may be driver examples online that you can search for but we unfortunately don't provide any other examples or source code. 

    Regards,

    Aaron.