diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2023-01-15 14:37:41 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2023-01-15 14:37:41 -0800 |
commit | 2bc41ae7df3e9f757055dbc9f48d745af725dac0 (patch) | |
tree | 142a3767bf6b65065cde85b8917a869ef74c4c6b /audio/effect/all-versions/default/Effect.h | |
parent | f177343e18479a9420a73aa1a1be56cce1714253 (diff) | |
parent | 32336a56e5d1852850d84aea35ab584ed6ce84a2 (diff) |
Merge 32336a56e5d1852850d84aea35ab584ed6ce84a2 on remote branch
Change-Id: I37ba79726c479d04e9162c56d714be12964d0ad5
Diffstat (limited to 'audio/effect/all-versions/default/Effect.h')
-rw-r--r-- | audio/effect/all-versions/default/Effect.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/effect/all-versions/default/Effect.h b/audio/effect/all-versions/default/Effect.h index 011544d760..5d8dcccba6 100644 --- a/audio/effect/all-versions/default/Effect.h +++ b/audio/effect/all-versions/default/Effect.h @@ -184,6 +184,9 @@ struct Effect : public IEffect { using GetSupportedConfigsSuccessCallback = std::function<void(uint32_t supportedConfigs, void* configsData)>; + // Sets the limit on the maximum size of vendor-provided data structures. + static constexpr size_t kMaxDataSize = 1 << 20; + static const char* sContextResultOfCommand; static const char* sContextCallToCommand; static const char* sContextCallFunction; @@ -211,8 +214,8 @@ struct Effect : public IEffect { channel_config_t* halConfig); static void effectOffloadParamToHal(const EffectOffloadParameter& offload, effect_offload_param_t* halOffload); - static std::vector<uint8_t> parameterToHal(uint32_t paramSize, const void* paramData, - uint32_t valueSize, const void** valueData); + static bool parameterToHal(uint32_t paramSize, const void* paramData, uint32_t valueSize, + const void** valueData, std::vector<uint8_t>* halParamBuffer); Result analyzeCommandStatus(const char* commandName, const char* context, status_t status); void getConfigImpl(int commandCode, const char* commandName, GetConfigCallback cb); |