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

Commit 3ba2cb78 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix clang-tidy warnings in soundtrigger."

parents f53c1d18 85f8a73d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ status_t SoundTriggerHwService::setCaptureState(bool active)
}


void SoundTriggerHwService::detachModule(sp<Module> module)
void SoundTriggerHwService::detachModule(const sp<Module>& module)
{
    ALOGV("detachModule");
    AutoMutex lock(mServiceLock);
+3 −3
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public:

       sound_trigger_hw_device *hwDevice() const { return mHwDevice; }
       struct sound_trigger_module_descriptor descriptor() { return mDescriptor; }
       void setClient(sp<ISoundTriggerClient> client) { mClient = client; }
       void setClient(const sp<ISoundTriggerClient>& client) { mClient = client; }
       void clearClient() { mClient.clear(); }
       sp<ISoundTriggerClient> client() const { return mClient; }
       wp<SoundTriggerHwService> service() const { return mService; }
@@ -156,7 +156,7 @@ public:
    class CallbackThread : public Thread {
    public:

        CallbackThread(const wp<SoundTriggerHwService>& service);
        explicit CallbackThread(const wp<SoundTriggerHwService>& service);

        virtual             ~CallbackThread();

@@ -176,7 +176,7 @@ public:
        Vector< sp<CallbackEvent> > mEventQueue;
    };

           void detachModule(sp<Module> module);
           void detachModule(const sp<Module>& module);

    static void recognitionCallback(struct sound_trigger_recognition_event *event, void *cookie);
           sp<IMemory> prepareRecognitionEvent_l(struct sound_trigger_recognition_event *event);