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

Commit a6316948 authored by Vlad Popa's avatar Vlad Popa
Browse files

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
parent e8b62d43
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ bool AudioFlinger::MelReporter::shouldComputeMelForDeviceType(audio_devices_t de
    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: