If when I start my laptop the HDMI wire is not connected, xrandr reports a "DVI" interface, but if instead I start my laptop having the HDMI wire connected an HDMI interface is reported. This seemed a painless issue to me until I discover that the sound is not streamed to the HDMI port when it is detected as DVI.
Created attachment 41641 [details] [review] Defer HDMI/DVI till detection
Seems that is not working, xrandr is still reporting "DVI1" as name instead of HDMI1, and sound is not being forwarded. To test the patch I use linus+git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git + the patch.
Created attachment 41747 [details] Booting with HDMI cable connected
Created attachment 41748 [details] Booting WITHOUT hdmi connected
Created attachment 41749 [details] dmesg after connect the screen and try to play
Created attachment 41755 [details] [review] Defer HDMI/DVI till detection
Last patch work like a charm :), thanks!
Pushed to -fixes and pull request sent.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.