Does sample code exist for digital audio output on X27 on Apalis eval board?

I have compiled and run the sample audio code i found, which outputs .wav file s on X26. Does a similar sample code exist for the digital output connector X27 on an Apalis iMX6 eval board?

Unfortunately HDA audio is not supported at all by the i.MX 6 SoC so it also won’t work on Apalis iMX6.

Does this problem only exist because the Apalis carrier board has a Realtek HDA ACL898 audio IC? If I were to use an AC97 or I2S audio codec chips wouldn’t I be able to get Digital audio from the iMX6? Is there BSP support for AC97 or I2S audio codecs?

Does this problem only exist because the Apalis carrier board has a Realtek HDA ACL898 audio IC?

yes. The i.MX 6 SoC can not do HDA.

Assuming you are using Linux:

If I were to use an AC97 or I2S audio codec chips wouldn’t I be able to get Digital audio from the iMX6?
Is there BSP support for AC97 or I2S audio codecs?

Yes, we successfully added a I2C Audio Codec to the DAP pins:

I2S BCLK        MXM3_200
I2S LRCLK       MXM3_204
I2S DIN         MXM3_196 SOC -> Codec, playback
I2S DOUT        MXM3_202 Codec -> SOC, record

You will of course need to make sure that the codec driver is available in the compiled kernel and the device tree is changed accordingly.

How well the i.MX 6’s SSI supports AC97 I don’t know.

Max