Add logic to start hf-agent when bt is enabled in DA devices 49/301349/3 accepted/tizen/7.0/unified/20231117.111247
authorWootak Jung <wootak.jung@samsung.com>
Wed, 15 Nov 2023 01:18:21 +0000 (10:18 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 15 Nov 2023 07:56:17 +0000 (16:56 +0900)
When restarting the bluetooth adapter, hf-agent does not restart after termination.

Change-Id: Ie67312a778582e396d80f8816b03e9b5c215fc5f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-core/bt-core-adapter.c

index b566e64..b094c7b 100644 (file)
@@ -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;
 }