Skip to content

[BUG][TGL][DSM] one additional sample will be captured after playback ends #2880

@keqiaozhang

Description

@keqiaozhang

Describe the bug
This issue happens when playback ends first. From the captured wav, there's one more cycle of single is captured. After more tests, we found that this issue only happens with s32_le, no reproductions when testing with S16_LE.

For example :
To Reproduce

  1. enable DSM loopback
    Run:
    amp_enable.sh.txt
  2. run playback(only for 3 seconds ) and capture at same time.
    aplay -Dhw:0,0 -f s32_le -c 2 -r 48000 sine_48k_32bit.wav -d 3 & arecord -Dhw:0,0 -f s32_le -c 4 -r 48000 capture.wav -d 5
  3. check the wav file, form the snapshot you can see, ~16ms after playback, there's one more cycle of single is captured.

dsm-cap

Reproduction Rate
10/10

Expected behavior
no extra singles after playback

Environment
Driver: fce7f93 + thesofproject/linux#1971 + https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?h=for-next&id=914f674bec6efe42f9d6b036850a618fd1698290
Firmware:
SOF branch: tgl-005-drop-stable Commit: 277a971
TPLG: sof-tgl-max98373-rt5682.tplg

dmesg.txt
logger.txt

Metadata

Metadata

Assignees

Labels

DSMDynamic Speaker ManagementTGLApplies to Tiger LakebugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions