[pulseaudio-discuss] [PATCH 6/8] module-switch-on-port-available: Use input and output names

Tanu Kaskinen tanuk at iki.fi
Mon Oct 19 21:25:01 PDT 2015


On Tue, 2015-05-05 at 17:01 +0200, David Henningsson wrote:
> diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c
> index eb8f2d7..8de68a3 100644
> --- a/src/modules/module-switch-on-port-available.c
> +++ b/src/modules/module-switch-on-port-available.c
> @@ -34,6 +35,9 @@ static bool profile_good_for_output(pa_card_profile *profile) {
>  
>      pa_assert(profile);
>  
> +    if (!pa_safe_streq(profile->card->active_profile->input_name, profile->input_name))
> +        return false;

It should be easy to make this work with profiles that have multiple
sources: just check that the candidate profile has all the sources that
the active profile has.

-- 
Tanu


More information about the pulseaudio-discuss mailing list