From: Arun Raghavan <arun.raghavan@collabora.co.uk>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Event flood on USB disconnect
Date: Tue, 04 Oct 2011 08:40:43 +0530 [thread overview]
Message-ID: <1317697927.31863.21.camel@snowflake> (raw)
In-Reply-To: <CAN8cciZi1JYKRU8tWF4gmG_O9vSf88zBrhXyrC1iRNNC3eT12Q@mail.gmail.com>
On Tue, 2011-10-04 at 10:30 +0800, Raymond Yau wrote:
> 2011/10/1 Arun Raghavan <arun.raghavan@collabora.co.uk>:
> > On Sat, 2011-10-01 at 14:19 +0530, Arun Raghavan wrote:
> >> 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
> >
> > Missed one detail -- I've only seen this happen on the alsa-source
> > thread, not on alsa-sink, but I've only tested with one device which has
> > playback as well as capture.
> >
> > -- Arun
> >
>
> Cannot reproduced this issue on ubuntu 11.04 Live CD with Logictech WebCam mic
Thanks for trying this out.
> PA server still keep running and Gnome Sound Preference automatically
> change the selected "input device" from USB microphone to on-board
> sound card when usb webcam is unplugged
>
> Actully Gnome Sound Preference is lying about "no application is using
> the sound card" since it open the "monitor" at 25Hz (peak-detect" for
> displaying the vumeter of the microphone
Sorry, my bad for not noticing this -- the code that polls the mixer fds
got added in PulseAudio 1.0,. Ubuntu 11.04 runs PA 0.9.23. Could you try
with an updated PA (and just to make sure, without the GNOME Sound
Preferences dialog open, since that'll keep the device open and the
disconnect gets handled earlier while polling the pcm).
Cheers,
Arun
next prev parent reply other threads:[~2011-10-04 3:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-10-03 8:36 ` Colin Guthrie
2011-10-03 21:50 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1317697927.31863.21.camel@snowflake \
--to=arun.raghavan@collabora.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=superquad.vortex2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).