Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2fd710d4 authored by jiabin's avatar jiabin Committed by Jiabin Huang
Browse files

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
parent 2c0845a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment