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

Skip to content
Commit fe0fb8b0 authored by Revathi Uddaraju's avatar Revathi Uddaraju Committed by Eric Laurent
Browse files

audiopolicy: fix wrong volume db value for voice call stream

When apply mute for voice stream, vol index 0 is set, while
voice stream minimum vol index is 1. This will cause negative
vol index is calculated and maximum db value is set.

Ensure vol index is valide to calculate.

Also add range check in rescaleVolumeIndex().

Bug: 123063166
Test: make
CRs-Fixed: 2056642
Change-Id: I89ee64d0914a971194a72b4de483d88b5029d80e
parent d55083d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment