libaudiohal@aidl: Consider routing when finding mix ports

While looking up a mix port from configuration,
the destination port id(s) must be considered to avoid
selecting a mix port which can't be routed to the
device specified for stream opening.

Bug: 275341432
Test: atest audiorecord_tests
Test: atest trackplayerbase_tests
Change-Id: I92b5e430326ef0b044e01b9cbd5ec82e9d4c06c3
Merged-In: I92b5e430326ef0b044e01b9cbd5ec82e9d4c06c3
2 files changed