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

Dalleau, Frederic frederic.dalleau at intel.com
Thu Sep 20 08:41:32 PDT 2012


Hi Mikel,

On Thu, Sep 20, 2012 at 2:28 PM, Mikel Astiz <mikel.astiz.oss at gmail.com> wrote:
> From: Mikel Astiz <mikel.astiz at bmw-carit.de>
>
> v2 modifies previous patches as suggested by Tanu:
>
> - Sink-inputs and source-outputs are created corked, and immediately afterwards uncorked if audio not suspended.
>
> - Patch v2 3/3 stops the rate adjustment timer while the audio is suspended.
>
> From original cover-letter (from Frédéric):
>
> 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.
>
> Frédéric Dalleau (2):
>   loopback: Cork sink-input if source is suspended
>   loopback: Cork source-output if sink is suspended
>
> Mikel Astiz (1):
>   loopback: Disable adjust timer when suspended
>
>  src/modules/module-loopback.c |   73 ++++++++++++++++++++++++++++++++++++----
>  1 files changed, 65 insertions(+), 8 deletions(-)
>
> --
> 1.7.7.6
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

I ok with this patchset (including 3/3), it works fine if I use pacmd
suspend-source xyz.

Note that there is still the problem that module-suspend-on-idle do
not suspend the source.
I'm wondering if the source-output can be tagged so that
module-suspend-on-idle does not take it into account,
I have seen the following flags
PA_SOURCE_OUTPUT_DONT_INHIBIT_AUTO_SUSPEND, could this work?

Regards,
Frédéric


More information about the pulseaudio-discuss mailing list