Sound does not work in your Ubuntu 22.04, and happen to have Everest ESSX8336 sound card in your machine? This tutorial may help!
ESSX8336 is one of the common used chips in recent laptops and tablets, such as Huawei Matebook D14~16, Gemini Lake laptop, and Chuwi Hi10X tablet. But, the current Linux Kernel does not support this sound card, though there seems to have patches (here and here) for it.
Until Linux Kernel officially adds the device support, you may build Kernel manually with the patch. Or use yangxiaohua’s custom kernel files to fix the issue.
NOTE: the steps below are done in an Intel machine. The commands in step 3 & 4 vary if you have AMD CPU.
1. This tutorial is tested on Ubuntu 22.04 with the 5.17 OEM Kernel. So, you may first press Ctrl+Alt+T to open terminal, and run command to install the kernel package:
sudo apt install --install-recommends linux-oem-22.04a
Code language: CSS (css)

And restart computer to apply change.
2. Next, run command to grab the source of yangxiaohua’s custom kernel files:
git clone https://github.com/yangxiaohua2009/custom-kernel
Code language: PHP (php)

3. Once done, navigate to that folder via command:
cd custom-kernel
And copy required files into system directories via:
sudo cp ./tplg var jetpackLazyImagesL10n = {"loading_warning":"Images are still loading. Please cancel your print and try again."};
Code language: JavaScript (javascript)