Merge " HAL: Modified condition to avoid audio Tx path for legacy targets"
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index ebfcd52..f67f542 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -9615,6 +9615,7 @@
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 &&
(config->sample_rate == 8000 ||
config->sample_rate == 16000 ||