Bravo, Nicolas!
ff. on Wed, 29 Jul 2020 12:00:02 +0200 from kernel-request@pyra-handheld.com: ( \Kernel Digest, Vol 74, Issue 17 \kernel@pyra-handheld.com \ )
Send Kernel mailing list submissions to kernel@pyra-handheld.com ... Today's Topics:
- omap-abe-twl6040 and aess (H. Nikolaus Schaller)
Message: 1 Date: Tue, 28 Jul 2020 12:54:32 +0200 From: "H. Nikolaus Schaller" hns@goldelico.com To: David Shah dave@ds0.me, Tony Lindgren tony@atomide.com, Peter Ujfalusi peter.ujfalusi@ti.com Cc: Discussions about the Letux Kernel letux-kernel@openphoenux.org, kernel@pyra-handheld.com, Linux-OMAP linux-omap@vger.kernel.org, Andrey Utkin andrey_utkin@fastmail.com, Belisko Marek marek.belisko@gmail.com Subject: omap-abe-twl6040 and aess Message-ID: 39175614-8484-493C-B580-8DAF5B53F80B@goldelico.com Content-Type: text/plain; charset=us-ascii
Hi, 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 broken...
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
- SPDIF
- AESS
- connections between McBSP1,2,3 for FM, Bluetooth, Modem
The tree based on v5.8-rc7 is here:
https://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux/...
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:
https://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/work-a...
Comments, patches, suggestions, help, support, critics are welcome.
Maybe we can eventually get this beast working with upstream kernels...
BR, Nikolaus
root@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@letux:~#
Subject: Digest Footer
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
End of Kernel Digest, Vol 74, Issue 17