[pulseaudio-discuss] [PATCH 0/3] Suspending loopback

Dalleau, Frederic frederic.dalleau at intel.com
Fri May 4 02:49:01 PDT 2012


Hi Tanu,

On Fri, May 4, 2012 at 11:33 AM, Tanu Kaskinen <tanu.kaskinen at digia.com> wrote:
> On Fri, 2012-05-04 at 11:11 +0200, Dalleau, Frederic wrote:
>> Hi Tanu,
>>
>> On Fri, May 4, 2012 at 6:23 AM, Tanu Kaskinen <tanuk at iki.fi> wrote:
>> > On Thu, 2012-05-03 at 18:17 +0200, Frédéric Dalleau wrote:
>> > About the third patch - do you have module-suspend-on-idle loaded? If
>> > so, why doesn't it suspend the source? If the source doesn't go to the
>> > IDLE state when all its outputs are corked, then that's a bug. If the
>> > source does go to the IDLE state, but module-suspend-on-idle doesn't
>> > suspend it, then that's a bug too.
>> >
>>
>> That's chicken egg problem, the source never goes to idle because
>> the loopback has a source-ouput using it. And the source-output is not corked
>> because the source is not suspended.
>
> Ah, right, I understood the point of the third patch wrong. So the
> scenario is that the bluetooth state changes from PLAYING to CONNECTED
> without Pulseaudio asking for it? What's the use case? Does it mean that
> while the device supports the A2DP_SOURCE profile, it's not usable right
> now? I think changing the card profile to "off" would be the right
> reaction. Ideally the routing policy would get a signal that "this port
> is not available right now, but it's worth trying again later", but
> there's no infrastructure for that yet.
>

Yes it's exactly that,
I have two bluetooth adapters, and they are paired together. I'm using pulse
to send A2DP from one to the other. And then loopback to the speaker.
If I send a small sound, then the A2DP source will suspend on idle after
a few seconds. Then the A2DP sink (which is the pa_source used in the loopback)
has no data to play. And the loopback module fills the screen.

Frédéric


More information about the pulseaudio-discuss mailing list