Frameworks/av: Fix to prevent deadlock in AudioEffects
-Write is blocked waiting for effect chain lock and this causes decoder thread to wait indefintely. -Sometimes it is observed that effectschain is locked before mLPAEffectChain is initialized and but unlocking is skipped if mLPAEffectChain is initialized in between.Due to this LPA silence and framework reboot issues are observed as applyEffectsOn() cannot acquire lock to progress further. -Use flag to check if all effects have been locked and unlock accordingly to prevent the deadlock scenario. (cherry picked from commit 011db22abf565dfbe7f9d0a5c7af7564587b3b48) CRs-Fixed: 435661, 435664, 435680, 430309 Change-Id: I9e3e0a77ea64ef8c5afbe5a18ee583803a96c99d
Loading
Please register or sign in to comment