Skip to content

[BUG] Playback speed is 2x too slow with SoundWire link based on audio cardinal clock #8251

@plbossart

Description

@plbossart

Describe the bug

When the SoundWire link clock is configured to 12.288 or 6.144 MHz (Audio Cardinal clock as source), the playback duration is 2x longer than normal

This does not happen with 12 or 6 MHz (Audio PLL as source) or with 9.6/4.8 MHz (Xtal as source).

To Reproduce
Steps to reproduce the behavior: (e.g. list commands or actions used to reproduce the bug)

Reproduction Rate

100%

Expected behavior
playback duration is correct

Impact

showstopper

Environment

This relies on a Linux kernel change thesofproject/linux#4605 and can be seen on both MTL and LNL RVPs with RT711 on link 0

Screenshots or console output

root@jf-mtlp-rvp-sdw-2:~# time aplay -Dhw:0,0 -c2 -r48000  -fS16_LE /dev/zero -d10
Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

real	0m20.822s
git bisect start
# status: waiting for both good and bad commits
# bad: [09257fd2c9b181a8af6d4dd0a580444503c44b75] topology2: intel: bt-ssp-config: use cardinal clock as source
git bisect bad 09257fd2c9b181a8af6d4dd0a580444503c44b75
# status: waiting for good commit(s), bad commit known
# bad: [d05588e11595044d52cc42699ed9795e4a5c2705] west.yml: Update rimage revision to 4fb9fe00575b
git bisect bad d05588e11595044d52cc42699ed9795e4a5c2705
# status: waiting for good commit(s), bad commit known
# bad: [e7e500651730c77969e616f853b2db5789a24246] west.yml: update Zephyr to 3.4.99
git bisect bad e7e500651730c77969e616f853b2db5789a24246
# status: waiting for good commit(s), bad commit known
# bad: [1cc853d1e975904c24d3153b46db518b2f1578f7] Audio: SRC: Use only module API and fix IPC4 capture direction
git bisect bad 1cc853d1e975904c24d3153b46db518b2f1578f7
# status: waiting for good commit(s), bad commit known
# bad: [9632135d331f941a177840ba92fb349fc3de6a49] west.yml: upgrade zephyr to 9028ad5d71
git bisect bad 9632135d331f941a177840ba92fb349fc3de6a49
# status: waiting for good commit(s), bad commit known
# good: [7d5c3238e33d97ca2d1a0de0ea0843578c1a6749] west.yml: upgrade zephyr to e40859f7
git bisect good 7d5c3238e33d97ca2d1a0de0ea0843578c1a6749
# good: [8a1ba8e47afe00d03d6b04c872220069874632fe] cadence: register module logs in Zephyr
git bisect good 8a1ba8e47afe00d03d6b04c872220069874632fe
# bad: [b532c31f9456e7f276592266b0f12d871a31fcbd] drivers: imx: ipc: Add macro for interrupt_clear() on ARM64
git bisect bad b532c31f9456e7f276592266b0f12d871a31fcbd
# bad: [7e19dfb5faa24b9598b9a57052196328c3f8a6af] xtensa-build-zephyr.py: move one-time cmake arguments check later
git bisect bad 7e19dfb5faa24b9598b9a57052196328c3f8a6af
# good: [e5eb7dfc764e1497c6854cae3773cd10486c6760] topology2: tokens: Split the tokens for input/output pin index
git bisect good e5eb7dfc764e1497c6854cae3773cd10486c6760
# bad: [d604a3242da09391bfc3ae002119f8f5844f81c0] src: drop wrong type-casts to match cache annotations
git bisect bad d604a3242da09391bfc3ae002119f8f5844f81c0
# good: [228ecf57680ed12c9087bf6d2a02c1689936cedb] topology2: hdmi-generic: Fix audio format for DAI copier
git bisect good 228ecf57680ed12c9087bf6d2a02c1689936cedb
# bad: [6f96d0f37eaac19baa87334b99e3f7ded0e3868e] topology2: rename NUM_SDW_AMPS to NUM_SDW_AMP_LINKS
git bisect bad 6f96d0f37eaac19baa87334b99e3f7ded0e3868e
# bad: [e79b6343b89673212f9eec2efdab03a6b21617f7] host-zephyr: Fix glitches
git bisect bad e79b6343b89673212f9eec2efdab03a6b21617f7
# first bad commit: [e79b6343b89673212f9eec2efdab03a6b21617f7] host-zephyr: Fix glitches

Metadata

Metadata

Assignees

No one assigned

    Labels

    LNLApplies to Lunar Lake platformMTLApplies to Meteor Lake platformP3Low-impact bugs or featuresSDWSoundWirebugSomething isn't working as expectedstaleIssue/PR marked as stale and will be closed after 14 days if there is no activity.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions