4A: delay service startup as a workaround to SPEC-1762/SPEC-1763 (temp workaround) 37/16837/8
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 27 Sep 2018 17:35:20 +0000 (17:35 +0000)
committerStephane Desneux <stephane.desneux@iot.bzh>
Fri, 28 Sep 2018 16:01:32 +0000 (16:01 +0000)
commit3b2111ffe4a7a004479445f857e0b4cf09694c7a
treeada650bfee88c7aaf93a5b7330cf0b5c4d7ca7a7
parentbd047dd78bac07451375e19f03b5f936efcf5f03
4A: delay service startup as a workaround to SPEC-1762/SPEC-1763 (temp workaround)

This patch introduces a wait loop before starting the 4A binder:
* wait for bluetooth module to be loaded
* wait for bluetooth controller to be up & running
* wait for bluetooth manager to be initialized

Then 4A can start with BT-audio support.

If no BT controller is detected in 5secondes, the loop exits and
4A doesn't initialize BT-Audio

Bug-AGL: SPEC-1762, SPEC-1763

Change-Id: Ibe851dee871d183511c7bca03411b35ed023f422
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb
meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh [new file with mode: 0755]