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

Commit 1d4dd42d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CSD: Fix bt categorization for HAL path" into main

parents b40472ac 13aa5a68
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -231,6 +231,13 @@ audio_port_handle_t SoundDoseManager::getIdForAudioDevice(const AudioDevice& aud
        ALOGI("%s: could not find port id for device %s", __func__, adt.toString().c_str());
        ALOGI("%s: could not find port id for device %s", __func__, adt.toString().c_str());
        return AUDIO_PORT_HANDLE_NONE;
        return AUDIO_PORT_HANDLE_NONE;
    }
    }
    const auto btDeviceIt = mBluetoothDevicesWithCsd.find(std::make_pair(address, type));
    if (btDeviceIt != mBluetoothDevicesWithCsd.end()) {
        if (!btDeviceIt->second) {
            ALOGI("%s: bt device %s does not support sound dose", __func__, adt.toString().c_str());
            return AUDIO_PORT_HANDLE_NONE;
        }
    }
    return deviceIt->second;
    return deviceIt->second;
}
}