mirror of git://git.sysmocom.de/ofono
handsfree: Set in-band ringing before registering
Avoid an extra signal emission
This commit is contained in:
parent
e32346aa51
commit
9a53aca0ab
|
@ -52,11 +52,11 @@ static gboolean hfp_handsfree_register(gpointer user_data)
|
||||||
struct ofono_handsfree *hf = user_data;
|
struct ofono_handsfree *hf = user_data;
|
||||||
struct hf_data *hd = ofono_handsfree_get_data(hf);
|
struct hf_data *hd = ofono_handsfree_get_data(hf);
|
||||||
|
|
||||||
ofono_handsfree_register(hf);
|
|
||||||
|
|
||||||
if (hd->ag_features & HFP_AG_FEATURE_IN_BAND_RING_TONE)
|
if (hd->ag_features & HFP_AG_FEATURE_IN_BAND_RING_TONE)
|
||||||
ofono_handsfree_set_inband_ringing(hf, TRUE);
|
ofono_handsfree_set_inband_ringing(hf, TRUE);
|
||||||
|
|
||||||
|
ofono_handsfree_register(hf);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue