Promotion of av-userspace.lnx.1.0-00030.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
953010 I070dd5e7a1c6d2883ea611588737b1f5c577b275 voice_extn: remove redundant check of mode when stop voi
Change-Id: I83eb4a6d8a175f742af2aa189c037af4968f0789
CRs-Fixed: 953010
diff --git a/hal/msm8916/platform.c b/hal/msm8916/platform.c
index 4664724..a513048 100644
--- a/hal/msm8916/platform.c
+++ b/hal/msm8916/platform.c
@@ -1460,6 +1460,7 @@
}
if (send_codec_cal(acdb_loader_get_calibration, plat_data, fd) < 0)
ALOGE("%s: Could not send anc cal", __FUNCTION__);
+ close(fd);
}
const char * get_snd_card_name_for_acdb_loader(const char *snd_card_name) {
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 8ad9922..f243790 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1230,6 +1230,7 @@
}
send_codec_cal(acdb_loader_get_calibration, plat_data, fd);
+ close(fd);
}
static int platform_acdb_init(void *platform)