soundd: increase upper bound for volume level (#26792)

Update sound.cc
old-commit-hash: 0c1fbe22b4
taco
Shane Smiskol 2 years ago committed by GitHub
parent 31d14da03e
commit 0026b3b4e6
  1. 2
      selfdrive/ui/soundd/sound.cc

@ -48,7 +48,7 @@ void Sound::update() {
// scale volume using ambient noise level
if (sm.updated("microphone")) {
float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSoundPressureWeightedDb(), 30.f, 54.f, 0.f, 1.f);
float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSoundPressureWeightedDb(), 30.f, 56.f, 0.f, 1.f);
volume = QAudio::convertVolume(volume, QAudio::LogarithmicVolumeScale, QAudio::LinearVolumeScale);
Hardware::set_volume(volume);
}

Loading…
Cancel
Save