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

H. Nikolaus Schaller hns at goldelico.com
Sun Apr 23 10:24:59 CEST 2017


> Am 23.04.2017 um 09:36 schrieb Andreas Kemnade <andreas at kemnade.info>:
> 
> PCM seems not to work without these commands, we
> have them also in others apps. Maybe newer
> modem firmware is more picky?

Most likely.
It should also not harm the GTA04A3/A4 modem variants.

> 
> 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
> 
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner



More information about the Gta04-owner mailing list