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

Commit d6454722 authored by Kevin Rocard's avatar Kevin Rocard Committed by Android (Google) Code Review
Browse files

Merge "Dynamic audio policy should reject non pcm"

parents 6787e25a c2afbdf2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -953,8 +953,8 @@ status_t AudioPolicyManager::getOutputForAttrInt(

    // FIXME: in case of RENDER policy, the output capabilities should be checked
    if ((usePrimaryOutputFromPolicyMixes || !secondaryDescs->empty())
        && !audio_has_proportional_frames(config->format)) {
        ALOGW("%s: audio loopback only supports proportional frames", __func__);
        && !audio_is_linear_pcm(config->format)) {
        ALOGD("%s: rejecting request as dynamic audio policy only support pcm", __func__);
        return BAD_VALUE;
    }
    if (usePrimaryOutputFromPolicyMixes) {