diff options
author | UK KIM <w0806.kim@samsung.com> | 2011-10-26 20:56:21 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-26 20:56:21 +0000 |
commit | 577f2b414fcd7f60ba5ebcbda0f1f96529bd555d (patch) | |
tree | 1ab0757a776c963346a88f5dc0255e4ce7dc2e47 /audio/audio_hw.c | |
parent | 66f9671352cc2a26c5ed7ccfde05a28d5a4fff3b (diff) | |
parent | 361998818f2d0f5008c24eeeb1c4ad013a01a862 (diff) | |
download | device_samsung_tuna-577f2b414fcd7f60ba5ebcbda0f1f96529bd555d.tar.gz device_samsung_tuna-577f2b414fcd7f60ba5ebcbda0f1f96529bd555d.tar.bz2 device_samsung_tuna-577f2b414fcd7f60ba5ebcbda0f1f96529bd555d.zip |
am 56e8b292: am e6f399a5: audio: decrease headset gain by 14dB for ringtone mode
* commit '361998818f2d0f5008c24eeeb1c4ad013a01a862':
audio: decrease headset gain by 14dB for ringtone mode
Diffstat (limited to 'audio/audio_hw.c')
-rwxr-xr-x | audio/audio_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 97cdf4d..079acd7 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -206,6 +206,7 @@ #define VOIP_EARPIECE_VOLUME_MAGURO 6 #define HEADPHONE_VOLUME_TTY -2 +#define RINGTONE_HEADSET_VOLUME_OFFSET -14 /* product-specific defines */ #define PRODUCT_DEVICE_PROPERTY "ro.product.device" @@ -817,6 +818,8 @@ static void set_output_volumes(struct tuna_audio_device *adev, bool tty_volume) } if (tty_volume) headset_volume = HEADPHONE_VOLUME_TTY; + else if (adev->mode == AUDIO_MODE_RINGTONE) + headset_volume += RINGTONE_HEADSET_VOLUME_OFFSET; /* If we have run out of range in the codec (analog) speaker volume, we have to apply the remainder of the dB increase to the DL2 |