commit | 5d608082f60eaf3d8eaf81d9c711835cbe00dbb2 | [log] [tgz] |
---|---|---|
author | Weiyin Jiang <wjiang@codeaurora.org> | Thu Feb 01 17:24:33 2018 +0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed May 09 01:01:59 2018 -0700 |
tree | bed351fbdd77014a6a2b0f2df203e4a6339af181 | |
parent | addfa4a10052542091d2ccc8fea685cf0bada6f7 [diff] |
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