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

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

Merge "sound trigger service: remove bogus threasdpool init in HIDL wrapper"

parents 46ff4c92 3ede21c8
Loading
Loading
Loading
Loading
+0 −13
Original line number Original line Diff line number Diff line
@@ -28,14 +28,6 @@ using android::hardware::Return;
using android::hardware::ProcessState;
using android::hardware::ProcessState;
using android::hardware::audio::common::V2_0::AudioDevice;
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 */
/* static */
sp<SoundTriggerHalInterface> SoundTriggerHalInterface::connectModule(const char *moduleName)
sp<SoundTriggerHalInterface> SoundTriggerHalInterface::connectModule(const char *moduleName)
{
{
@@ -269,11 +261,6 @@ SoundTriggerHalHidl::SoundTriggerHalHidl(const char *moduleName)
{
{
}
}


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

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


        // RefBase
        virtual     void        onFirstRef();

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