-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aaudio capture noise with microphone, but it's fine when connecting a wired headphone #2160
Comments
@lhran99 - Thanks for the bug report and for including the WAV files. I normalized the bad microphone file and then zoomed in to see individual samples. I believe this may be caused by the CPU reads colliding with the DSP writes in the FIFO. As an experiment, try increasing the "Input Margin" radio button form "0" to 1, 2, 3 or 4. I will pass this information along to Qualcomm.
Note that checking the MMAP checkbox does not guarantee MMAP capture. Can you please capture a screenshot with MIC and USB while recording, or after recording? |
I believe this phone uses a Qualcomm Snapdragon 765G SM7250-AB. |
The mmap is both "YES" when recording with MIC and USB,the screenshots are here. And the burst and capacity both are same from the screenshots. ![]()
We have tried increasing the "Input Margin" radio button form "0" to 1, 2, 3 or 4. But it still has noise and sound the same as before. The wav is as follows. |
It seems that there is no different aaudio paramter between mic and usb,maybe the problem is caused by some difference in kernel driver? |
The shell script output is as follows
Problem:
We find a problem that some device such as vivo V2005A capture noise by aaudio with microphone,but it's fine when connecting a wired headphone.
Test Step:
Without the wired headphone, Click RECORD and say something, and Click STOP and Play.
Then we find some noise obviously , the wav is here.
oboe_recording_20250213-170230.wav.zip
Then we connect a wired headphone to vivo V2005A and repeat RECORD again, when we find the capture is find and without any noise, the was is here
oboe_recording_20250213-170536.wav.zip
Analysis:
And both use the mmap capture.
2. I guess maybe the hardware audio dma period is different, for device V2005A, it's mmap dma period is more shorter than the scene when it connect a wired headphone, but i do not know whether the reason make sense or not.
The text was updated successfully, but these errors were encountered: