Skip to content

[BUG][mtl-002] alsa_conformance_test: test_rates failed for both accuracy and stability on I2S interfaces #6756

@yongzhi1

Description

@yongzhi1

Describe the bug
Run alsa_conformance_test --test-suites test_rates to check whether all estimated rates are the same as what it set.
When --rate-criteria-diff-pct set to 0.05 (default is 0.01), tests pass consistently with CAVS_FW_ACE_RELEASE but failed for cSOF.

More details about the test:
https://chromium.googlesource.com/chromiumos/platform/audiotest/+/refs/heads/master/alsa_conformance_test.md#Stability-of-rate

To Reproduce

alsa_conformance_test.py -P hw:0,0  --test-suites  test_rates  --rate-criteria-diff-pct 0.05 --merge-thld-size 48

Reproduction Rate
100%

Expected behavior
alsa_conformance_test.py is a "standard" test that run on all previous platforms.

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-mtl-max98357a-rt5682, sof-mtl-nocodec.tplg,
  3. Name of the platform(s) on which the bug is observed.
    • Platform: MTL-RVP

Screenshots or console output

localhost ~ # alsa_conformance_test.py -P hw:0,0  --test-suites  test_rates  --rate-criteria-diff-pct 0.05 --merge-thld-size 48 
0 passed, 1 failed
Device Information
	Name: hw:0,0
	Card: sofrt5682 [sof-rt5682]
	Device: Headset (*) []
	Stream: PLAYBACK
	Format: ['S16_LE', 'S24_LE', 'S32_LE']
	Channels: [2]
	Rate: [48000]
	Period_size range: [24, 4096]
	Buffer_size range: [48, 16384]
Test Rates
	Set rate 48000: fail - Expected rate is 48000, measure 43024.080435000003, difference 4975.9195649999965 > threshold 24.0

Note:

With --rate-criteria-diff-pct 0.05 , threshold = 48000 * 0.05/100, expected rate is 48K, measured 43K, off by 5K.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MTLApplies to Meteor Lake platformbugSomething isn't working as expectedmtl-002Issues observed with mtl-002 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions