<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pulseaudio try to open non-existent /dev/snd/pcm* which hugely increased startup time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93651#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pulseaudio try to open non-existent /dev/snd/pcm* which hugely increased startup time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93651">bug 93651</a>
              from <span class="vcard"><a class="email" href="mailto:tom.ty89@gmail.com" title="Tom Yan <tom.ty89@gmail.com>"> <span class="fn">Tom Yan</span></a>
</span></b>
        <pre>(In reply to Tanu Kaskinen from <a href="show_bug.cgi?id=93651#c8">comment #8</a>)
<span class="quote">> (In reply to Tom Yan from <a href="show_bug.cgi?id=93651#c7">comment #7</a>)
> > Well yes, but I don't suppose keep trying and failing on things doesn't
> > exist is an efficient way, even if assume it's not bugged? Shouldn't there
> > be faster way to filter out what's on the "list" does not exist first?

> Failing due to non-exitent device should be very fast. If there is a faster
> way, patches are welcome to improve the code, but the speed gains will be
> rather minimal in any case. I expect your delays to be caused by devices
> that actually exist.</span >

Seems you're right. And it seems the issue only affect the hdmi/dp sound
devices on my nvidia card particularly, no matter which or whether any drm
driver is loaded or whether a monitor is connected to it. I just enabled my
iGPU and I didn't experience the same huge delay with it, if I set "id=NVidia
enable=0" to snd-hda-intel.

I am gonna post an ouput of `pulseaudio -vvv --log-time` with my only DP
monitor connected to my motherboard's DP port instead, plus the nvidia blob
driver uninstalled, and these:

[tom@localhost ~]$ grep . /etc/modprobe.d/*
/etc/modprobe.d/nouveau.conf:blacklist nouveau
/etc/modprobe.d/snd-hda-intel.conf:options snd-hda-intel id=HDMI enable=0
/etc/modprobe.d/snd-virtuoso.conf:blacklist snd-virtuoso

So the only card left is:

[tom@localhost ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>