mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
audio: Initialize processstate with vndbinder
Initialize processtate with vndbinder to allow vendor components to talk via vndbinder Test: re-launch android.hardware.audio@2.0 service Change-Id: I9fafff157c5e497a8125b13741b56e0852534ffa
This commit is contained in:
committed by
Mikhail Naganov
parent
85c3cf436b
commit
a57f41d58c
@@ -31,6 +31,7 @@ LOCAL_SRC_FILES := \
|
||||
LOCAL_CFLAGS := -Wall -Werror
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libbinder \
|
||||
libhidlbase \
|
||||
libhidltransport \
|
||||
liblog \
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <android/hardware/audio/effect/2.0/IEffectsFactory.h>
|
||||
#include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h>
|
||||
#include <android/hardware/soundtrigger/2.1/ISoundTriggerHw.h>
|
||||
#include <binder/ProcessState.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
#include <hidl/LegacySupport.h>
|
||||
|
||||
@@ -36,6 +37,9 @@ using android::hardware::registerPassthroughServiceImplementation;
|
||||
using android::OK;
|
||||
|
||||
int main(int /* argc */, char* /* argv */ []) {
|
||||
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
// start a threadpool for vndbinder interactions
|
||||
android::ProcessState::self()->startThreadPool();
|
||||
configureRpcThreadpool(16, true /*callerWillJoin*/);
|
||||
android::status_t status;
|
||||
status = registerPassthroughServiceImplementation<IDevicesFactory>();
|
||||
|
||||
Reference in New Issue
Block a user