Its the fix to the sound issue over HDMI faced by the linux users having Nvidia Graphics Card and using propritery Nvidia drivers.
Also it works for missing driver of HDA Nvidia.
Here, for me its was like in the pavucontrol there was HDMI showing but unplugged, even being plugged.
So after a lot a research, I got the solution from garudalinux forum. The issue is in the MHWD.
And can be fixed via, commenting a line from /etc/udev/rules.d/90-mhwd-prime-powermanagement.rules
ACTION == "add", SUBSYSTEM == "pci", ATTR {vendor} == "0x10de", ATTR{class} == "0x040300", ATTR {remove} = "1"
Save and reboot and I had HDMI sound.
ref: https://forum.garudalinux.org/t/hda-nvidia-sound-hdmi-laptops-mhwd-nvidia/6192