[Letux-kernel] omap-abe-twl6040 and aess

H. Nikolaus Schaller hns at goldelico.com
Tue Jul 28 12:54:32 CEST 2020

long time ago the LetuxOS kernel project had started to forward-port the abe/aess
extensions from the TI kernel and carried them along, but it got more and more

At some point we were not even able to play "normal" sound on the twl6040 of the Pyra.

Finally I have invested some time to reintegrate and fix most of the fragments on top of
v5.8-rc so that it:

* adds DTS nodes for ranges and reg mapping
* compiles the code
* still supports non-aess sound like upstream omap-abe-twl6040.c
* loads the aess driver as a separate and independent module
* tries to download aess firmware
* gracefully falls back to upstream omap-abe-twl6040.c functionality if aess firmware load fails

The following extensions of the TI code are for further study:
* DMIC 0/1/2 support
* connections between McBSP1,2,3 for FM, Bluetooth, Modem

The tree based on v5.8-rc7 is here:


Some of these patches are cosmetics for omap-abe-twl6040.c and can probably already be
upstreamed now.

Note that this series contains the earlier attempt and does a REVERT to upstream omap-abe-twl6040.c
on which the new code is based on. The earlier and reverted patches are only for reference because
they contain code that has not yet been ported.

A full kernel which can run on the Pyra (tested with letux_defconfig) is here:


Comments, patches, suggestions, help, support, critics are welcome.

Maybe we can eventually get this beast working with upstream kernels...


root at letux:~# dmesg|fgrep aess
[   17.049578] omap-abe-twl6040 sound: loading /lib/firmware/omap_aess-adfw.bin failed with error -22
[   17.071299] omap-abe-twl6040 sound: Direct firmware load for omap_aess-adfw.bin failed with error -22
[   17.131717] omap-abe-twl6040 sound: Failed to load firmware omap_aess-adfw.bin: -22
root at letux:~# 

More information about the Letux-kernel mailing list