[Bugfix][API-1519] fix set_codec bad open/close param
Only Configure: No
Affected branch: LYNQ_PUBLIC
Affected module: ril
Is it affected on both ZXIC and MTK: only MTK
Self-test: No
Doc Update: No
Change-Id: I01d82ba96d2faaf2c4c08d774b113a9b9d924d50
diff --git a/common_src/framework/lynq-ril-service/src/cc.cpp b/common_src/framework/lynq-ril-service/src/cc.cpp
index a283bf9..953438c 100755
--- a/common_src/framework/lynq-ril-service/src/cc.cpp
+++ b/common_src/framework/lynq-ril-service/src/cc.cpp
@@ -1283,7 +1283,7 @@
//RLOGD("DemoAPP Call shell command (pactl set-card-profile 0 phonecall)");
//system("pactl set-card-profile 0 phonecall");
//RLOGD("DemoAPP Call shell command end");
- set_codec(LYNQ_CALL, CODEC_CLOSE); //hqing add for Geely demand on 11/07/2022, init cs call, open codec
+ set_codec(LYNQ_CALL, CODEC_OPEN); //hqing add for Geely demand on 11/07/2022, init cs call, open codec
if (get_audio_path() == 0) {
mixer_set(1);
speechStatus = NORMAL_SPEECH_ON;
@@ -1314,7 +1314,7 @@
inCallstatus = CALL_OFF;
resetMute();
unlock_rtp_audio_mtx();
- set_codec(LYNQ_CALL, CODEC_OPEN); //hqing add for Geely demand on 11/07/2022, after cs call, close codec for power Manager
+ set_codec(LYNQ_CALL, CODEC_CLOSE); //hqing add for Geely demand on 11/07/2022, after cs call, close codec for power Manager
RLOGD("[speech]: set off");
} else {
unlock_rtp_audio_mtx();