mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "audio VTS: Fix call to IDevice::close in V6 tests" am: e82bfc646f am: b479a2793b
Change-Id: I4a72e69b5256b9203d51c88996612d82449f97a0
This commit is contained in:
@@ -113,7 +113,11 @@ class DeviceManager : public InterfaceManager<DeviceManager, FactoryAndDevice, I
|
||||
#elif MAJOR_VERSION >= 6
|
||||
{
|
||||
sp<IDevice> device = getExisting(std::make_tuple(factoryName, name));
|
||||
if (device != nullptr) device->close();
|
||||
if (device != nullptr) {
|
||||
auto ret = device->close();
|
||||
ALOGE_IF(!ret.isOk(), "Device %s::%s close failed: %s", factoryName.c_str(),
|
||||
name.c_str(), ret.description().c_str());
|
||||
}
|
||||
}
|
||||
return InterfaceManager::reset(std::make_tuple(factoryName, name), false);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user