diff options
author | Lei Pi <ppipipi@google.com> | 2020-09-15 06:38:26 +0000 |
---|---|---|
committer | Bubble Fang <bubblefang@google.com> | 2020-09-20 13:33:45 +0000 |
commit | 9e85e402af91048d21e94301dd153c9b681ff96e (patch) | |
tree | 7fca6ed12af1be332b4724291a2a2e2f4a15e7cc | |
parent | 16240d402be8ad6c76c97e464677ba2bc1975c36 (diff) | |
download | audio-9e85e402af91048d21e94301dd153c9b681ff96e.tar.gz |
hal: remove out_standby_l when usb headset is unplugged during playback of compress-offloadandroid-11.0.0_r37android-11.0.0_r36android-11.0.0_r35android-11.0.0_r34android-11.0.0_r33android-11.0.0_r32android-11.0.0_r30android11-qpr2-releaseandroid11-qpr1-c-release
Remove the standby patch which was workaround for b/37551929 but impacting basic usecases.
Bug: 162394465
Test: Test music playback with and without usb headset.
Change-Id: I0c5e0ff162475f3958de79fa851018669edb4998
-rw-r--r-- | hal/audio_hw.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index b62da23..a3abb8a 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -2994,16 +2994,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) lock_output_stream(out); - // The usb driver needs to be closed after usb device disconnection - // otherwise audio is no longer played on the new usb devices. - // By forcing the stream in standby, the usb stack refcount drops to 0 - // and the driver is closed. if (val == AUDIO_DEVICE_NONE && audio_is_usb_out_device(out->devices)) { - if (out->usecase == USECASE_AUDIO_PLAYBACK_OFFLOAD) { - ALOGD("%s() putting the usb device in standby after disconnection", __func__); - out_standby_l(&out->stream.common); - } val = AUDIO_DEVICE_OUT_SPEAKER; forced_speaker_fallback = true; } |