-
Notifications
You must be signed in to change notification settings - Fork 325
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
[BUG] [MTL] Playback clips captured from mock RTC AEC device is double speeded #8022
Comments
@yongzhi1 can you confirm if its SPK feedback or AEC that is double speed or both ? |
Hi, @lgirdwood , to confirm, both spk playback and EchoRef ( spk loopback for capture) work normally w/o speed or glitch issue, thanks! |
Please verify on newest chromeos, I cannot reproduce on main and 005 |
hi Adrian, |
Looks like the problem is caused by wrong host-copier.27.capture output format configuration. It is configured to receive 2-channel audio on source and output 4-channel audio to host. See dmesg log:
Current version of copier does not support remapping of channels. So, basically, host-copier.27.capture just copy its input data to output DMA buffer and so host receives 2 times less data when expected. Is it a mistake that host-copier.27.capture is configured with 4-channel output instead of 2? Or is this intentional and for some reason 4 channels are required? cc: @ranj063. |
@RDharageswari I'm assuming the 4 channel output is not needed by userspace here ? |
@yongzhi1 @RDharageswari Do you still see this issue with #8101 |
Hi, @ranj063 with #8101 and the mock module, the speed issue is still there when 4xch is enabled. The speed issue is not reproducible with 2xch DMIC (i.e. sof-mtl-max98357a-rt5682-ssp2-ssp0-2ch-pdm1). Thanks @serhiy-katsyuba-intel for the hint!! |
@serhiy-katsyuba-intel the current aec pipeline in topology is missing support for 4ch capture. I am working with @yongzhi1 to fix this. |
With #8101, #8172 and thesofproject/linux#4550, the issue can be closed, thanks @ranj063 for the prompt support!! |
Describe the bug
Playback the file captured from "device 27: DMIC0 RTC AEC" with CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK=y, and hear the speed is doubled.
To Reproduce
Start spk playback:
Start spk feedback capture:
Start AEC capture:
Reproduction Rate
100%
Environment
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
Name of the topology file
topology2: fixup google aec topology #7970
Name of the platform(s) on which the bug is observed.
Please also include the relevant sections from the firmware log and kernel log in the report (and attach the full logs for complete reference).
mtrace.txt
dmesg-mock-aec.txt
mock_aec.zip
The text was updated successfully, but these errors were encountered: