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.

TAS5729MD: TAS5729MD Linux Codec + machine driver

Part Number: TAS5729MD
Other Parts Discussed in Thread: TAS5805

Hi

I have a custom board (iMX8M) with a TI TAS5729MD amplifier connected. But looking for a machine driver and a codec. I have tried modifying an existing machine driver and connected it with the TAS571x codec. The clocks seem to be running but can't get any output on the speakers. So if there exists a machine driver which works with the codec I would much appreciate a link to that driver. 

The TAS571x codec seems to work fine with the TAS5729MD amplifier. Will there be any problems using the TAS571x codec for the TS5729MD chip? or do I need to create a new codec? The registers seem similar and the codec seem to identify the chip fine.

Any hints or links is much appreciated for me to get the TAS5729MD up an running.

Thanks

Esben

  • Hi Esben,

    The linux driver for TAS571x should work well with TAS5729. The drivers are in similar architecture. Just double check the registers address you are using.

    BTW, these devices are quite old, we have the latest generation devices - TAS5805 and TAS5825 with improved audio performance and efficiency. You may take a look at them. Thanks!

    Regards,

    Sam

  • Hi Sam

    Thanks for a prompt reply!

    I will double check the registers to make sure they are similar to the tas571x codec.

    Do you know of any example code or snippets for writing the ASOC machine driver? The codec is connected from the SOC using SAI and I2S. Especially the hw_parms and the set_bias_level callback implementations is giving me a hard time:-(

    Would it be possible to glue the codec to the SOC using the simple sound card?

    Thanks

    Esben

  • Hi Esben,

    Below E2E post has a Linux driver example code for TAS58xx family. Drivers for other class-d devices in Linux should be quite similar. Hopefully it can help. Thanks!

  • Hi Sam

    Thanks for the driver code. But does the supplied code work better that the tas571x codec? The codec driver seems to load up fine using that codec. My issue is the machine driver which configures the sound card. Especially the configuration when trying to play an audio file and the hw_params callback is called.

    Could be great if some examples exists on how to do the codec configuration from the sound card driver? Have not been able to find any snippets which show how that is done.

    BR

    Esben

  • Hi Esben,

    Looks like you are seeking for the driver for the sound card, where we have limited experience on this. 

    Here we mainly focus on the support of our class-d devices. Perhaps some Linux or embedded system development forum could bring you more help. Sorry for not able to help.

    Thanks!

    Regards,

    Sam