mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
aosp aidl bluetooth audio hal implementation
Bug: 228804498
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Id5fb60fe53ead9f5d2e6ecbb9988a23835cf2509
(cherry picked from commit b03b5c4a06)
Merged-In: Id5fb60fe53ead9f5d2e6ecbb9988a23835cf2509
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <error/expected_utils.h>
|
||||
|
||||
#include "core-impl/Module.h"
|
||||
#include "core-impl/ModuleBluetooth.h"
|
||||
#include "core-impl/ModulePrimary.h"
|
||||
#include "core-impl/ModuleRemoteSubmix.h"
|
||||
#include "core-impl/ModuleStub.h"
|
||||
@@ -117,6 +118,8 @@ std::shared_ptr<Module> Module::createInstance(Type type) {
|
||||
return ndk::SharedRefBase::make<ModuleStub>();
|
||||
case Type::USB:
|
||||
return ndk::SharedRefBase::make<ModuleUsb>();
|
||||
case Type::BLUETOOTH:
|
||||
return ndk::SharedRefBase::make<ModuleBluetooth>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,6 +137,9 @@ std::ostream& operator<<(std::ostream& os, Module::Type t) {
|
||||
case Module::Type::USB:
|
||||
os << "usb";
|
||||
break;
|
||||
case Module::Type::BLUETOOTH:
|
||||
os << "bluetooth";
|
||||
break;
|
||||
}
|
||||
return os;
|
||||
}
|
||||
@@ -301,6 +307,9 @@ std::unique_ptr<internal::Configuration> Module::initializeConfig() {
|
||||
case Type::USB:
|
||||
config = std::move(internal::getUsbConfiguration());
|
||||
break;
|
||||
case Type::BLUETOOTH:
|
||||
config = std::move(internal::getBluetoothConfiguration());
|
||||
break;
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user