[pulseaudio-tickets] [Bug 93651] pulseaudio try to open non-existent /dev/snd/pcm* which hugely increased startup time

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 10 13:11:57 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93651

--- Comment #9 from Tom Yan <tom.ty89 at gmail.com> ---
(In reply to Tanu Kaskinen from comment #8)
> (In reply to Tom Yan from comment #7)
> > 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.

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 at 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 at 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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160110/4aa166b3/attachment.html>


More information about the pulseaudio-bugs mailing list