summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index db30fbf..2a58f4f 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