I bought a Asus Zenbook, and I installed ubuntu 22.04 with dual boot on windows 11. From the start the speakers on ubuntu didn't give any sound, but they were detected, and on Windows it worked fine. Lately I have been using Windows more and suddently when I started using ubuntu again, the audio didn't work at all, no even headphones which previously did, now it shows dummy output on the sound settings. I went to Windows and the sound does not work also, I had Realtek audio installed and the settings for that disappeared from Windows. I believe I might have lost the connection with the audio driver, but I don't know, so I might be oversaying. I don't know how to fix this, so I ask if someone could help fix this, I would very much appreciate.
I haven't tried much, went through the windows troubleshoot but it didn't help much.