aaudio: preserve requested device ID, fix regression
This fixes a bug that caused the mDeviceId and the mRequestedDeviceId
to be set to a specific device even when UNSPECIFIED was requested.
That led to some streams not getting disconnected when they should.
Bug: 242648766
Test: OboeTester TEST DISCONNECT
Test: OboeTester TEST INPUT
Test: open an MMAP stream and then plug in a headset
Test: it should close the input stream.
Change-Id: I51f0517e719b847f519bb08d3e5b0afb9b4d2f36
Merged-In: I51f0517e719b847f519bb08d3e5b0afb9b4d2f36
(cherry picked from commit 7bc710b932e81c9662b3ea2e243dbc08e454d0cc)
1 file changed