Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db1e593e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: update derive_playback_snd_device to return correct device"

parents ea0aab94 b9eeba46
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1303,8 +1303,8 @@ static snd_device_t derive_playback_snd_device(void * platform,
        if (platform_check_backends_match(d3[0], d3[1])) {
            return d2; // case 5
        } else {
            // check if d1 and d3[1] are related
            if (d1 == d3[1])
            // check if d1 is related to any of d3's
            if (d1 == d3[0] || d1 == d3[1])
                return d1; // case 1
            else
                return d3[1]; // case 8