libaudiohal@aidl: Fix handling of transient patch updates

There are cases when the framework opens a stream for one
device, and then issues a "create patch" command with
AUDIO_PATCH_HANDLE_NONE, and a different device. In that
case the mapper must match the patch using the mix port
handle, and then send a patch update command to the HAL.

Bug: 341326679
Test: atest CoreAudioHalAidlTest
Change-Id: Ic2ed15343f494f346de70af0f6d22fd59a3a81d7
2 files changed