4A: delay service startup as a workaround to SPEC-1762/SPEC-1763 (temp workaround) 55/16855/2 6.0.0 flounder/6.0.0 flounder_6.0.0
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 27 Sep 2018 17:35:20 +0000 (17:35 +0000)
committerStéphane Desneux <stephane.desneux@iot.bzh>
Fri, 28 Sep 2018 16:03:48 +0000 (16:03 +0000)
commitb5df3d646894d0ee798a1949dbda9620131dbb4e
treeacd60e5633d880f17e9566d41c4265feeb7031e5
parentb674a03bd441a0c357277b003e88267d45b5dbfe
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]