commit | d9653bdbca90e175346121bd4c8c708d056fbd15 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Aug 01 19:31:39 2017 -0700 |
committer | Andy Hung <hunga@google.com> | Thu Aug 03 14:09:31 2017 +0000 |
tree | 7cca891fdfaadd1423250e65a0b39489330ae700 | |
parent | f07d6b39a33b7e77486c4786f9bc681be1d38307 [diff] |
audio_hw: Check if usb device is removed before opening stream This fixes a fast insert-removal race condition when the usb device is removed right before it is opened by AudioFlinger. Test: dedicated HAL failure config, plug/unplug usb. Bug: 64043790 Bug: 64090435 Change-Id: Ie5c8e9c7f7f0bc1c7dc2ee20838d6287275e0b1b