AudioDeviceInventory: add cache for preferred device roles
Add a cache for the last selected devices role (disabled/preferred) for any strategy or capture preset. This avoids redundant and frequent rerouting requests sent to audio policy manager causing delays and glitches in audio playback and capture. Bug: 276386807 Bug: 265077417 Test: atest NonDefaultDeviceForStrategyTest Test: atest AudioManagerTest#testPreferredDevicesForStrategy Test: atest AudioManagerTest#testPreferredDeviceForCapturePreset Change-Id: Id3e9efe1277b41c94a799e032148574da85f5ea7
Loading
Please register or sign in to comment