From 6fbd65ef2598dc610602d51ddf2d1e2954d35d90 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Wed, 15 Nov 2023 10:18:21 +0900 Subject: [PATCH] Add logic to start hf-agent when bt is enabled in DA devices When restarting the bluetooth adapter, hf-agent does not restart after termination. Change-Id: Ie67312a778582e396d80f8816b03e9b5c215fc5f Signed-off-by: Wootak Jung --- bt-core/bt-core-adapter.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bt-core/bt-core-adapter.c b/bt-core/bt-core-adapter.c index b566e64..b094c7b 100644 --- a/bt-core/bt-core-adapter.c +++ b/bt-core/bt-core-adapter.c @@ -220,6 +220,15 @@ static int __bt_stack_up(void) } } + if (TIZEN_FEATURE_DA_REFERENCE) { + /* activate bluetooth-hf-agent */ + ret = __bt_call_systemact_service(BT_SYSTEMACT_HF_AGENT); + if (ret < 0) { + BT_ERR("Failed to call systemact service"); + return -1; + } + } + return 0; } -- 2.7.4