[Bugfix][API-717]in voice call, set no rtp mode, after 20s, call dropped
Change-Id: Iefb863d41aba584b8d6e789c4e9b5f20a7b2cd58
diff --git a/lib/liblynq-call/lynq_call_rtp.cpp b/lib/liblynq-call/lynq_call_rtp.cpp
index f217c25..e22b016 100755
--- a/lib/liblynq-call/lynq_call_rtp.cpp
+++ b/lib/liblynq-call/lynq_call_rtp.cpp
@@ -84,9 +84,7 @@
system(cmd);
}
else
- {
- sprintf(cmd, "amixer -D mtk_phonecall cset name=\"Speech_on\" %d", 1);
- system(cmd);
+ {
sprintf(cmd, "amixer -D mtk_phonecall cset name=\"M2M_Speech_on\" %d", 0);
system(cmd);
sprintf(cmd, "amixer -c0 cset name=\"PCM_2_PB_CH1 DL2_CH1\" %d", 0);
@@ -97,6 +95,8 @@
system(cmd);
sprintf(cmd, "amixer -c0 cset name=\"UL2_CH2 PCM_2_CAP_CH1\" %d", 0);
system(cmd);
+ sprintf(cmd, "amixer -D mtk_phonecall cset name=\"Speech_on\" %d", 1);
+ system(cmd);
}
}