lkml.org 
[lkml]   [2014]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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



    \
     
     \ /
      Last update: 2014-10-22 22:01    [W:3.321 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site