Open marc-hb opened 6 months ago
Still happening with B0 and April BIOS: https://sof-ci.01.org/softestpr/PR1203/build477/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-capture-599
In this run, alsabat playback failed first: https://sof-ci.01.org/softestpr/PR1204/build488/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-playback-997
Underrun: Broken pipe(-32)
Then all capture failed too but not as "usual". The playback failure seems to have left a bad state behind.
@singalsu @plbossart could this be DC ? 50/60Hz peaks could also be mains power ?
I'd like to park this issue until we've solved the more important Controller Timeout and initialization failed. Walk then run, etc.
I'd like to park this issue until we've solved the more important Controller Timeout and initialization failed.
"Signal too weak" just spotted after the SDW clock fix was merged:
https://sof-ci.01.org/softestpr/PR1205/build514/devicetest/index.html
If you look at instances seen today in PR testing like this: https://sof-ci.01.org/softestpr/PR931/build518/devicetest/index.html
There's a seemingly a fairly clean reference sine tone recorded, it's just very weak signal just barely above noise floor (so the test fails as it should). Another alsabat did pass just on the same machine and all alsamixer settings were the same. Cannot immediately explain how this could happen.
If we compare to other open alsabat cases like https://github.com/thesofproject/sof/issues/9164 (on HDA), this looks distinctly different. The occurence rate seems higher, and the failure looks (and sounds) very different.
This starts to look like a codec/setup issue with rt711. I logged on to one CI machine that triggers the issue and run the tests manually. I can obverse:
Seems there is connection to headset detection. In failing cases, the rt711_sdca_headset_detect() function is called twice. The results are the same, but in failing case this is just done twice upon codec runtime resume.
fail:
[ 8970.354034] snd_soc_rt711_sdca:rt711_sdca_headset_detect: rt711-sdca sdw:0:0:025d:0711:01: rt711_sdca_headset_detect, detected_mode=0x0
[ 8970.829012] snd_soc_rt711_sdca:rt711_sdca_headset_detect: rt711-sdca sdw:0:0:025d:0711:01: rt711_sdca_headset_detect, detected_mode=0x5
[ 8970.865427] snd_soc_rt711_sdca:rt711_sdca_headset_detect: rt711-sdca sdw:0:0:025d:0711:01: rt711_sdca_headset_detect, detected_mode=0x5
success:
[ 9042.534222] snd_soc_rt711_sdca:rt711_sdca_headset_detect: rt711-sdca sdw:0:0:025d:0711:01: rt711_sdca_headset_detect, detected_mode=0x0
[ 9042.927780] snd_soc_rt711_sdca:rt711_sdca_headset_detect: rt711-sdca sdw:0:0:025d:0711:01: rt711_sdca_headset_detect, detected_mode=0x5
The kernel patch seems to help:
This confirms the hypothesis, so moving the bug to kernel.
I noticed that ba-twln-rvp-sdw-01
fails all alsabat tests 100% of the time in daily runs with "Signal too weak". It uses RT711 too.
Latest daily run today: 43530?model=TWLN_RVP_SDW-ipc4&testcase=check-alsabat-headset-capture-599
July 12th reproduction: https://sof-ci.01.org/sofpr/PR9298/build6450/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-playback-599
TWL is 2 generations older than LNL, this should be a different issue.
Today's failure. Same or different bug?
Overrun: Broken pipe(-32)
FAIL: Peak freq too low 388.18 Hz
FAIL: Peak freq too low 400.63 Hz
FAIL: Peak freq too low 588.13 Hz
FAIL: Peak freq too high 612.30 Hz
Same in Aug 6th daily 44550?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-capture-997
EDIT: still failing in August 12th daily run 44671?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-capture-599
Tested alsabat on another LNL system with a headset-codec <-> dmic acoustic loop, and I could not reproduce these failures. I was using sof-dev as of today and SOF2.10 FW release. The DUT configuration is different, so this is not fully comparable to the original setup, but at least one positive test setup with USB-audio excluded from test setup. FYI @ssavati @jsarha
Originally posted by @marc-hb in https://github.com/thesofproject/linux/issues/4681#issuecomment-2125436314
"signal too weak" failure in daily test run 41404?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-capture-599, see logs below.
EDIT: also in https://sof-ci.01.org/sofpr/PR9159/build4831/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-alsabat-headset-capture-821
cc: