audiopolicymanager: prevent MMAP stream collisions

An allocation of a second MMAP stream with a different
rate or channel count could collide with an existing MMAP
stream and cause it to fail.

Bug: 73369112
Test: test_interference.cpp
Change-Id: I8318ba897dd4999dd747d40a77b6850525616998
2 files changed