[PATCH 0/3] Suspending loopback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2012-05-03 at 18:17 +0200, Fr?d?ric Dalleau wrote:
> Hi,
> 
> This is follow up to the previous patch, using Tanu's comment.
> http://lists.freedesktop.org/archives/pulseaudio-discuss/2012-May/013454.html
> 
> So i've manager to suspend the loopback using the first 2 patches.
> After that I found that the A2DP source didn't suspend itself when the
> stream was suspended, so i added patch 3.

I don't know if this affects the rate adjustment logic. Maybe not, at
least much, because it seems to base its calculations on the received
and sent byte counters, and both those should stop and continue pretty
much in sync when the loopback is stopped and started.

Another thing is that when the loopback stops, there will be data left
in the buffers. When the loopback continues, it will play the old data
first, which will probably be audible as a glitch. I think this and also
the rate adjustment problem would be solved if the loopback state would
be reset when stopping to what it was at module load time.

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.

-- 
Tanu



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux