[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <544804F1.7090606@linux.intel.com>
Date: Wed, 22 Oct 2014 14:26:41 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Devin Heitmueller <dheitmueller@...nellabs.com>,
Takashi Iwai <tiwai@...e.de>
CC: alsa-devel@...a-project.org, Lars-Peter Clausen <lars@...afoo.de>,
Linux Media Mailing List <linux-media@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"ramakrmu@...co.com" <ramakrmu@...co.com>,
Shuah Khan <shuahkh@....samsung.com>,
Hans Verkuil <hverkuil@...all.nl>,
Sander Eikelenboom <linux@...elenboom.it>,
prabhakar.csengg@...il.com, Antti Palosaari <crope@....fi>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
"sakari.ailus@...ux.intel.com" <sakari.ailus@...ux.intel.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Tim Gardner <tim.gardner@...onical.com>,
"olebowle@....com" <olebowle@....com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Mauro Carvalho Chehab <m.chehab@...sung.com>
Subject: Re: [alsa-devel] [PATCH v2 5/6] sound/usb: pcm changes to use media
token api
On 10/21/14, 11:08 AM, Devin Heitmueller wrote:
>> Sorry, I'm not convinced by that. If the device has to be controlled
>> exclusively, the right position is the open/close. Otherwise, the
>> program cannot know when it becomes inaccessible out of sudden during
>> its operation.
>
> I can say that I've definitely seen cases where if you configure a
> device as the "default" capture device in PulseAudio, then pulse will
> continue to capture from it even if you're not actively capturing the
> audio from pulse. I only spotted this because I had a USB analyzer on
> the device and was dumbfounded when the ISOC packets kept arriving
> even after I had closed VLC.
this seems like a feature, not a bug. PulseAudio starts streaming before
clients push any data and likewise keeps sources active even after for
some time after clients stop recording. Closing VLC in your example
doesn't immediately close the ALSA device. look for
module-suspend-on-idle in your default.pa config file.
I also agree that the open/close of the alsa device is the only way to
control exclusion.
-Pierre
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists