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>
3 files changed