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

Commit 182b58a8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AAC: Don't fail configuration on older HALs" into sc-v2-dev

parents 9dade0ac aa2d2867
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -5395,9 +5395,7 @@ status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify) {
                            err = mOMXNode->getParameter(
                                    (OMX_INDEXTYPE)OMX_IndexParamAudioAndroidAacDrcPresentation,
                                    &presentation, sizeof(presentation));
                            if (err != OK) {
                                return err;
                            }
                            if (err == OK) {
                                notify->setInt32("aac-encoded-target-level",
                                                 presentation.nEncodedTargetLevel);
                                notify->setInt32("aac-drc-cut-level", presentation.nDrcCut);
@@ -5406,12 +5404,14 @@ status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify) {
                                                 presentation.nHeavyCompression);
                                notify->setInt32("aac-target-ref-level",
                                                 presentation.nTargetReferenceLevel);
                            notify->setInt32("aac-drc-effect-type", presentation.nDrcEffectType);
                                notify->setInt32("aac-drc-effect-type",
                                                 presentation.nDrcEffectType);
                                notify->setInt32("aac-drc-album-mode", presentation.nDrcAlbumMode);
                                notify->setInt32("aac-drc-output-loudness",
                                                 presentation.nDrcOutputLoudness);
                            }
                        }
                    }
                    break;
                }