diff options
author | Vidyakumar Athota <vathota@codeaurora.org> | 2016-01-04 16:47:34 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-04-20 09:25:29 -0700 |
commit | f4ee683ba2c502664fb052605fdd25b377a69798 (patch) | |
tree | f93b319afbb9742d2f53b099f113119e295b878e | |
parent | 45ed070d0ac61d196bfcbd0114220db3a447cfa7 (diff) | |
download | hardware_qcom_audio-f4ee683ba2c502664fb052605fdd25b377a69798.tar.gz hardware_qcom_audio-f4ee683ba2c502664fb052605fdd25b377a69798.tar.bz2 hardware_qcom_audio-f4ee683ba2c502664fb052605fdd25b377a69798.zip |
hal: reset backend configuration before speaker calibration
For speaker thermal calibration, backend needs to be configured
with default sample rate(48kHz). Currently backend configuration
does not reset to default value after playback finishes, results
in failure of speaker calibration. Fix this issue by resetting the
backend configuration to default primary output value before
speaker thermal calibration.
Change-Id: Id231faf7249506ef668a943b6b12c2738b504a50
-rw-r--r-- | hal/audio_extn/spkr_protection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hal/audio_extn/spkr_protection.c b/hal/audio_extn/spkr_protection.c index 4d8b2337..3f9a654b 100644 --- a/hal/audio_extn/spkr_protection.c +++ b/hal/audio_extn/spkr_protection.c @@ -338,6 +338,7 @@ static int spkr_calibrate(int t0) uc_info_rx->out_snd_device = SND_DEVICE_OUT_SPEAKER_PROTECTED; disable_rx = true; list_add_tail(&adev->usecase_list, &uc_info_rx->list); + platform_check_and_set_codec_backend_cfg(adev, uc_info_rx); enable_snd_device(adev, SND_DEVICE_OUT_SPEAKER_PROTECTED); enable_audio_route(adev, uc_info_rx); |