Skip to content
  • Tanu Kaskinen's avatar
    alsa-card: improve the profile availability logic · 0d50e787
    Tanu Kaskinen authored and Arun Raghavan's avatar Arun Raghavan committed
    When a new card shows up (during pulseaudio startup or hotplugged),
    pulseaudio needs to pick the initial profile for the card. Unavailable
    profiles shouldn't be picked, but module-alsa-card sometimes marked
    unavailable profiles as available, causing bad initial profile choices.
    
    This patch changes module-alsa-card so that it marks all profiles
    unavailable whose all output ports or all input ports are unavailable.
    Previously only those profiles were marked as unavailable whose all
    ports were unavailable. For example, if a profile contains one sink and
    one source, and the sink is unavailable and the source is available,
    previously such profile was marked as available, but now it's marked as
    unavailable.
    
    BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=102902
    0d50e787