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

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

Merge "libaudiohal: Add optional "msd" devices factory"

parents 068fe16a ebe144c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -43,6 +43,9 @@ DevicesFactoryHalHidl::DevicesFactoryHalHidl() {
        ALOGE("Failed to obtain IDevicesFactory service, terminating process.");
        exit(1);
    }
    // The MSD factory is optional
    mDevicesFactoryMsd = IDevicesFactory::getService(AUDIO_HAL_SERVICE_NAME_MSD);
    // TODO: Register death handler, and add 'restart' directive to audioserver.rc
}

DevicesFactoryHalHidl::~DevicesFactoryHalHidl() {
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ class DevicesFactoryHalHidl : public DevicesFactoryHalInterface
    friend class DevicesFactoryHalHybrid;

    sp<IDevicesFactory> mDevicesFactory;
    sp<IDevicesFactory> mDevicesFactoryMsd;

    static status_t nameFromHal(const char *name, IDevicesFactory::Device *device);