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

Commit e2afa1eb authored by Eric Laurent's avatar Eric Laurent
Browse files

audioserver: enable HIDL callbacks

Start hwbinder threadpool explicitly when starting services
for HIDL HALs using callbacks.
To be reverted when bug 31748996 is fixed.

Bug: 33700240

Test: check callbacks with broadcast radio HAL.

Change-Id: I504e97b6be4f95317ec04cc18df6ae545e74475d
parent e2bc75d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,7 +14,8 @@ LOCAL_SHARED_LIBRARIES := \
	libmedialogservice \
	libradioservice \
	libsoundtriggerservice \
	libutils
	libutils \
	libhwbinder

LOCAL_C_INCLUDES := \
	frameworks/av/services/audioflinger \
+8 −0
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@
#include <binder/IServiceManager.h>
#include <utils/Log.h>

// FIXME: remove when BUG 31748996 is fixed
#include <hwbinder/IPCThreadState.h>
#include <hwbinder/ProcessState.h>

// from LOCAL_C_INCLUDES
#include "AudioFlinger.h"
#include "AudioPolicyService.h"
@@ -130,6 +134,10 @@ int main(int argc __unused, char **argv)
        RadioService::instantiate();
        SoundTriggerHwService::instantiate();
        ProcessState::self()->startThreadPool();

// FIXME: remove when BUG 31748996 is fixed
        android::hardware::ProcessState::self()->startThreadPool();

        IPCThreadState::self()->joinThreadPool();
    }
}