Navigation Menu

Skip to content

Commit

Permalink
Audio: Fix log and comments about our SetVoiceVolume change
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagulhas committed Dec 20, 2012
1 parent 3b1cab1 commit f2b149a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio/AudioHardware.cpp
Expand Up @@ -1576,12 +1576,12 @@ status_t AudioHardware::setVoiceVolume(float v)
}
// Huawei sets volume range lower, change it to 0.2
// Added 0.2 to current volume, as in voice call Mute cannot be set as minimum volume(0.00)
// setting Rx volume level as 2 for minimum and 7 as max level.
// setting Rx volume level as 1 for minimum and 6 as max level.
v = 0.2 + v;

int vol = lrint(v * 5.0);
ALOGD("setVoiceVolume(%f)\n", v);
ALOGI("Setting in-call volume to %d (available range is 2 to 7)\n", vol);
ALOGI("Setting in-call volume to %d (available range is 1 to 6)\n", vol);

if ((mCurSndDevice != -1) && ((mCurSndDevice == SND_DEVICE_TTY_HEADSET) || (mCurSndDevice == SND_DEVICE_TTY_VCO)))
{
Expand Down

0 comments on commit f2b149a

Please sign in to comment.