am ee72ef45: audio: changes ringtone volume when call is comming
* commit 'ee72ef4556336cde5d68a44bdbc479286134d1f0':
audio: changes ringtone volume when call is comming
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 46b8d9b..66a6da7 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1083,7 +1083,8 @@
speaker_volume_overrange);
mixer_ctl_set_value(adev->mixer_ctls.tones_dl2_volume, 0,
speaker_volume_overrange + dl2_volume_correction);
- } else if (adev->mode == AUDIO_MODE_IN_COMMUNICATION) {
+ } else if ((adev->mode == AUDIO_MODE_IN_COMMUNICATION) ||
+ (adev->mode == AUDIO_MODE_RINGTONE)) {
mixer_ctl_set_value(adev->mixer_ctls.tones_dl1_volume, 0,
MIXER_ABE_GAIN_0DB);
mixer_ctl_set_value(adev->mixer_ctls.tones_dl2_volume, 0,