Loading
Release all connected streams when routing device is changed.
When there is a routing change, the existing mmap endpoint is invalidated and can no longer be used. In that case, release all registered streams and set the endpoint as disconnected so that it won't be reused by another new request. That also releases the resources from the service side so that it won't be harmful if the clients don't close the stream when receiving disconnect event. Bug: 299360979 Test: atest AAudioTests Test: test_idle_disconnected_shared_stream Change-Id: I4d7c68d5c0d15b75cc2f07471f50bfedb6292da9