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

Raise soundd upper limit
old-commit-hash: 0fd8e6f491
beeps
Shane Smiskol 3 years ago committed by GitHub
parent 3309d1a218
commit 6a183d2bb3
  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, 56.f, 0.f, 1.f);
float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSoundPressureWeightedDb(), 30.f, 60.f, 0.f, 1.f);
volume = QAudio::convertVolume(volume, QAudio::LogarithmicVolumeScale, QAudio::LinearVolumeScale);
Hardware::set_volume(volume);
}

Loading…
Cancel
Save