I am here to report the results of today's experiments as promised but I do not have good news for now.
On the positive side, with the patched snd-hda-intel (loading snd-hwdep first) I can use hda-verb to change those settings and restore the original HDA configuration after the NVIDIA driver changes them.
Unfortunately, I noticed that whenever I load the snd-hwdep module, even with the original snd-hda-intel, the sound does not work even in console.
Finally, but I do not know if this is a symptom or the cause, while booting, when the sound does not work I do not see the following message
HDA Intel 0000:00:1b.0: enabling device (0000 -> 0002)
Perhaps I can force it using the enable
parameter while loading snd-hda-intel, but I have to confirm/check that.
If you have any idea, ping me.