Loading services/audioflinger/sounddose/SoundDoseManager.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading Loading
services/audioflinger/sounddose/SoundDoseManager.cpp +7 −0 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading