Status Update
Comments
vi...@google.com <vi...@google.com> #2
Please share the test log and full bug report.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
ji...@gmail.com <ji...@gmail.com> #3
Bug report and adb logcat had been uploaded.
Thanks.
vi...@google.com <vi...@google.com> #4
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
el...@google.com <el...@google.com> #5
The audio policy dumpsys shows that you have declared support of USB devices in both primary HAL module and default AOSP USB HAL module. Especially, the USB HAL module exposes a dynamic profile which will allow all sampling rates and channel masks of the currently connected USB peripheral.
This policy configuration is not supported: USB devices cannot be handled by two different HAL modules,
If all USB audio is managed by your audio DSP, then the USB HAL module should not be declared by your audio policy configuration.
ji...@gmail.com <ji...@gmail.com> #6
ji...@gmail.com <ji...@gmail.com> #7
// The audio policy dumpsys shows that you have declared support of USB devices in both primary HAL module and default AOSP USB HAL module.
Actually,see audio_policy_configuration.xml and usb_audio_policy_configuration.xml , we only have declared support of "USB Device In/Out" in default AOSP USB HAL module.
// This policy configuration is not supported: USB devices cannot be handled by two different HAL modules.
We declared that all USB devices are supported in the default AOSP USB HAL module (See audio_policy_configuration.xml.default ).
Then we tested again, but the test still failed (See bugreport-lark_evb-ADROID15.0-2025-04-07-12-33-14).
Description
According to the test requirements, connect the "USB Headset Adapter+Looback required" for testing.
- What happened.
Test failed,The test failed. The log is shown as follows:
E AHAL_ModuleUsb: checkAudioPatchEndpointsMatch: mismatch port configuration, source=AudioPortConfig{id: 32, portId: 14, sampleRate: Int{value: 96000}, channelMask: AudioChannelLayout{layoutMask: 3}, format: AudioFormatDescription{type: PCM, pcm: INT_32_BIT, encoding: }, gain: (null), flags: AudioIoFlags{input: 0}, ext: AudioPortExt{device: AudioPortDeviceExt{device: AudioDevice{type: AudioDeviceDescription{type: IN_DEVICE, connection: usb}, address: AudioDeviceAddress{alsa: [1, 0]}}, flags: 0, encodedFormats: [], encapsulationModes: 0, encapsulationMetadataTypes: 0}}}, sink=AudioPortConfig{id: 33, portId: 8, sampleRate: Int{value: 48000}, channelMask: AudioChannelLayout{layoutMask: 3}, format: AudioFormatDescription{type: PCM, pcm: INT_32_BIT, encoding: }, gain: (null), flags: AudioIoFlags{input: 0}, ext: AudioPortExt{mix: AudioPortMixExt{handle: 70, usecase: AudioPortMixExtUseCase{source: VOICE_RECOGNITION}, maxOpenStreamCount: 0, maxActiveStreamCount: 1, recommendedMuteDurationMs: 0}}}
Our adsp dose not support samplerate above 48k,so we let "usb device in/out" follow the Android native path.However,we can see from the log that the saplerate of the sink(48k) and source(96k) come frome the framework are inconsistent,so the test failed.
- What you think the correct behavior should be.
Can pass the test
model and Android version : android15
Can I apply for exemption from this test? How can I apply.