alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Event flood on USB disconnect
@ 2011-10-01  8:49 Arun Raghavan
  2011-10-01  8:53 ` Arun Raghavan
  2011-10-03  8:36 ` Colin Guthrie
  0 siblings, 2 replies; 6+ messages in thread
From: Arun Raghavan @ 2011-10-01  8:49 UTC (permalink / raw)
  To: ALSA Development Mailing List

Hi folks,
We're seeing a problem when disconnecting USB headsets in PulseAudio.
Steps to reproduce are basically: start PulseAudio, plug in USB device,
wait for it to suspend (pcm is closed but mixer is not), disconnect.
Fairly often, this results in PA getting killed because the polling
thread is realtime and exceeds its rlimit. The problem is not limited to
one machine or one USB headset, and I'm running kernel 3.0.4

I'm basically seeing a flood of events on the mixer pollfds (goes as
high as 4+ million of them). As far as I can tell, they all contain
(POLLERR|POLLNVAL). From a preliminary look at the code this seems to be
expected on a card disconnect, but I assume not so often.

I'm going to try to handle this by just stopping PA from listening on
these fds when I get a (POLLERR|POLLNVAL), but it seems to me that this
is a bug in the driver somewhere. Any ideas w.r.t. what might be going
wrong or where I should be looking to debug further?

Cheers,
Arun

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-04  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-01  8:49 Event flood on USB disconnect Arun Raghavan
2011-10-01  8:53 ` Arun Raghavan
2011-10-04  2:30   ` Raymond Yau
2011-10-04  3:10     ` Arun Raghavan
2011-10-03  8:36 ` Colin Guthrie
2011-10-03 21:50   ` Clemens Ladisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).