From: Denis Kenzior Date: Tue, 1 Dec 2009 18:38:14 +0000 (-0600) Subject: Fix: Force calypso to return to command mode ASAP X-Git-Tag: 0.12~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5149839818851d70bdf888c8cd0a37ce255ba41;p=platform%2Fupstream%2Fofono.git Fix: Force calypso to return to command mode ASAP Calypso firmware is just bizarre. It seems that if anything is sent before CPI=3 to the DLC handling voice commands, the ATD will not return to command mode immediately, but instead wait until connected / failed condition occurs. If CPI=3 is sent first, then calypso will go to command mode immediately after ATD is issued and report CPI indications as usual. --- diff --git a/plugins/calypso.c b/plugins/calypso.c index 778e6b8..c5403de 100644 --- a/plugins/calypso.c +++ b/plugins/calypso.c @@ -184,7 +184,7 @@ static void setup_modem(struct ofono_modem *modem) NULL, NULL, NULL); /* audio side tone: set to minimum */ - g_at_chat_send(data->dlcs[VOICE_DLC], "AT@ST=\"-26\"", NULL, + g_at_chat_send(data->dlcs[SETUP_DLC], "AT@ST=\"-26\"", NULL, NULL, NULL, NULL); /* Disable deep sleep */ @@ -452,7 +452,7 @@ static void calypso_post_sim(struct ofono_modem *modem) data->dlcs[NETREG_DLC]); ofono_call_meter_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]); ofono_call_barring_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]); - ofono_ssn_create(modem, 0, "atmodem", data->dlcs[VOICE_DLC]); + ofono_ssn_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]); ofono_call_volume_create(modem, 0, "atmodem", data->dlcs[AUX_DLC]); mw = ofono_message_waiting_create(modem);