Continue merge: Fix Spurious Hearing Aid Start and Stop Cmds
The original CL from AOSP (chg-id:I33a175947b0118f0234ec6338c20ac6e7963a598) is not merged into pi-dev-plus-asop due to some wrong Merged-In and Change-Id tags errors. This CL is to continue the merge starting at pi-dev-plus-asop. Prevent the spurious Start and Stop Commands that are send to the Hearing Aids when there is audio suspend and resume, and also connection and disconnections. Also, make sure that the callback for the Audio Suspend and Resume are done in the main thread; previously, it was running in the wrong socket thread. Lastly, make sure that the Connection Update callback are processed correctly; previously, we are not checking that the right connection interval are set and taking the callbacks done by service discovery. Test: Manual testing with Hearing Aids Bug: 117619792 (cherry picked from commit ea4f5f2c) Change-Id: Ia95baae132e41690944adf852834ba407bf740a2
Loading
Please register or sign in to comment