Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74e52fb5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio hal default impl: Check for "default" instance name"

parents cef7955c 6ffde44e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -106,8 +106,8 @@ out:
    return rc;
}

IDevicesFactory* HIDL_FETCH_IDevicesFactory(const char* /* name */) {
    return new DevicesFactory();
IDevicesFactory* HIDL_FETCH_IDevicesFactory(const char* name) {
    return strcmp(name, "default") == 0 ? new DevicesFactory() : nullptr;
}

}  // namespace implementation
+2 −2
Original line number Diff line number Diff line
@@ -178,8 +178,8 @@ Return<void> EffectsFactory::debugDump(const hidl_handle& fd) {
    return Void();
}

IEffectsFactory* HIDL_FETCH_IEffectsFactory(const char* /* name */) {
    return new EffectsFactory();
IEffectsFactory* HIDL_FETCH_IEffectsFactory(const char* name) {
    return strcmp(name, "default") == 0 ? new EffectsFactory() : nullptr;
}

}  // namespace implementation