diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c index 99d61a4b8..e60d7852f 100644 --- a/src/modules/module-switch-on-port-available.c +++ b/src/modules/module-switch-on-port-available.c @@ -71,6 +71,9 @@ static bool profile_good_for_output(pa_card_profile *profile, pa_device_port *po card = profile->card; + if (pa_safe_streq(card->active_profile->name, "off")) + return true; + if (!pa_safe_streq(card->active_profile->input_name, profile->input_name)) return false; @@ -103,6 +106,9 @@ static bool profile_good_for_input(pa_card_profile *profile, pa_device_port *por card = profile->card; + if (pa_safe_streq(card->active_profile->name, "off")) + return true; + if (!pa_safe_streq(card->active_profile->output_name, profile->output_name)) return false;