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
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to