commit | 3839bc0122c23a33d52ff0247bfa70016d9769be | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Jul 10 18:33:34 2018 -0700 |
committer | Eric Laurent <elaurent@google.com> | Tue Jul 10 18:38:47 2018 -0700 |
tree | 41c27ee5f6a549144b266b8db56c4c63c38c7ef8 | |
parent | 84c05cdca73f0378c92ed06147463c2962b5c1b6 [diff] |
audio policy: rescale volume index in setStreamVolumeIndex Fix a problem in setStreamVolumeIndex() introduced by commit dcd4ab18 where stream volumes where applied systematically when in call for all streams regardless of streamsMatchForvolume(). Also add index rescaling as in theory two streams matching for volume do not have necessarily the same index range. Bug: 111194621 Test: repro steps in bug. Change-Id: I713b35921d4df19b521fc98281636a9c17483998