Merge "hal: Remove the sleep time to restart output if disconnecting bt-a2dp"
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 8f18c8f..0bb9918 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3700,7 +3700,7 @@
         CARD_STATUS_OFFLINE == adev->card_status) {
         ALOGW("out->card_status or adev->card_status offline, try again");
         ret = -EIO;
-        goto error_config;
+        goto error_fatal;
     }
 
     //Update incall music usecase to reflect correct voice session
@@ -4038,12 +4038,13 @@
     audio_streaming_hint_end();
     audio_extn_perf_lock_release(&adev->perf_lock_handle);
     stop_output_stream(out);
-error_config:
+error_fatal:
     /*
      * sleep 50ms to allow sufficient time for kernel
      * drivers to recover incases like SSR.
      */
     usleep(50000);
+error_config:
     ATRACE_END();
     enable_gcov();
     return ret;