[Gta04-owner] [PATCH v2 5/7] hayes-ril: add more pcm commands

Andreas Kemnade andreas at kemnade.info
Sun Apr 23 13:25:35 CEST 2017


PCM seems not to work without these commands, we
have them also in others apps. Maybe newer
modem firmware is more picky?

Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
 hayes-ril/device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hayes-ril/device.c b/hayes-ril/device.c
index 1189d64..4064978 100644
--- a/hayes-ril/device.c
+++ b/hayes-ril/device.c
@@ -682,6 +682,10 @@ int ril_device_at_setup(struct ril_device *ril_device)
 
 	// Enable PCM
 	at_send_string_locked("AT_OPCMENABLE=1"); //TODO: GTA04/GTM601 only
+	at_send_string_locked("AT_ODO=0"); //TODO: GTA04/GTM601 only
+	at_send_string_locked("AT_OPCMPROF=0"); //TODO: GTA04/GTM601 only
+
+	// Enable PCM  Modem->Sound output (needed for newer firmwares)
 	at_send_string_locked("AT+CLVL=7"); //TODO: GTA04/GTM601 only
 
 	//ril_device_sim_ready_setup(); //called after +CREG state is 1 or 5
-- 
2.1.4



More information about the Gta04-owner mailing list