[Feature][ZXW-130]merge P50U02 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/ap/lib/libvoice/alsa_call.c b/ap/lib/libvoice/alsa_call.c
index 72f82ce..37a4820 100755
--- a/ap/lib/libvoice/alsa_call.c
+++ b/ap/lib/libvoice/alsa_call.c
@@ -123,8 +123,10 @@
}
/* open mixer dev for codec control */
- if(!(voice_mixer = mixer_open(0)))
+ if(!(voice_mixer = mixer_open(0))) {
printf("mixer open fail, file(%s), line(%d)\n", __FILE__, __LINE__);
+ return -2;
+ }
if(T_OUTPUT_SPEAKER == current_chanl) {
@@ -155,6 +157,7 @@
else
{
printf("alsa_voice_open: chanl not support fail!\n");
+ mixer_close(voice_mixer);
return -2;
}