commit | ce66fa6dabf2440ccc0e848ef94ecb2a391905b4 | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Thu Mar 14 21:51:30 2024 +0000 |
committer | jiabin <jiabin@google.com> | Thu Mar 14 23:27:33 2024 +0000 |
tree | 600c48058843ee7aed4f3a0227793fe8f182b3c5 | |
parent | 143dc5d225b7ad36dac04041df3cd050bde51682 [diff] |
libaudiohal: only call getAudioPort if it is supported. The getAudioPort API is supported since HAL version 3.0. Do not call getAudioPort API if it is not supported. Bug: 329548103 Test: dumpsys audio policy with USB device connected Change-Id: I6e107c9a394bffc30728041c21b31e148d1d9f20