CSD: Remove A2DP devices for CSD calculation
Currently there is no good way to identify whether an a2dp device is a
bluetooth headphone for which the sound dose calculation can be applied
or just a bluetooth speaker (e.g.: car kit). Disabling the CSD
calculation for a2dp for now until we have a good solution for this use
case.
Test: dumpsys audio, audio_flinger
Bug: 276660720
Change-Id: I762c8f94ea6557a2aef2945a7ef1f8ac685f4577
diff --git a/services/audioflinger/MelReporter.cpp b/services/audioflinger/MelReporter.cpp
index 3d5aae2..496aedc 100644
--- a/services/audioflinger/MelReporter.cpp
+++ b/services/audioflinger/MelReporter.cpp
@@ -92,7 +92,8 @@
switch (device) {
case AUDIO_DEVICE_OUT_WIRED_HEADSET:
case AUDIO_DEVICE_OUT_WIRED_HEADPHONE:
- case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP:
+ // TODO(b/278265907): enable A2DP when we can distinguish A2DP headsets
+ // case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP:
case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES:
case AUDIO_DEVICE_OUT_HEARING_AID:
case AUDIO_DEVICE_OUT_USB_HEADSET: