commit | 6383127289fbe5efe6901306380b30ed22833e3f | [log] [tgz] |
---|---|---|
author | Weiyin Jiang <wjiang@codeaurora.org> | Thu Jun 28 11:41:01 2018 +0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Sun Jul 01 19:55:54 2018 -0700 |
tree | 2ee26ad5cc738b73ed3ac295ffd9797944f59410 | |
parent | 20e53a28fb90beecd0c4a022c8d355ad35fdcf8c [diff] |
audio: check for USB device state when opening in/out stream Check for USB headset device state when opening in/out stream, and report error if USB headset is not in connected state. That's to handle error condition gracefully to avoid further crashes in audio flinger. Change-Id: Ib33489fec00ac0b5c500fc1fa2dbeb021b51cbef CRs-Fixed: 2261252