If you have iMac28,2 on Zorin OS 18.1 with Linux Kernel 7.0.0-28-generic
First make sure you have Zorin OS 18.1 with Linux Kernel 7.0.0-28-generic.
Turn on Source Code on Zorin Sofware Update (User Interface). This is so you can get Linux kernel source files.
We do not need to compile a whole new kernel, but just the sound module so it can work with Apple Mac Hardware. Including iMac A1418.
It basically downloads Linux kernel source 7.0.0-28-generic then create a .tar.bz2 but only from sound/hda with applied patches for Apple Hardware. Then it compiles the source into a module. Next time you reboot it uses this fixed sound module.