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

Skip to content
Commit 4e89beb3 authored by Weiyin Jiang's avatar Weiyin Jiang Committed by Gerrit - the friendly Code Review server
Browse files

audio: move gef device change notification to the tail

It's thread unsafe to unlatch the device lock in the middle, active
usecase list may be accessed from other threads and results into race
condition.

Caching the stream information and notify device change at the tail of
select_devices(). In the wrost case, stale info gets notified which won't
harm.

Change-Id: I14f2473a304761d1b2d822135db4c70862c84415
parent 9f42764a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment