OSDN Git Service

Add more Hearing Aid Profile logs
authorStanley Tng <stng@google.com>
Thu, 11 Oct 2018 01:57:29 +0000 (18:57 -0700)
committerStanley Tng <stng@google.com>
Tue, 16 Oct 2018 22:46:29 +0000 (15:46 -0700)
Add more logs to debug the TimeCheck timeout crash issues.

Bug: 117349352
Test: Manual run
Change-Id: I3a05ca975e41ab002e466150f3f3f28ba0f037df
(cherry picked from commit 05cc6c7e97ecebd3e031f09e74f730641423ae13)
Merged-In: I3a05ca975e41ab002e466150f3f3f28ba0f037df

audio_a2dp_hw/src/audio_a2dp_hw.cc
bta/hearing_aid/hearing_aid_audio_source.cc

index 3622298..0e1a3c2 100644 (file)
@@ -1680,6 +1680,8 @@ static void adev_close_output_stream(struct audio_hw_device* dev,
   struct a2dp_audio_device* a2dp_dev = (struct a2dp_audio_device*)dev;
   struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream;
 
+  INFO("%s: state %d", __func__, out->common.state);
+
   // prevent interference with adev_set_parameters.
   std::lock_guard<std::recursive_mutex> lock(*a2dp_dev->mutex);
   {
index e03b040..3254117 100644 (file)
@@ -129,7 +129,7 @@ void hearing_aid_recv_ctrl_data() {
     return;
   }
 
-  VLOG(2) << __func__ << " " << audio_ha_hw_dump_ctrl_event(cmd);
+  LOG(INFO) << __func__ << " " << audio_ha_hw_dump_ctrl_event(cmd);
   //  a2dp_cmd_pending = cmd;
 
   switch (cmd) {
@@ -245,8 +245,9 @@ void hearing_aid_recv_ctrl_data() {
       hearing_aid_send_ack(HEARING_AID_CTRL_ACK_FAILURE);
       break;
   }
-  VLOG(2) << __func__ << " a2dp-ctrl-cmd : " << audio_ha_hw_dump_ctrl_event(cmd)
-          << " DONE";
+  LOG(INFO) << __func__
+            << " a2dp-ctrl-cmd : " << audio_ha_hw_dump_ctrl_event(cmd)
+            << " DONE";
 }
 
 void hearing_aid_ctrl_cb(tUIPC_CH_ID, tUIPC_EVENT event) {