diff options
author | Shalini Manjunatha <shalma@codeaurora.org> | 2020-01-03 15:00:14 +0530 |
---|---|---|
committer | Shalini Manjunatha <shalma@codeaurora.org> | 2020-01-17 10:34:24 +0530 |
commit | 8a17fe3feb131b372ff5d01dd3abcda099f69b0a (patch) | |
tree | f7f74ea9551bf2bc3f23a4526b0038c2baa1c694 /hal | |
parent | e3d362ff6e0c6f298ae3d7ac01f5a690a407e09f (diff) | |
download | android_hardware_qcom_audio-8a17fe3feb131b372ff5d01dd3abcda099f69b0a.tar.gz android_hardware_qcom_audio-8a17fe3feb131b372ff5d01dd3abcda099f69b0a.tar.bz2 android_hardware_qcom_audio-8a17fe3feb131b372ff5d01dd3abcda099f69b0a.zip |
HAL: Modified condition to avoid audio Tx path for legacy targets
changed condition to make sure legacy targets still uses
compress-voip usecase for Tx path instead of unsupported
USECASE_AUDIO_RECORD_VOIP usecase
Change-Id: Ifc1c39693aa73c50d881ac149a348065739b1de5
Diffstat (limited to 'hal')
-rw-r--r-- | hal/audio_hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index dc1094b0..6a244fe4 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright (C) 2013 The Android Open Source Project @@ -8943,6 +8943,7 @@ static int adev_open_input_stream(struct audio_hw_device *dev, in->config.rate = config->sample_rate; in->af_period_multiplier = 1; } else if (in->source == AUDIO_SOURCE_VOICE_COMMUNICATION && + (!voice_extn_is_compress_voip_supported()) && in->flags & AUDIO_INPUT_FLAG_VOIP_TX && (config->sample_rate == 8000 || config->sample_rate == 16000 || |