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
1 file changed
tree: 7cca891fdfaadd1423250e65a0b39489330ae700
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk