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

Commit 3ede21c8 authored by Eric Laurent's avatar Eric Laurent
Browse files

sound trigger service: remove bogus threasdpool init in HIDL wrapper

Test: make

Change-Id: I3f1f21c106c7b7acdb852917f0c3e557da8a0d78
parent d72ffc44
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -29,14 +29,6 @@ using android::hardware::Return;
using android::hardware::ProcessState;
using android::hardware::audio::common::V2_0::AudioDevice;

pthread_once_t SoundTriggerHalHidl::sOnceControl = PTHREAD_ONCE_INIT;

void SoundTriggerHalHidl::sOnceInit()
{
    ProcessState::self()->setThreadPoolMaxThreadCount(1);
    ProcessState::self()->startThreadPool();
}

/* static */
sp<SoundTriggerHalInterface> SoundTriggerHalInterface::connectModule(const char *moduleName)
{
@@ -270,11 +262,6 @@ SoundTriggerHalHidl::SoundTriggerHalHidl(const char *moduleName)
{
}

void SoundTriggerHalHidl::onFirstRef()
{
    pthread_once(&sOnceControl, &sOnceInit);
}

SoundTriggerHalHidl::~SoundTriggerHalHidl()
{
}
+0 −3
Original line number Diff line number Diff line
@@ -82,9 +82,6 @@ public:
         */
        virtual int stopAllRecognitions();

        // RefBase
        virtual     void        onFirstRef();

        // ISoundTriggerHwCallback
        virtual ::android::hardware::Return<void> recognitionCallback(
                const ISoundTriggerHwCallback::RecognitionEvent& event, CallbackCookie cookie);