Revert "audioflinger: implement silenced capture for mmap"
This reverts commit a2f478ca0b2bda8db9b321f0cfa9e9d3cf6130f9.
Bug: 78118584
Change-Id: Ie0da3dea445f2474c7a889c5f9919305c1c96d40
diff --git a/services/oboeservice/AAudioServiceEndpointMMAP.cpp b/services/oboeservice/AAudioServiceEndpointMMAP.cpp
index 713ce60..52990da 100644
--- a/services/oboeservice/AAudioServiceEndpointMMAP.cpp
+++ b/services/oboeservice/AAudioServiceEndpointMMAP.cpp
@@ -343,9 +343,8 @@
}
-void AAudioServiceEndpointMMAP::onTearDown(audio_port_handle_t handle __unused) {
+void AAudioServiceEndpointMMAP::onTearDown() {
ALOGD("%s(%p) called", __func__, this);
- //TODO: disconnect only stream corresponding to handle received
disconnectRegisteredStreams();
};
diff --git a/services/oboeservice/AAudioServiceEndpointMMAP.h b/services/oboeservice/AAudioServiceEndpointMMAP.h
index c4c943d..16b6269 100644
--- a/services/oboeservice/AAudioServiceEndpointMMAP.h
+++ b/services/oboeservice/AAudioServiceEndpointMMAP.h
@@ -68,7 +68,7 @@
aaudio_result_t getTimestamp(int64_t *positionFrames, int64_t *timeNanos) override;
// -------------- Callback functions for MmapStreamCallback ---------------------
- void onTearDown(audio_port_handle_t handle) override;
+ void onTearDown() override;
void onVolumeChanged(audio_channel_mask_t channels,
android::Vector<float> values) override;