APM: modify logic for getInputProfile.
1. When calling getInputForDevice in APM, it would try to change the flag to call getInputProfile again if the original request was failed. With the change, the flag changing logic is moved into getInputProfile. Currently, getInputProfile may return a compatible profile with changing the requested flag if an exact matched profile is not found. 2. When client requests to open an input stream, APM will retry with flags as NONE if the requested format is PCM and flags is not NONE when fails to find a profile with current configuration. However, for MMAP case, the client will never be able to be attached to a thread that is not MMAP. In that case, there is no need to retry if there is not a profile for MMAP. Bug: 226190094 Test: atest AAudioTests Change-Id: If20e175eb750303ad131d8901156c6134e6b1ed1
Loading
Please register or sign in to comment