commit | 26874fed269f1f88d5e9eaef831d0d4c14ba74be | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Apr 13 15:52:39 2020 -0700 |
committer | Eric Laurent <elaurent@google.com> | Mon Apr 13 15:52:39 2020 -0700 |
tree | 1b53a2407f10fbf3197a7859d24899f79cb8fd1f | |
parent | 141095dce0006e73b7941367c4b03f64c6ae997d [diff] |
audio policy: fix crash in findPreferredDevice() on duplicating outputs Duplicating outputs do not have an associated IOProfile and getPolicyAudioPort() returns null. Add a method to AudioIODescriptorInterface to query if the input or output descriptor corresponds to MMAP IO profile or not. Bug: 153849965 Test: repro steps in the bug Change-Id: I300356880198f1785e3a5e1359ffd393c6ae4190