Skip to content

Commit

Permalink
New audio updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Kra1o5 authored and Daz Jones committed Jun 30, 2013
1 parent f30ff73 commit 7f913ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions audio/AudioHardware.cpp
Expand Up @@ -1151,13 +1151,13 @@ status_t AudioHardware::setVoiceVolume(float v)
LOGW("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);
LOGD("setVoiceVolume(%f)\n", v);
LOGI("Setting in-call volume to %d (available range is 1 to 6)\n", vol);
LOGI("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)))
{
Expand Down
8 changes: 8 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Expand Up @@ -205,6 +205,14 @@
Bluetooth Module -->
<bool name="config_bluetooth_adapter_quick_switch">false</bool>

<!-- Set additional audio parameters for incall audio
Usage: parameter=onstring=offstring
Examples: <item>realcall=on=off</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.
This integer should equal the sum of the corresponding value for each
of the following keys present:
Expand Down

0 comments on commit 7f913ed

Please sign in to comment.