OSDN Git Service

AI 145785: Don't close the A2DP data socket on data error - prevents mediaserver...
authorNick Pelly <>
Fri, 10 Apr 2009 23:41:57 +0000 (16:41 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Fri, 10 Apr 2009 23:41:57 +0000 (16:41 -0700)
commitb53e009e357e1a41383796112ad6cbd7d6b89d9d
treef814907d0116f9a0770eb6615167b577846c3907
parentca75519d782909d11c032fc5e295622f0aa2e6c8
AI 145785: Don't close the A2DP data socket on data error - prevents mediaserver from wedging on A2DP device poweroff.
  This prevents a race that occurs when an A2DP headset is powered down. If the data socket closes itself then mediaserver tries to recover the stream, while the control path in hcid tries to cleanup the disconnected stream. hcid cant handle this and wedges mediaserver.
  Instead let the control path code trigger all the cleanup (including eventually closing the data socket through bluetooth_close() or bluetooth_stop()).
  BUG=1774568

Automated import of CL 145785
utils/audio/liba2dp.c