commit | d6a9e0c6929a032a22e2b61e1bef770e52be0b06 | [log] [tgz] |
---|---|---|
author | kunleiz <kunleiz@codeaurora.org> | Mon Jul 30 15:38:52 2018 +0800 |
committer | kunleiz <kunleiz@codeaurora.org> | Mon Jul 30 15:39:34 2018 +0800 |
tree | f6b5c4269d05ad92c7697a62c8e88e47b14f8122 | |
parent | 6ad124563d2d8c01f6822a1c5b2291fbd5233809 [diff] |
hal: check for usb card state before setting in/out device During record, audio record usecase still uses usb-headset-mic as input device even if usb-headset is plugged out. It causes record fail and mute issue happen. Fix it by adding check for USB card state, and routing input device to handset, output device to speaker when usb card is not existed. CRs-Fixed: 2264971 Change-Id: Ibfe43c4795a76bf386ab9008a632ef07aa1c7f28