OSDN Git Service

audio_a2dp_hw: add device lock
authorAndy Hung <hunga@google.com>
Thu, 30 Mar 2017 23:28:46 +0000 (16:28 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Mon, 3 Apr 2017 17:01:46 +0000 (17:01 +0000)
commitb1a900fcc9903f0988b6f8c1a470b9c718aedf1f
treeba6524aaac750f05bc41af3ed0c6d30dbcad2ad0
parenta3129f158e446dae842922b68a350c10cdd28aaf
audio_a2dp_hw: add device lock

Prevent conflict between closing a stream (adev_close_output_stream)
and setting parameters (adev_set_parameters).

Test: Manual - Bluetooth A2DP streaming and changing codec parameters
Bug: 36723276
Change-Id: Id8b9fcdf594e3d5fde139719d324420468c4c0aa
audio_a2dp_hw/audio_a2dp_hw.cc