summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordcd <dcd1182@gmail.com>2016-07-10 13:18:59 -0500
committerdcd <dcd1182@gmail.com>2016-07-14 13:10:40 -0500
commit20bb5b4400ae1051619593e322f8eee5297addf1 (patch)
tree5b442ba9895378de94a584752cbd2b26826d4821
parentc6f3e593ff40ebcde58e23658755afa548d917b5 (diff)
downloadhardware_qcom_audio-20bb5b4400ae1051619593e322f8eee5297addf1.tar.gz
hardware_qcom_audio-20bb5b4400ae1051619593e322f8eee5297addf1.tar.bz2
hardware_qcom_audio-20bb5b4400ae1051619593e322f8eee5297addf1.zip
audio: always send calibration
* fixes low volume on bullhead Change-Id: I278c0eda14a5c15ab6ad07051789e8d49c59c1ad
-rw-r--r--hal/audio_hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index ada5ecec..6363bd84 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -341,6 +341,8 @@ int enable_snd_device(struct audio_device *adev,
ALOGV("%s: snd_device(%d: %s) is already active",
__func__, snd_device, platform_get_snd_device_name(snd_device));
return 0;
+ } else {
+ platform_send_audio_calibration(adev->platform, snd_device);
}
if (audio_extn_spkr_prot_is_enabled())
@@ -370,7 +372,6 @@ int enable_snd_device(struct audio_device *adev,
/* due to the possibility of calibration overwrite between listen
and audio, notify sound trigger hal before audio calibration is sent */
ALOGD("%s: snd_device(%d: %s)", __func__, snd_device, dev_path);
- platform_send_audio_calibration(adev->platform, snd_device);
audio_route_apply_and_update_path(adev->audio_route, dev_path);
}