hal: Fix initial audio loss in voice calls
Remove redundant CSD client API call which is taking more than
600msec due to socket realted failures. The csd_get_sample_rate
API is only meant for I2S based external modem.
Bug: 16550747
Change-Id: I696846188b0b3815efdb7bc0905ac68c5195899b
diff --git a/hal/voice.c b/hal/voice.c
index ecc607d..278f0fb 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -102,7 +102,6 @@
int i, ret = 0;
struct audio_usecase *uc_info;
int pcm_dev_rx_id, pcm_dev_tx_id;
- uint32_t sample_rate = 8000;
struct voice_session *session = NULL;
struct pcm_config voice_config = pcm_config_voice_call;
@@ -130,13 +129,6 @@
ret = -EIO;
goto error_start_voice;
}
- ret = platform_get_sample_rate(adev->platform, &sample_rate);
- if (ret < 0) {
- ALOGE("platform_get_sample_rate error %d\n", ret);
- } else {
- voice_config.rate = sample_rate;
- }
- ALOGD("voice_config.rate %d\n", voice_config.rate);
ALOGV("%s: Opening PCM playback device card_id(%d) device_id(%d)",
__func__, adev->snd_card, pcm_dev_rx_id);