audio/msm8660: Fix for crash in Voip conference call

-Crash is observed in voip conference call using third party voip app.
-Directoutput is used across different voip sessions in openOutputStream
if already opened. Irrespective of this, in closeOutputStream
directoutput is deleted and if the same handle is accessed by another
voip session it leads to crash.
-Introduce reference count for directoutput and increment it for
each session. Similarly delete output only if reference count is zero
and no other session is accessing it.

Change-Id: Ic132172130ee4e0657345842ba4619d41db567b1
CRs-Fixed: 476899
2 files changed
tree: bf28071fe349f414e611b7eb0636492eedc460f4
  1. alsa_sound/
  2. audiod/
  3. libalsa-intf/
  4. mm-audio/
  5. msm7x30/
  6. msm8660/
  7. Android.mk