Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd784d19 authored by Pavan Chikkala's avatar Pavan Chikkala Committed by Steve Kondik
Browse files

frameworks/av: Fix the LPA-AudioEffects dead lock issue

- Issue:Deadlock occurs when the LPA clips are subjected to
  rapid next from BT device and simultaneously on/off the
  audio effects.
- Rootcause:some times flinger thread processing
  LPAPlayer/directtrack next deadlocks with the thread
  working on effect configuration as both of them
  contend for the audioflinger::mlock and effectmodule::mlock.
- Fix1:AudioFlinger::deleteEffectSession() not to acquire
  audioflinger:mLock  instead take the mLPAEffectChain.mlock.
- Fix2:ThreadBase::effectConfigChanged() not to acquire
  audioflinger::mlock.
CRs-Fixed: 477511

Change-Id: Ia0e6d72f467afce6de5e66c6cd6edbe0759d271b
parent edd1ed89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment