commit | 98eb34bdd87dd837c64b963b7d926568436d6da5 | [log] [tgz] |
---|---|---|
author | Jaideep Sharma <quic_jaidshar@quicinc.com> | Tue Aug 22 09:43:06 2023 +0530 |
committer | Jaideep Sharma <quic_jaidshar@quicinc.com> | Tue Sep 05 06:30:07 2023 +0000 |
tree | 023f6a3277ab4ccfa36ac1c07c4fd1fbf82c0a29 | |
parent | 577aa3654eb2665dad2efa70c35ef92cd1420699 [diff] |
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. Change-Id: I0c20e1235a90b77c0d6ad8fba586cdf006f37224