CSD: notify when RS2 momentary exposure is reached

RS2 is defined in IEC 62368-1 3rd edition as 100dBA. Added however the
possibility to further restrict this value as part of the momentary
exposure API.

Test: UT and manual tests
Bug: 256616352
Change-Id: I004a620e5e7915824d390f7ddc41c16f9675d45a
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index f35944b..acbbe48 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3405,14 +3405,11 @@
     return bytesWritten;
 }
 
-void AudioFlinger::PlaybackThread::startMelComputation(const sp<
-        audio_utils::MelProcessor::MelCallback>& callback)
+void AudioFlinger::PlaybackThread::startMelComputation(
+        const sp<audio_utils::MelProcessor>& processor)
 {
-    ALOGV("%s: creating new mel processor for thread %d", __func__, id());
-    mMelProcessor = sp<audio_utils::MelProcessor>::make(mSampleRate,
-                                                        mChannelCount,
-                                                        mFormat,
-                                                        callback);
+    ALOGV("%s: starting mel processor for thread %d", __func__, id());
+    mMelProcessor = processor;
 }
 
 void AudioFlinger::PlaybackThread::stopMelComputation() {