mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
audio HAL: fix getParameters status check.
Bug: 38326193 Test: VTS tests for module VtsHalAudioV2_0TargetTest. Change-Id: If4109cea68120d722a3b1084ad583170e950cfa0
This commit is contained in:
@@ -78,8 +78,9 @@ void ParametersUtil::getParametersImpl(
|
||||
halKeys.addKey(String8(keys[i].c_str()));
|
||||
}
|
||||
std::unique_ptr<AudioParameter> halValues = getParams(halKeys);
|
||||
Result retval =
|
||||
halValues->size() == keys.size() ? Result::OK : Result::NOT_SUPPORTED;
|
||||
Result retval = (keys.size() == 0 || halValues->size() != 0)
|
||||
? Result::OK
|
||||
: Result::NOT_SUPPORTED;
|
||||
hidl_vec<ParameterValue> result;
|
||||
result.resize(halValues->size());
|
||||
String8 halKey, halValue;
|
||||
|
||||
Reference in New Issue
Block a user