commit | d1ad45328c45d4561b3e274e356fac1888914e41 | [log] [tgz] |
---|---|---|
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | Thu Mar 27 13:35:35 2014 +0000 |
committer | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | Mon May 05 11:15:00 2014 +0100 |
tree | adad60778fda9a939c94cf2ecbb579ddb00e75fb | |
parent | 304eb0a8e5a0d76e7a069f9b87cb3b8499b1f07c [diff] |
audio_hw: Correct scaling of volume setting Android passes volume as a float multiplier value that has already been converted from logarithmic decibels into a linear sample multiplier. ALSA volume controls use a logarithmic sequence so we must convert the values we get from Android back into a decibel scale. Change-Id: I5f5d95cb923fa0a3b4bbb6acf1de6316e571904b Signed-off-by: lihui<hui.li@capelabs.com> Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>