commit | abedea3965685d2e201d394ba6edb0ca9c50c1cc | [log] [tgz] |
---|---|---|
author | Weiyin Jiang <wjiang@codeaurora.org> | Wed Dec 09 12:49:19 2020 +0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Sun Jan 24 22:35:03 2021 -0800 |
tree | df8eca9e16f3cacf2ab54e59b72fad84320b3bf9 | |
parent | daa27ca93ff49280801a34b67683a08618d870b5 [diff] |
hal: replace with a proper usb detection method If USB is not the first sink, audioflinger stream setParam won't pass usb card info as a part of routing parameter. Hence, the usb check method which relies on card info is useless. Replace with usb_connected() that enumerates all usb card. CRs-Fixed: 2859914 Change-Id: Ic3f2ebeb0f9db11a7fe4d7c2bd4136f6db0497aa