From dad5089b36ed2ce170fb0bc4328cec60acd0f2bc Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 3 Jun 2019 15:41:37 -0700 Subject: binding: telephony: add support for detect hw modems Detect hardware modems for voicecalls on binding startup. This is done by checking for "hardware" type only on startup (i.e. modem with no address since it isn't handsfree). Bug-AGL: SPEC-2481 Change-Id: Id0427814c2a841a9f100bdd0e1972e6e370270c4 Signed-off-by: Matt Ranostay --- binding/gdbus/ofono_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/gdbus/ofono_manager.c b/binding/gdbus/ofono_manager.c index 8db5df3..c0000dc 100644 --- a/binding/gdbus/ofono_manager.c +++ b/binding/gdbus/ofono_manager.c @@ -71,8 +71,8 @@ int ofono_manager_set_default_modem(const char *address) type = g_variant_get_string(value, NULL); } - /* If not a HFP modem then continue */ - if (g_strcmp0(type, "hfp")) + /* If address is set then searching for hfp modem */ + if (address && g_strcmp0(type, "hfp")) continue; /* If address is NULL then use the first modem as default, -- cgit 1.2.3-korg