diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2014-06-30 13:56:18 -0700 |
---|---|---|
committer | Mingming Yin <mingming@codeaurora.org> | 2014-07-31 08:17:03 -0700 |
commit | b51ceb1e78981cc8aa6f82a8964c4c4dd7d5c7fc (patch) | |
tree | 03aa39b13a0c6f8f8cffe917b97eddd7f0387db8 /hal/voice_extn | |
parent | 26f78bc71dfd37df8a66770491b1c7e2578c19cb (diff) | |
download | android_hardware_qcom_audio-b51ceb1e78981cc8aa6f82a8964c4c4dd7d5c7fc.tar.gz android_hardware_qcom_audio-b51ceb1e78981cc8aa6f82a8964c4c4dd7d5c7fc.tar.bz2 android_hardware_qcom_audio-b51ceb1e78981cc8aa6f82a8964c4c4dd7d5c7fc.zip |
hal: miscellaneous fixes
Fixes for the following issues reported by KW
21725, 21726, 21727, 21737, 21738, 21739, 21740, 21750,
21751, 21752, 25317, 30602, 32620, 36778, 41817, 41819,
50942, 54468, 54470, 54479, 55569, 54481, 55570, 55571,
58485, 85112, 85122, 85123
Change-Id: I9abef07db7ccdc19789a201eb268a97e1b360cad
Diffstat (limited to 'hal/voice_extn')
-rw-r--r-- | hal/voice_extn/compress_voip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hal/voice_extn/compress_voip.c b/hal/voice_extn/compress_voip.c index deb3172c..45e0703e 100644 --- a/hal/voice_extn/compress_voip.c +++ b/hal/voice_extn/compress_voip.c @@ -335,6 +335,12 @@ static int voip_start_call(struct audio_device *adev, if (uc_info == NULL) { ALOGV("%s: voip usecase is added to the list", __func__); uc_info = (struct audio_usecase *)calloc(1, sizeof(struct audio_usecase)); + + if (!uc_info) { + ALOGE("failed to allocate voip usecase mem"); + return -ENOMEM; + } + uc_info->id = USECASE_COMPRESS_VOIP_CALL; uc_info->type = VOIP_CALL; if (voip_data.out_stream) |