So as of this morning, the builtin microphone and speaker, along with headset speaker and microphone have stopped working on my Ubuntu 20.04. I have an asus zenbook. I have a dualboot installation (Ubuntu and Windows), microphone and speaker work perfectly fine on windows, so I assume that the hardware is fine.
On Ubuntu, I connected a display with speaker to the laptop through HDMI and the sound is played fine on the display. Laptop's builtin speaker still doesn't work. I've tried deleting and purging alsa and pulseaudio and reinstalling them, several times , but nothing changed.
I checked alsa mixer and everything seems fine: