Skip to content
Permalink
Browse files

New audio updates

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml
  • Loading branch information...
Kra1o5 authored and Dazzozo committed Jun 30, 2013
1 parent da28597 commit 7a38c1b05a0a71e7e5476aa98babd8c49048c193
Showing with 5 additions and 4 deletions.
  1. +4 −4 audio/AudioHardware.cpp
  2. +1 −0 overlay/frameworks/base/core/res/res/values/config.xml
@@ -1598,13 +1598,13 @@ status_t AudioHardware::setVoiceVolume(float v)
ALOGW("setVoiceVolume(%f) over 1.0, assuming 1.0\n", v);
v = 1.0;
}
// Added 0.2 to current volume, as in voice call Mute cannot be set as minimum volume(0.00)
// setting Rx volume level as 1 for minimum and 6 as max level.
v = 0.2 + v;
// Added 0.1 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.
v = 0.1 + v;

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

if ((mCurSndDevice != -1) && ((mCurSndDevice == SND_DEVICE_TTY_HEADSET) || (mCurSndDevice == SND_DEVICE_TTY_VCO)))
{
@@ -197,6 +197,7 @@
<item>dualmic_enabled=true=false</item>
<item>mic_boost=yes=no</item> -->
<string-array name="config_telephony_set_audioparameters" translatable="false">
<item>dualmic_enabled=true=false</item>
</string-array>

<!-- Hardware 'face' keys present on the device, stored as a bit field.

0 comments on commit 7a38c1b

Please sign in to comment.
You can’t perform that action at this time.