Comment 1 for bug 1834138

Revision history for this message
Hui Wang (hui.wang) wrote : Re: PA: can't auto switch streams between different sinks

Probably we need to backport this patch:

commit 30a551bbc45f2d213e8b2889c8bede8a9c16c9d2
Author: João Paulo Rechi Vita <email address hidden>
Date: Mon Dec 10 16:16:46 2018 -0800

    switch-on-port-available: Check if we need to change the active profile

    When a port becomes unavailble its profile may also become unavailable.
    If that profile is the card's active profile, we need to switch the
    card's active profile to a different one.

    If we don't do that a card may get stuck on a profile without available
    ports, but its sink and source will still exist, preventing
    module-rescue-streams to move the streams to a different card with
    available ports.

    The relation between port availability and profile availability is
    defined by the driver, and for the ALSA driver a profile is considered
    available if there is at least one (available || unknown) port for each
    direction implemented by the profile. Because of that we can only check
    the profile's availability and priority when looking for the best
    profile and don't need to look at port's priorities.

    https://phabricator.endlessm.com/T24904