diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2011-10-12 14:35:26 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-10-13 13:01:14 -0500 |
commit | f05a78a450af23a598f90ac9c4895503853e85b5 (patch) | |
tree | 32f97e8781ba137e28fa2becc0b61667f81843d4 /drivers | |
parent | e9cee29cd4d32db34db2e55df53f6b98b4fc9b70 (diff) | |
download | ofono-f05a78a450af23a598f90ac9c4895503853e85b5.tar.bz2 |
hfpmodem: Set initial state for inband ringing
According to the HFP specification, inband ringing will be enabled by
default if the AG supports it. This setting could later be changed by
the unsolicited result code +BSIR.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hfpmodem/handsfree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hfpmodem/handsfree.c b/drivers/hfpmodem/handsfree.c index d3b5b44c..6eb3fd85 100644 --- a/drivers/hfpmodem/handsfree.c +++ b/drivers/hfpmodem/handsfree.c @@ -44,14 +44,19 @@ struct hf_data { GAtChat *chat; + unsigned int ag_features; }; static gboolean hfp_handsfree_register(gpointer user_data) { struct ofono_handsfree *hf = user_data; + struct hf_data *hd = ofono_handsfree_get_data(hf); ofono_handsfree_register(hf); + if (hd->ag_features & HFP_AG_FEATURE_IN_BAND_RING_TONE) + ofono_handsfree_set_inband_ringing(hf, TRUE); + return FALSE; } @@ -64,6 +69,7 @@ static int hfp_handsfree_probe(struct ofono_handsfree *hf, DBG(""); hd = g_new0(struct hf_data, 1); hd->chat = g_at_chat_clone(info->chat); + hd->ag_features = info->ag_features; ofono_handsfree_set_data(hf, hd); |