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

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

 



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


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

  Powered by Linux