diff --git a/media/libstagefright/omx/SoftOMXPlugin.cpp b/media/libstagefright/omx/SoftOMXPlugin.cpp index 8c186c90f8..6258ee08d7 100644 --- a/media/libstagefright/omx/SoftOMXPlugin.cpp +++ b/media/libstagefright/omx/SoftOMXPlugin.cpp @@ -61,6 +61,9 @@ static const struct { { "OMX.google.flac.decoder", "flacdec", "audio_decoder.flac" }, { "OMX.google.flac.encoder", "flacenc", "audio_encoder.flac" }, { "OMX.google.gsm.decoder", "gsmdec", "audio_decoder.gsm" }, + { "OMX.dolby.ac3.decoder", "ddpdec", "audio_decoder.ac3" }, + { "OMX.dolby.eac3-joc.decoder", "ddpdec", "audio_decoder.eac3_joc" }, + { "OMX.dolby.eac3.decoder", "ddpdec", "audio_decoder.eac3" }, }; static const size_t kNumComponents = diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp index 77aa8048fa..c949338686 100644 --- a/services/audioflinger/Effects.cpp +++ b/services/audioflinger/Effects.cpp @@ -2852,6 +2852,11 @@ static const effect_uuid_t SL_IID_VOLUME_ = { 0x09e8ede0, 0xddde, 0x11db, 0xb4f6 const effect_uuid_t * const SL_IID_VOLUME = &SL_IID_VOLUME_; #endif //OPENSL_ES_H_ +// Dolby Atmos +static const effect_uuid_t SL_IID_DAP_ = // 46d279d9-9be7-453d-9d7c-ef937f675587 +{ 0x46d279d9, 0x9be7, 0x453d, 0x9d7c, {0xef, 0x93, 0x7f, 0x67, 0x55, 0x87} }; +const effect_uuid_t * const SL_IID_DAP = &SL_IID_DAP_; + /* static */ bool AudioFlinger::EffectChain::isEffectEligibleForBtNrecSuspend(const effect_uuid_t *type) { @@ -2870,7 +2875,8 @@ bool AudioFlinger::EffectChain::isEffectEligibleForSuspend(const effect_descript (((desc.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY) || (memcmp(&desc.type, SL_IID_VISUALIZATION, sizeof(effect_uuid_t)) == 0) || (memcmp(&desc.type, SL_IID_VOLUME, sizeof(effect_uuid_t)) == 0) || - (memcmp(&desc.type, SL_IID_DYNAMICSPROCESSING, sizeof(effect_uuid_t)) == 0))) { + (memcmp(&desc.type, SL_IID_DYNAMICSPROCESSING, sizeof(effect_uuid_t)) == 0) || + (memcmp(&desc.type, SL_IID_DAP, sizeof(effect_uuid_t)) == 0))) { return false; } return true;