Skip to content

[BUG] Glitches on asrc capture stress test. #2981

@jdrzaszcz

Description

@jdrzaszcz

Describe the bug
When running simultaneous capture and playback on external loopback (same SSP) with ASRC component on capture pipeline, with playback iteration >= 75, there are small gliches on capturead wave. Therefore, the THD value in the wave verification is worse than expected.

Example captered stream

Spectogram:
image

Wave:
image

Topology

                +------------------+
    +------+    | +---+  +-------+ |
    | Host |----->|Buf|->|SSP Dai|------------------+
    +------+    | +---+  +-------+ |                |
                +------------------+                |
                                                    |
                +---------------------------------+ |
    +------+    | +---+  +----+  +---+  +-------+ | |
    | Host |<-----|Buf|<-|Asrc|<-|Buf|<-|SSP Dai|<--+
    +------+    | +---+  +----+  +---+  +-------+ |
                +---------------------------------+

To Reproduce
Ru slim driver python tests from file:
test_01_asrc_simple_capture.py
e.g.
TestAsrcCapture16000Hz16b16b2ch
TestAsrcCapture48000Hz32b32b2ch
TestAsrcCapture48000Hz16b16b2ch

Reproduction Rate
30 %

Expected behavior
Captured wave shouldn't have glitches.

Environment
I check it on: WHL RVP and TGL RVP,
but as I know from CI tests, it also happens on APL and ICL

Commit: 90ddae9 on SOF master branch

Logs for WHL RVP
dma_trace_1.log

19_01_TestAsrcCapture16000Hz16b16b2ch.zip

Metadata

Metadata

Labels

Not Reproducible with DriverBug was seen using Python Slim driver but cant be reproduced using Linux driver.P2Critical bugs or normal featuresbugSomething isn't working as expecteddiagnostic driverSlim driver / diagnostic driver issuewon't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions