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.

AM623: Configuring MCASP for S/PDIF TX using Linux

Part Number: AM623

Customer would like to configure the MCASP as an S/PDIF transmitter. I see support in the mcasp Linux driver but can't find any documentation in our SDK documentation or devicetree examples.

Any pointers would be appreciated.

  • Hi Jason,

    The S/PDIF format is supported by the DIT (Digital Audio Interface Transmitter) - transfer mode of the MCASP. 

    Please refer section: 12.1.1.2.2.5S/PDIF Coding Format  

    And section 12.1.1.4.4.1.2 DIT Mode Transmission Data Alignment Settings provides more details in TRM.

    From a software perspective, the first and foremost thing that needs to be done is set the op_mode as DAVINCI_MCASP_DIT_MODE as the driver does support this internally.

    Hope this helps.

    Best Regards,

    Suren

  • Suren,

    Understand that the TRM spikes it out and have seen some of the configuration in the MCASP Linux driver.

    Any more help you can give beyond the op_mode? Have we ever shown this mode working under Linux so that I can look at that as an example?

    Jason

  • Jason,

    I am checking internally with the SW team. Will get back to you with a response early next week.

    Best Regards,

    Suren

  • Hi Jason,

    Heard back from the SW team, we haven't verified DIT or S/PDIF on any of the newer SOCs. 

    From upstream, we see one omap soc using DIT mode (omap4-l4-abe.dtsi). Please check the OMAP4 boards using DIT mode for more details.

    The only change needed is op_mode specifying DIT as mentioned earlier.

    Best Regards,

    Suren