hal: add support for all_call_states key
Add support for all_call_states which can be queried by
applications to know call states.
Change-Id: I5ba66186e9d9f6d5769a814f4c1e0627c6f6dd74
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index fefbfa4..98e1912 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1992,7 +1992,7 @@
{
struct audio_device *adev = (struct audio_device *)dev;
struct stream_out *out;
- int i, ret;
+ int i, ret = 0;
ALOGV("%s: enter: sample_rate(%d) channel_mask(%#x) devices(%#x) flags(%#x)",
__func__, config->sample_rate, config->channel_mask, devices, flags);
@@ -2316,7 +2316,7 @@
pthread_mutex_lock(&adev->lock);
audio_extn_get_parameters(adev, query, reply);
- voice_extn_get_parameters(adev, query, reply);
+ voice_get_parameters(adev, query, reply);
platform_get_parameters(adev->platform, query, reply);
str = str_parms_to_str(reply);
str_parms_destroy(query);