<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [NVC1] HDMI audio device only visible after rescan"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75985#c36">Comment # 36</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [NVC1] HDMI audio device only visible after rescan"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75985">bug 75985</a>
              from <span class="vcard"><a class="email" href="mailto:hhfeuer@gmx.de" title="Maik Freudenberg <hhfeuer@gmx.de>"> <span class="fn">Maik Freudenberg</span></a>
</span></b>
        <pre>I don't know about the current state of this, I would put some effort into it
if nobody else is working on it. Daniel Drake's patch is a good starting point
for that.
Currently, it looks like the problem lies in that the audio dev is only ever
looked after on nouveau drm module load. Instead, the state of it should be
checked/toggled on
- connector connected/disconected
- poweron/off the corresponding gpu
e.g remove the audio dev on suspend if it has been previously enabled, on
resume check if any connector is connected that needs it and enabled it again
in that case.
This would also work around the quirks of some laptop's acpi toggling the bit
either on boot [1] or on suspend [2].
Desktop cards should not be affected by that because they start with audio dev
enabled, so it will not be touched.
Quirks will have to be added for nForce chipsets with IGP since those have a
separate audio dev.

BTW, the kernel module has moved to:
<a href="https://github.com/hhfeuer/nvhda">https://github.com/hhfeuer/nvhda</a>


[1]
<a href="https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/post/5228002/#5228002">https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/post/5228002/#5228002</a>
[2]
<a href="https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/post/5234127/#5234127">https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/post/5234127/#5234127</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>