Skip to content
Snippets Groups Projects
Commit eaa6d5d6 authored by Tanu Kaskinen's avatar Tanu Kaskinen Committed by Arun Raghavan
Browse files

switch-on-port-available: Fix switching away from unplugged headphones

Commits 323195e3 ("switch-on-port-available: Switch to headphones on
unknown availability") and d83ad699 ("module-alsa-card: Drop
availability groups with only one port") broke switching from headphones
to speakers when headphones are unplugged. switch_from_port() selects
speakers, whose availability is unknown and availability group is unset,
and then calls switch_to_port(). The new logic in switch_on_port()
unintentionally blocked that switch.

This patch moves the problematic logic from switch_to_port() to
port_available_hook_callback() where it doesn't interfere with
switch_from_port().

Fixes: #1043
parent 6ad2d207
No related branches found
No related tags found
Loading
Pipeline #232715 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment