You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [MTL] Playback clips captured from mock RTC AEC device is double speeded #8022
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?
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!!
Activity
lgirdwood commentedon Aug 16, 2023
@yongzhi1 can you confirm if its SPK feedback or AEC that is double speed or both ?
@mwasko @abonislawski fyi.
yongzhi1 commentedon Aug 16, 2023
Hi, @lgirdwood , to confirm, both spk playback and EchoRef ( spk loopback for capture) work normally w/o speed or glitch issue, thanks!
abonislawski commentedon Aug 21, 2023
Please verify on newest chromeos, I cannot reproduce on main and 005
RDharageswari commentedon Aug 22, 2023
hi Adrian,
i can repro the issue still on mtl-005
serhiy-katsyuba-intel commentedon Aug 28, 2023
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.
lgirdwood commentedon Aug 30, 2023
@RDharageswari I'm assuming the 4 channel output is not needed by userspace here ?
ranj063 commentedon Aug 31, 2023
@yongzhi1 @RDharageswari Do you still see this issue with #8101
yongzhi1 commentedon Aug 31, 2023
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!!
ranj063 commentedon Sep 1, 2023
@serhiy-katsyuba-intel the current aec pipeline in topology is missing support for 4ch capture. I am working with @yongzhi1 to fix this.
yongzhi1 commentedon Sep 6, 2023
With #8101, #8172 and thesofproject/linux#4550, the issue can be closed, thanks @ranj063 for the prompt support!!