CRAS: bt_device - Handle SCO socket error case

BT headset could send SCO Interval Rejected (0x1c) command right
after SCO connection established when switches to HFP/HSP.
Handle this error by checking the revent code of ppoll and suspend
this bt device so user has a chance to re-connect it.

BUG=chrome-os-partner:59015
TEST=Manual test MDR-XB950BT headset switch from A2DP to HFP,
disconnect and reconnect a few times to verify that headset won't
fall into the state that stay connected but not working.

Change-Id: I6d16ddcea1608f024b5bd0780941d1f17db5de75
Reviewed-on: https://chromium-review.googlesource.com/440048
Commit-Ready: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
1 file changed