To get onboard sound working on Teclast F5 with ES8336 codec we needs to use Linux kernel patches from SOF Project and the latest sof-firmware (v1.9).
On NixOS modify your configuration.nix
like the following:
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./hardware-fixes/asoc-es8336.nix
];
boot.kernelPackages = pkgs.linuxPackages_5_14;
}
Unfortunately this recipe does not work. Sound device appears in system, but it does not output sound. Checked on 5.16rc5 / 5.15.7+patches + sof v1.9.3.