Merge "AHAL: raise the priority for configuration of voip usecase"

This commit is contained in:
qctecmdr 2021-01-21 09:50:37 -08:00 committed by Gerrit - the friendly Code Review server
commit 24996bc2e3
1 changed files with 4 additions and 4 deletions

View File

@ -9613,10 +9613,6 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
in->config = pcm_config_afe_proxy_record;
in->config.rate = config->sample_rate;
in->af_period_multiplier = 1;
} else if (in->realtime) {
in->config = pcm_config_audio_capture_rt;
in->config.format = pcm_format_from_audio_format(config->format);
in->af_period_multiplier = af_period_multiplier;
} else if (in->source == AUDIO_SOURCE_VOICE_COMMUNICATION &&
(!voice_extn_is_compress_voip_supported()) &&
in->flags & AUDIO_INPUT_FLAG_VOIP_TX &&
@ -9636,6 +9632,10 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
in->config.period_count = VOIP_CAPTURE_PERIOD_COUNT;
in->config.rate = config->sample_rate;
in->af_period_multiplier = 1;
} else if (in->realtime) {
in->config = pcm_config_audio_capture_rt;
in->config.format = pcm_format_from_audio_format(config->format);
in->af_period_multiplier = af_period_multiplier;
} else {
int ret_val;
pthread_mutex_lock(&adev->lock);