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

Skip to content
Commit 3b547dbc authored by Amit Shekhar's avatar Amit Shekhar Committed by Santhosh Kumar Thimmanna Bhattar
Browse files

audio: Fix mExtOutMutex related lock issue

-extoutThread was taken slightly longer than on MR1.
-On newer platform, It takes more time to write becausea2dp_write
is a blocking call and takes about 20 ms in every execution
-Because of this, the new stream that was coming in was not getting
the lock.
-To solve this, added a new lock that we acquire before write, and
this lock is taken only during A2DP disconnect since that is the only
case when we close the extoutput

Change-Id: I4ce0bcb17ba2e9fbd60aacd2315d92808509d150

Conflicts:

	legacy/alsa_sound/AudioHardwareALSA.cpp

Conflicts:
	legacy/alsa_sound/AudioHardwareALSA.cpp
parent da1a2d09
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