OSDN Git Service

Soundtrigger service: fix cross deadlock with audio policy service
authorEric Laurent <elaurent@google.com>
Thu, 5 Oct 2017 17:58:38 +0000 (10:58 -0700)
committerEric Laurent <elaurent@google.com>
Mon, 9 Oct 2017 21:55:10 +0000 (21:55 +0000)
commita188af07eb747b5ed426864c113683b418898c06
treed13d8d8f79b263e8942e6fd9e4e57ce1b668a1e3
parentc41471f6dff4825a27e6e26a0b5b480761572849
Soundtrigger service: fix cross deadlock with audio policy service

Do not hold Module mutex when calling into audio policy manager to
avoid cross deadlock with audio poicy service mutex: Audio policy manager
can call into sound trigger service with its mutex held in methods like
stopInput().

Regression introduced by fix for b/64340921 commit f759b8c4

Bug: 64340921
Bug: 67310830
Test: repro steps in b/67310830
Merged-In: Ie50b2e7c55fe9828a3fd8de6b31eb4a492791583

Change-Id: Ie50b2e7c55fe9828a3fd8de6b31eb4a492791583
services/soundtrigger/SoundTriggerHwService.cpp