alsa_sound: fix for out-of-order deadlock in AudioSessionOut

-standby() and setParameters() acquire lock and parent locks in
 out-of-order fashion.
-Moved lock acquisition in standby() after flush() call which
 fixes the order and aligns it as in setParameters()

Change-Id: I0d1ad3d4b0cbf818a6fa2844024cd62aa882de22
CRs-Fixed: 514367, 518682
(cherry picked from commit 21ed4009199637a67419dc36131c68d44af5eb95)
1 file changed
tree: 8ccaacb1fd09ed1868504d934658012beb235b11
  1. alsa_sound/
  2. audiod/
  3. libalsa-intf/
  4. mm-audio/
  5. msm7x30/
  6. msm8660/