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][TGL] pop noise issue on max98357 speaker when doing pause/resume test #2111
Describe the bug
We tried rt5682+max98357 codec(I2S mode) on TGL Chromebook, but found that when resuming the playback on speaker, we can hear the pop noise clearly and sometimes the playback speed will become very slow but this issue cannot be reproduced with max98373 codec. Since this max98357 is non smart amplifier codec. so not sure if this is codec specific.
Error still seen on max98357 speaker and max98373 speaker.
Error can be observed when pause/resume during playing sine wave. Reopen captureaudio-wav.zip
@sathya-nujella can you please help check this ? I dont have the daughter card with i2s-max98357 or i2s-max98373 codec.
And with sdw-max98373 daughtercard, I'm not observing the pop-noise.
@ClarexZhou : Can you please confirm if issue reproduced on max98373 speaker codec is of i2s or sdw based ?
On TGL chromebook with codec 98357 in I2S mode reproduced the issue of pop noise and playback speed become very slow
1."sudo reboot" to reboot sysytem
2.open terminal1 to run "aplay -Dhw:0,0 -r48000 -c2 -fs24_le wav/48California_Dreaming.wav -vv -i"
3 .open terminal2 to run " arecord -Dhw:0,99 -r48000 -c4 -fs32_le s30.wav -vv -i"
4.do pause/release slowly of arecord(0,99) about 20 times
5.do pause/release slowly of aplay(0,0)about 5 times (need to pause/release slowly,otherwise will reproduce issue thesofproject/sof#2749)
Pop noise occured when pause/release aplay(0,0),Aplay of speaker(0,0) will become very slow
Activity
keqiaozhang commentedon May 14, 2020
@naveen-manohar , please help to check this issue to see if this is max98357 codec restriction. Thanks.
plbossart commentedon May 27, 2020
@keqiaozhang is this still relevant now?
YvonneYang2 commentedon Jun 4, 2020
Issue cannot be reproduced with test recipe as below:
Kernel: https://github.com/thesofproject/linux/commits/topic/sof-dev commit:0d22f66b7
Revert regression on USB-C 6a7c533
Revert regression on PINCTRL cd0a323
FW: https://github.com/thesofproject/sof/tree/tgl-006-drop-stable plus thesofproject/sof#2987
TPLG: same as fw sof-tgl-max98357a-rt5682.tplg
plbossart commentedon Jun 9, 2020
no information provided, closing.
ClarexZhou commentedon Jul 3, 2020
Error still seen on max98357 speaker and max98373 speaker.

Error can be observed when pause/resume during playing sine wave. Reopen
captureaudio-wav.zip
FW: on https://github.com/thesofproject/sof/tree/tgl-007-drop-stable.
Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)
+PR#2238 for max98373-sdw jack switch
ClarexZhou commentedon Jul 6, 2020
Error also occurred when start and stop aplay.
naveen-manohar commentedon Jul 7, 2020
@sathya-nujella can you please help check this ? I dont have the daughter card with i2s-max98357 or i2s-max98373 codec.
And with sdw-max98373 daughtercard, I'm not observing the pop-noise.
@ClarexZhou : Can you please confirm if issue reproduced on max98373 speaker codec is of i2s or sdw based ?
naveen-manohar commentedon Jul 7, 2020
verified on sdw-rt5682-max98373 and i'm not observing pop noise during speaker aplay(pause-resume)
ClarexZhou commentedon Jul 7, 2020
Can observe slight pop when playing sine wave on i2s-rt5682-max98373

And here attached the captured audio via DSM.
Also can observe slight pop when playing sine wave on sdw-rt5682-max98373. But seen no this pop on captured audio via DSM.

i2s_sdw_capture.zip
naveen-manohar commentedon Jul 7, 2020
@ClarexZhou: Good Info. & Observation.
I tried the same method for DSM on SDW and it appears clean.
echo_play-pause.zip
plbossart commentedon Jul 7, 2020
For TGL, we have SDW support for max98373. The bug report mentions I2S w/ max98357. Are we talking about the same codec?
ClarexZhou commentedon Jul 8, 2020
split #2255 to track issue for I2S max98373.
Liviali155 commentedon Jul 8, 2020
On TGL chromebook with codec 98357 in I2S mode reproduced the issue of pop noise and playback speed become very slow
1."sudo reboot" to reboot sysytem
2.open terminal1 to run "aplay -Dhw:0,0 -r48000 -c2 -fs24_le wav/48California_Dreaming.wav -vv -i"
3 .open terminal2 to run " arecord -Dhw:0,99 -r48000 -c4 -fs32_le s30.wav -vv -i"
4.do pause/release slowly of arecord(0,99) about 20 times
5.do pause/release slowly of aplay(0,0)about 5 times (need to pause/release slowly,otherwise will reproduce issue thesofproject/sof#2749)
Pop noise occured when pause/release aplay(0,0),Aplay of speaker(0,0) will become very slow
sof-logger_slow.log
dmesg_slow.log
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
Kernel: Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev (commit: 1b2f260)
PR#2208 for DP fix
PR#2184 for wov S0i2
+PR#2238 for max98373-sdw jack switch
codec hack commit to verify this captured data.
revert regression on USB-C 6a7c533 for volteer
revert d4b41f8
revert regression on PINCTRL cd0a323 for volteer
https://github.com/thesofproject/sof/commits/releases/tgl/v7.0-rc7 ,commit: 33cfa90e
RanderWang commentedon Aug 26, 2020
let's track #2255