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

Skip to content
Commit 490e1ab6 authored by Jaideep Sharma's avatar Jaideep Sharma Committed by Cherrypicker Worker
Browse files

audio: change volume only if effect updates the volume

Incase of offload effects, setting unity gain leads to
full volume on enabling effects, as unity gain (volume
1.0f, 1.0f is set to audiohal).

Don't set volume always to unity gain, instead
check if effect interface has updated the volume
then only, change the value.

Bug: 296954124
Test: Start a offload effect and check volume.
(cherry picked from https://android-review.googlesource.com/q/commit:98eb34bdd87dd837c64b963b7d926568436d6da5)
Merged-In: I0c20e1235a90b77c0d6ad8fba586cdf006f37224
Change-Id: I0c20e1235a90b77c0d6ad8fba586cdf006f37224
parent 39184c44
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