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.

Has anybody used the TLV320AIC3254 with the OMAP-L138 DVSDK/PSP?

Other Parts Discussed in Thread: TLV320AIC3254, OMAP-L138

Hi,

We are having trouble getting the TLV320AIC3254 to work with the OMAP-L138 using the standard DVSDK released by TI.

Has anybody ever written a codec driver that works with the davinci sound modules? (i.e. davinci-evm, davinci-mcasp)

I'd like to hear how you got it working.

 

  • Grant,

    Can you elaborate on what issues are you having with the codec?

    Regards,

    Vaibhav

  • Hi Vaibhav,

    The issue that we are seeing is that with the TLV320AIC325x4 configured as I2S master the BCLK and the WCLK are never driven by the codec. this causes the McASP module on the OMAP-L138 to not send the audio data to the codec.

    I've attached out boot up log with aplay invocation with this reply for your reference.5775.bootUp.log.

    I think I've added enough debug messages to be able to see all register access on the codec as well as the McASP to determine if there are any problem configuring both modules. Also, the codec driver I am using is based on the OMA3EVM codec driver from TI which I ported to the OMAP-L138.

    Regards,

    Grant

     

  • Grant,

    Can you provide a diff of the changes that you have made? Instead of register dumps, that will be much simpler to go through.

    Did you pick up the codec driver from the ASoC mailing list or have you developed your own driver? Can you provide that also.

    Regards,

    Vaibhav

  • Hi Vaibhav,

    Here's the diff on the changes I made for davinci-evm.c

    2766.davinci-evm_diff.txt

    I also attached the actual file that I modified as well as the codec driver that I changed for the OMAP-L138

    1715.davinci-evm.c.TXT

    8400.tlv320aic32x4.c.TXT

    5001.tlv320aic32x4.h.TXT

    I have to change the file extensions so that the forum will allow me to attach the files.

    Regards,

    Grant

  • Hi Grant,

    Can you probe the connections between the codec and the McASP to rule out any issues there? In the evm.c file you have set the sysclk as 24MHz, i assume this is fed to the MCLK input of the codec. Is this clk coming from a crystal or somewhere else?

    The next step would be dumping the codec registers to see the configuration when the transfer should be happening but is not. Not sure which kernel version this is on, but usually you can get the register dump from a file under sysfs at the following location: /sys/bus/platform/devices/soc-audio.x/codec_reg.

    Regards,

    Vaibhav

  • Hi Vaibhav,

    We are able to determine that this issue was caused wrong setup of the Power-supply circuit configuration of the Codec. We utilize the TI guide SLAA404C as a guide to determine the proper power-supply circuit configuration (we utilized option B of Figure 4 of the document). After this it was just setting up the mixer settings and now we can demonstrate that both audio recording and playback are working.

    No modifications on the code I attached to this forum. so if future users will require support for AIC32x4 with the OMAP-L138 DVSDK release they can utilize the files that I provided.

     

    Thank you for all the help.

     

    Best Regards.

    Grant

  • Hi Grant,

    Glad that you got it working :)

    I see that you have some other related threads on this topic. If you don't mind can you close them too?

    Thanks and regards,

    Vaibhav