commit | 1afb46c96d227cb45207e5aff2af987821946321 | [log] [tgz] |
---|---|---|
author | Shunkai Yao <yaoshunkai@google.com> | Tue Jan 09 20:40:45 2024 +0000 |
committer | Shunkai Yao <yaoshunkai@google.com> | Fri Jan 12 17:24:44 2024 +0000 |
tree | 35b418a0cb411e04836a21ed4e218470b3e79f76 | |
parent | e67f8727084af33eec14d35fe33d767c8831750f [diff] [blame] |
Effect AIDL: implement IEffect.reopen - add IEffect.reopen implementation - now data MQs can update at runtime, sync EffectContext access - add clang thread annotation Bug: 302036943 Test: atest VtsHalAudioEffectTargetTest Test: Build and test effect on Pixel Change-Id: Ib344abb8be6ede07bf05ba3d4829672a9ef41374 Merged-In: Ib344abb8be6ede07bf05ba3d4829672a9ef41374
diff --git a/media/libeffects/preprocessing/aidl/PreProcessingContext.cpp b/media/libeffects/preprocessing/aidl/PreProcessingContext.cpp index c1e4eda..2c44e5c 100644 --- a/media/libeffects/preprocessing/aidl/PreProcessingContext.cpp +++ b/media/libeffects/preprocessing/aidl/PreProcessingContext.cpp
@@ -141,6 +141,9 @@ } RetCode PreProcessingContext::setCommon(const Parameter::Common& common) { + if(auto ret = updateIOFrameSize(common); ret != RetCode::SUCCESS) { + return ret; + } mCommon = common; updateConfigs(common); return RetCode::SUCCESS;