I have a NanoPI NEO 2 in a project with the I2C and I2S ports connected to a TFA9879 audio driver chip. I am trying to figure out how to install the drivers for this chip.

I can enable the I2C and I2S ports, and manually read and write registers on the chip through the I2C bus. I have also been able to enable the I2SMaster audio mode and output data to the I2S port. However, it appears that the built-in audio drivers expect a pcm5102a audio chip. The audio clock rate is wrong for the TFA9879 and it doesn't work.

I know that TFA9879 drivers exist in Linux, but I can't figure out how to install one into the existing Ubuntu install on my NanoPi.

Any advice on how to get this working?