Use returned config to retry opening MMAP stream when fails.
When opening MMAP stream, it may fail at the first try as the requested configuration may not match what the HAL supports. The audio policy manager knows all the information that the HAL supports. In that case, when it fails at the first try, audio policy manager is able to return the supported configurations. After getting the supported configuration, the aaudio service can retry opening MMAP stream with the supported configuration. Bug: 226190094 Test: atest AAudioTests AudioTrackTest AudioRecordTest Test: atest DirectAudioProfilesForAttributesTest Change-Id: Id6ccae3e26d7ffc8fe4c3c7babe825a08d22aa78
Loading
Please register or sign in to comment