Loading audio/common/all-versions/default/service/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -31,12 +31,14 @@ LOCAL_SRC_FILES := \ LOCAL_CFLAGS := -Wall -Werror LOCAL_SHARED_LIBRARIES := \ libcutils \ libbinder \ libhidlbase \ libhidltransport \ liblog \ libutils \ libhardware \ libhwbinder \ android.hardware.audio@2.0 \ android.hardware.audio@4.0 \ android.hardware.audio.common@2.0 \ Loading audio/common/all-versions/default/service/service.cpp +12 −2 Original line number Diff line number Diff line Loading @@ -24,16 +24,26 @@ #include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h> #include <android/hardware/soundtrigger/2.1/ISoundTriggerHw.h> #include <binder/ProcessState.h> #include <cutils/properties.h> #include <hidl/HidlTransportSupport.h> #include <hidl/LegacySupport.h> #include <hwbinder/ProcessState.h> using namespace android::hardware; using android::OK; int main(int /* argc */, char* /* argv */ []) { android::ProcessState::initWithDriver("/dev/vndbinder"); ::android::ProcessState::initWithDriver("/dev/vndbinder"); // start a threadpool for vndbinder interactions android::ProcessState::self()->startThreadPool(); ::android::ProcessState::self()->startThreadPool(); const int32_t defaultValue = -1; int32_t value = property_get_int32("persist.vendor.audio.service.hwbinder.size_kbyte", defaultValue); if (value != defaultValue) { ALOGD("Configuring hwbinder with mmap size %d KBytes", value); ProcessState::initWithMmapSize(static_cast<size_t>(value) * 1024); } configureRpcThreadpool(16, true /*callerWillJoin*/); bool fail = registerPassthroughServiceImplementation<audio::V4_0::IDevicesFactory>() != OK && Loading Loading
audio/common/all-versions/default/service/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -31,12 +31,14 @@ LOCAL_SRC_FILES := \ LOCAL_CFLAGS := -Wall -Werror LOCAL_SHARED_LIBRARIES := \ libcutils \ libbinder \ libhidlbase \ libhidltransport \ liblog \ libutils \ libhardware \ libhwbinder \ android.hardware.audio@2.0 \ android.hardware.audio@4.0 \ android.hardware.audio.common@2.0 \ Loading
audio/common/all-versions/default/service/service.cpp +12 −2 Original line number Diff line number Diff line Loading @@ -24,16 +24,26 @@ #include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h> #include <android/hardware/soundtrigger/2.1/ISoundTriggerHw.h> #include <binder/ProcessState.h> #include <cutils/properties.h> #include <hidl/HidlTransportSupport.h> #include <hidl/LegacySupport.h> #include <hwbinder/ProcessState.h> using namespace android::hardware; using android::OK; int main(int /* argc */, char* /* argv */ []) { android::ProcessState::initWithDriver("/dev/vndbinder"); ::android::ProcessState::initWithDriver("/dev/vndbinder"); // start a threadpool for vndbinder interactions android::ProcessState::self()->startThreadPool(); ::android::ProcessState::self()->startThreadPool(); const int32_t defaultValue = -1; int32_t value = property_get_int32("persist.vendor.audio.service.hwbinder.size_kbyte", defaultValue); if (value != defaultValue) { ALOGD("Configuring hwbinder with mmap size %d KBytes", value); ProcessState::initWithMmapSize(static_cast<size_t>(value) * 1024); } configureRpcThreadpool(16, true /*callerWillJoin*/); bool fail = registerPassthroughServiceImplementation<audio::V4_0::IDevicesFactory>() != OK && Loading