diff options
author | Ethan Chen <intervigil@gmail.com> | 2015-03-27 19:35:25 -0700 |
---|---|---|
committer | Brint E. Kriebel <bekit@cyngn.com> | 2015-03-28 03:32:22 +0000 |
commit | 3cac825f4f6fdbd03ba4fb1fb87d0f4034dee4b6 (patch) | |
tree | f51c86795b29a9991132c818c280e01e82f3c27b | |
parent | 9a02eafc75ad6cff9a2846b60acfefc592061d6a (diff) | |
download | android_hardware_qcom_audio-stable/cm-12.0-caf-8916-YNG1T.tar.gz android_hardware_qcom_audio-stable/cm-12.0-caf-8916-YNG1T.tar.bz2 android_hardware_qcom_audio-stable/cm-12.0-caf-8916-YNG1T.zip |
hal: Correctly set backend to best available parametersstable/cm-12.0-caf-8916-YNG1TAstable/cm-12.0-caf-8916-YNG1T
* For the case where CALL/IN_COMMUNICATION, new_bit_width and
new_sample_rate were unconditionally reset to 0, resulting
in a sample rate/bit width change always occurring.
Don't do this for CALL/IN_COMMUNICATION as the original
logic intended.
Change-Id: Ib647cec084f4af9a044f90935dd57257bba0ec06
(cherry picked from commit cb739e9aa15cfae45d49fed57a7a5ed4cf779204)
-rw-r--r-- | hal/msm8916/platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c index 5b549923..7d147dba 100644 --- a/hal/msm8916/platform.c +++ b/hal/msm8916/platform.c @@ -2585,9 +2585,9 @@ bool platform_check_codec_backend_cfg(struct audio_device* adev, } } } + *new_bit_width = best_bw; + *new_sample_rate = best_sr; } - *new_bit_width = best_bw; - *new_sample_rate = best_sr; // Force routing if the expected bitwdith or samplerate // is not same as current backend comfiguration |