All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
To: wqy <qianywu@gmail.com>, linux-sound@vger.kernel.org
Cc: alsa-devel@alsa-project.org, Bard Liao <yung-chuan.liao@linux.intel.com>
Subject: Re: [BUG] sof_sdw Xiaomi Book Pro 14 TM2424 speakers randomly silent - SoundWire link 3 rt721+rt1320 bus clash
Date: Mon, 23 Nov 2026 10:11:35 +0100	[thread overview]
Message-ID: <a965bf35-5735-4ff4-90f5-9a85edf42a98@linux.dev> (raw)
In-Reply-To: <59a8eaf5-d406-4996-8834-e45a8c45516f@gmail.com>

On 11/23/26 07:37, wqy wrote:
> [BUG] sof_sdw: Xiaomi Book Pro 14 (TM2424, PTL) internal speakers randomly
>  go silent; SoundWire link 3 rt721+rt1320 reports bus clash / parity error
> 
> TL;DR
> -----
> Internal speakers on the Xiaomi Book Pro 14 2026 (TM2424, Panther Lake)
> randomly stop producing sound while PipeWire still reports RUNNING and
> the mixer state is untouched. dmesg shows Bus clash / Parity error on
> SoundWire link 3 (RT721 + RT1320). A card profile toggle (bus reset)
> restores audio without a reboot. No board match entry or DMI quirk
> exists for this machine, so the generic machine driver with function
> topologies is used.
> 
> Environment
> -----------
>   Machine   : XIAOMI Xiaomi Book Pro 14, board TM2424 V14E1,
>               SKU TM2424-77079
>   BIOS      : XMAPT4B0P0A0A (2026-06-17)
>   CPU       : Intel Core Ultra X7 358H (Panther Lake)
>   Audio PCI : 8086:e428
>   Kernel    : 7.3.5-2-cachyos (distro build, no external audio patches)
>   Userspace : PipeWire 1.6.11, WirePlumber, alsa-ucm-conf
>   Codecs link 3: 025d:0721:01 RT721, 025d:1320:01 RT1320
> 
> Boot log:
> 
>   sof-audio-pci-intel-ptl 0000:00:1f.3: No SoundWire machine driver found
>     for the ACPI-reported configuration:
>   sof-audio-pci-intel-ptl 0000:00:1f.3: link 3 mfg_id 0x025d part_id 0x0721
>     version 0x3
>   sof-audio-pci-intel-ptl 0000:00:1f.3: link 3 mfg_id 0x025d part_id 0x1320
>     version 0x3
>   sof-audio-pci-intel-ptl 0000:00:1f.3: Use SoundWire default machine driver
>     with function topologies
> 
> Loaded topologies: sof-sdca-jack-id0.tplg, sof-sdca-mic-id4.tplg,
> sof-sdca-1amp-id2.tplg.
> 
> Symptom
> -------
> Playback to the internal speakers works after boot, then at some point
> stops producing sound. Userspace sees nothing wrong:
> 
>   pactl:  State: RUNNING, Mute: no, volume 70%
>   amixer: 'Speaker' [on], 'rt1320-1 FU21' 87/87 (100%)
> 
> aplay / speaker-test also open the PCM and "play" without error.
> 
> Recovery (no reboot)
> --------------------
>   pactl set-card-profile alsa_card.pci-0000_00_1f.3-platform-sof_sdw off
>   sleep 1
>   pactl set-card-profile alsa_card.pci-0000_00_1f.3-platform-sof_sdw HiFi
> 
> Sound comes back immediately and no further link errors are logged. This
> is consistent with the bus reset described in
> Documentation/driver-api/soundwire/error_handling.rst ("after a number
> of such errors are detected the bus might be reset").
> 
> dmesg around the failure
> ------------------------
> Suspend/resume in the same boot: 01:46, 01:48, 01:50, 01:51, 10:28,
> 15:35, 20:27, 20:42.
> 
>   Nov 22 17:55:48 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 17:55:48 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 17:55:48 rt1320-sdca sdw:0:3:025d:1320:01: Bus clash detected
>   Nov 22 18:00:06 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 18:00:06 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 18:11:10 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 18:11:10 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 18:19:36 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 18:19:36 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 20:42:15 rt721-sdca sdw:0:3:025d:0721:01: Bus clash detected before
>     INT mask is enabled
>   Nov 22 22:01:22 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 22:05:50 soundwire_intel.link.3: Parity error
>   Nov 22 22:05:50 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 22:05:50 soundwire_intel.link.3: Bus clash for data word
>   Nov 22 22:05:50 rt721-sdca sdw:0:3:025d:0721:01: Parity error detected
>   Nov 22 22:09:50 soundwire_intel.link.3: Bus clash for control word
>   Nov 22 22:09:50 soundwire_intel.link.3: Bus clash for data word

best to file an issue here: https://github.com/thesofproject/linux/issues

This bus clash is a low-level electrical issue, so either the hardware
timings are borderline or the initialization sequence isn't done right.

> Notes:
> - The clashes at 17:55-18:19 have no suspend nearby, so this is not only
>   a resume path problem.
> - 20:42:15 is the resume instant; that one matches the known spurious
>   "clash before INT mask is enabled" pattern.
> - At 22:05 / 22:09 both master and slave report errors, i.e. actual data
>   word corruption on the wire.
> 
> Extra observation: -61 on the RT721 endpoints after the bus reset
> ----------------------------------------------------------------
> Right after re-initialising the card, the speaker path comes back but
> the jack/mic endpoints fail with -ENODEV:
> 
>   rt721-sdca sdw:0:3:025d:0721:01: ASoC error (-61): at
>     snd_soc_pcm_component_pm_runtime_get() on sdw:0:3:025d:0721:01
>    SDW3-Playback-SimpleJack: ASoC error (-61): at __soc_pcm_open()
>    Jack Out: ASoC error (-61): at dpcm_be_dai_startup()
>    SDW3-Capture-SmartMic: ASoC error (-61): at __soc_pcm_open()
> 
> Runtime PM state of link 3
> --------------------------
>   sdw:0:3:025d:0721:01: control=auto status=suspended
>   sdw:0:3:025d:1320:01: control=auto status=suspended
> 
> Both peripherals autosuspend (SoundWire clock stop) when idle; the
> silence occurs on the idle -> streaming transition.
> 
> Why I think it is not a hardware fault
> --------------------------------------
> - The same RT1320 plays fine right after a bus reset, no reboot, same
>   mixer values.
> - Both peripherals stay Attached; their controls remain readable.
> - No error is surfaced to userspace, which is the main annoyance.
> 
> Related reports on other PTL machines (same codec family, generic fallback)
> --------------------------------------------------------------------------
> - Lenovo Yoga Slim 7i 14IPH11 (83QM): rt721 + rt1320 on link 3, a ghost
>   RT722 in ACPI makes the default machine driver misbuild the card, -61
>   and silence; DMI quirk proposed (ptl_sdw_rt721_l3_rt1320_l3, and the
>   ghost must be dropped).
> - MSI Prestige 16 AI+ C3MG: RT1320 + RT713, silent internal speakers with
>   the generic fallback.
> - Surface Pro 11 (Intel): DMI quirk for a ghost RT1320.
> 
> On TM2424 there is no ghost RT722 - only 0721 and 1320 are enumerated on
> link 3 - so the Lenovo quirk does not directly apply.
> 
> Questions
> ---------
> 1. Is this a known SoundWire clock-stop/restart race on PTL with
>    RT721 + RT1320, or should TM2424 get its own soc-acpi match entry /
>    DMI quirk so the machine driver knows the two-peripheral layout?
> 2. Is -61 from snd_soc_pcm_component_pm_runtime_get() on the RT721
>    endpoints after a bus reset expected, or a second issue?
> 3. Would setting power/control = on for the link 3 peripherals be a
>    valid way to confirm the clock-stop theory? I am happy to test
>    patches, module parameters, or debugfs changes on this hardware.
> 
> Attachments
> -----------
> - alsa-info.txt     full alsa-info.sh dump
> - dmesg-audio.txt   filtered sof/sdw/rt1320/rt721 log
> - hardware.txt      DMI, kernel, lspci, aplay -l
> - card-info.txt     /proc/asound cards and pcm
> 
> Thanks,
> wqy <qianywu@gmail.com>


      reply	other threads:[~2026-11-23  9:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  6:37 [BUG] sof_sdw Xiaomi Book Pro 14 TM2424 speakers randomly silent - SoundWire link 3 rt721+rt1320 bus clash wqy
2026-11-23  9:11 ` Pierre-Louis Bossart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a965bf35-5735-4ff4-90f5-9a85edf42a98@linux.dev \
    --to=pierre-louis.bossart@linux.dev \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=qianywu@gmail.com \
    --cc=yung-chuan.liao@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.