sof icon indicating copy to clipboard operation
sof copied to clipboard

[BUG][LNL] [SDW] audio glitches on LNL-SDW

Open keqiaozhang opened this issue 1 year ago • 20 comments

Describe the bug The JD issue has been fixed on LNL-SDW platforms, so now we are able to check the audio quality on LNL-SDW. Now I observed the audio glitches on both playback and capture, but the reproduction rate is low, not easy to reproduce manually. Here are the failures we captured in CI daily test.

On playback: image There're a lot of xrun warning during the test.

2024-01-28 22:11:39 UTC [REMOTE_INFO] Starting /usr/local/bin/mtrace-reader.py >& /home/ubuntu/sof-test/logs/check-alsabat/2024-01-28-22:11:38-10012/mtrace.txt &
2024-01-28 22:11:39 UTC [REMOTE_INFO] check the PCMs before alsabat test
2024-01-28 22:11:41 UTC [REMOTE_COMMAND] alsabat -Phw:sofsoundwire,0 --standalone -n 240000 -r 48000 -c 2 -f S16_LE -F 821 -k 2.1
2024-01-28 22:11:42 UTC [REMOTE_COMMAND] alsabat -Chw:CODEC,0 -c 2 -r 48000 -f S16_LE -F 821 -k 2.1
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)
Underrun: Broken pipe(-32)

On capture: image

To Reproduce

Playback test:~/sof-test/test-case/check-alsabat.sh -p hw:sofsoundwire,0 -c hw:CODEC,0 -C 2 -F 821

Capture test:~/sof-test/test-case/check-alsabat.sh -c hw:sofsoundwire,1 -p hw:CODEC,0 -C 2 -F 821

Reproduction Rate Low, less than 10%.

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: {sof-lnl-rt711-l0-rt1316-l23-rt714-l1.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {LNL-SDW w/ Gen4.1 AIOC base board}

wav-file.gz

cc:

  • thesofproject/linux#5076

keqiaozhang avatar Jan 29 '24 06:01 keqiaozhang

probably the same as https://github.com/thesofproject/linux/issues/4754, it's not worth investigating audio quality issues until fw-based aggregation is merged in firmware and kernel

plbossart avatar Jan 29 '24 13:01 plbossart

probably the same as thesofproject/linux#4754, it's not worth investigating audio quality issues until fw-based aggregation is merged in firmware and kernel

Ok, lets wait until aggregation is fully ready. I've put in v2.10 for the moment, can be moved to v2.9 if needed.

lgirdwood avatar Jan 31 '24 15:01 lgirdwood