Skip to content

Commit

Permalink
Merge pull request #7 from Derp-Garden/14
Browse files Browse the repository at this point in the history
Dolby atmos required
  • Loading branch information
NurKeinNeid committed Nov 18, 2023
2 parents 65f399e + b0c992b commit a451db8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions media/libstagefright/omx/SoftOMXPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
8 changes: 7 additions & 1 deletion services/audioflinger/Effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit a451db8

Please sign in to comment.