Skip to content

[BUG] No Audio - Built-in speakers silent on MSI Stealth 16 AI+ (Intel Panther Lake / Dual RT1320 SoundWire) #5925

Open

Description

@rjbarcon

Describe the bug:

  • No audio output from internal built-in speakers on an MSI Stealth 16 AI+ B3WH (Intel Panther Lake platform) running on Bazzite and CachyOS (Linux Distros).
  • Previously, the speakers works on Windows 11.
  • The kernel fails to find a matching SoundWire machine driver for the ACPI configuration reported by the hardware:
    • Link 2: Dual Realtek ALC1320 Smart Amps (mfg_id 0x025d, part_id 0x1320)
    • Link 3: Realtek ALC713 Headset Codec / DMIC (mfg_id 0x025d, part_id 0x0713)
      As a result, the driver falls back to default function topologies and loads intel/sof-ipc4-tplg/sof-sdca-1amp-id2.tplg. Because this loaded topology binary is configured for a single amplifier rather than the dual ALC1320 setup on this motherboard (cfg-amp:2), the physical speaker amplifiers are not driven properly, resulting in complete silence from internal speakers.

Workarounds / Diagnostics Attempted:

  • Attempted kernel arguments (snd_intel_dspcfg.dsp_driver=3, snd_sof_intel_hda_common.sof_debug=1, snd_sof_sdw.quirk=*).
  • Tested on Kernel 7.2.1-ogc4.1 (Bazzite/Fedora) and 7.3.0-rc1 (CachyOS).
  • Inspected ALSA mixer controls (alsamixer / amixer): rt1320-1 and rt1320-2 switches/terminals (OT23 L/R) are unmuted and set to 100% volume, but no sound is produced.
  • Headset 3.5mm jack works via sof-sdca-jack-id0.tplg

To Reproduce:

  1. Boot Linux (tested on kernels 7.2.1 and 7.3.0-rc1) on an MSI Stealth 16 AI+ B3WH (MS-2631).
  2. Check dmesg | grep -iE "sof|soundwire" to confirm missing machine driver entry and fallback topology loading.
  3. Select "Speaker" output device in KDE Settings / PipeWire.
  4. Play any audio file or speaker test track.
  5. Result: No sound is output from internal speakers.

Reproduction Rate:

  • 100% (All the time across cold boots, reboots, kernel versions 7.2.1 to 7.3.0-rc1, and distributions).

Expected behavior:

  • The SOF SoundWire machine driver should match the ACPI table layout for Link 2 (Dual RT1320) + Link 3 (RT713) and load a valid dual-amp SDCA topology file to drive both internal speaker amplifiers.

Impact:

  • High / Showstopper for built-in speaker playback (forces reliance on headphones/Bluetooth).

Environment:

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: 7.2.1-ogc4.1.fc44.x86_64 on Bazzite & 7.3.0-rc1-1-cachyos-rc on CachyOS
    • SOF Firmware Version: 2.14.1.1 (intel/sof-ipc4/ptl/sof-ptl.ri)
  2. Name of the topology file
    • Topology Loaded (Fallback): intel/sof-ipc4-tplg/sof-sdca-1amp-id2.tplg
    • Expected Topology: Dual-Amp topology map for Panther Lake RT1320 (Link 2) + RT713 (Link 3)
  3. Name of the platform(s) on which the bug is observed.
    • Platform: Intel Panther Lake (sof-audio-pci-intel-ptl, PCI 8086:e328)
    • System Model: MSI Stealth 16 AI+ B3WH (Board: MS-2631, BIOS: E2631IMS.10F)

Activity

  1. added
    bug
    on Sep 5, 2026
  2. bardliao commented on Sep 8, 2026

    @bardliao
    Collaborator

    There is no amp function on rt713 codec. It is correct to use sof-sdca-1amp-id2.tplg. The '1amp` means the amps are on 1 sdw bus which is your case.

  3. rjbarcon commented on Sep 8, 2026

    @rjbarcon
    Author

    Hi @bardliao and @abonislawski... I'm still investigating this issue with the help of ChatGPT 5.6 Sol.
    Pardon me as I'm a web-app developer (typescript & dotnet) and still learning how linux & low-level system works...


    @bardliao , I had originally assumed sof-sdca-1amp-id2.tplg meant there was only one physical amp, but based on the investigation I’ve been doing with help from ChatGPT 5.6 Sol, that assumption was wrong.

    From what ChatGPT found by comparing my logs with the SOF/ALSA/kernel code, 1amp here refers to the amp functions being on a single SoundWire bus. That matches this laptop: both RT1320 amps are on Link 2, while the RT713 is on Link 3 for headset/mic. So I no longer think the selected topology is the issue.

    We’ve also checked quite a bit of the speaker path already. Based on the captured logs:

    • both RT1320 devices are detected, attached and active
    • the Speaker PCM is created normally
    • during playback, DAPM reaches both amps through
    • DP1 Playback -> DP1RX -> FU21 -> PDE23 -> OT23 -> SPOL/SPOR -> Speaker
    • PDE23 reaches PS0 on both amps
    • FU21 is unmuted
    • MCU initialization looks successful
    • SOF shows the speaker backend running at 48 kHz, 2 channels, S24_LE
    • the active SoundWire master registers also show a 2-channel stream configured on Link 2

    Even with all of that, the built-in speakers are still completely silent.

    The next thing ChatGPT suggested checking is the RT1320 slave DP1 configuration while playback is active, to confirm that the stream is actually enabled correctly on the codec side as well. If that also looks correct, then the remaining problem may be further inside the RT1320 output/amp initialization path rather than in the SOF topology.

    Brief Summary

    Based on the investigation and analysis so far:

    • the two RT1320 amps are detected correctly
    • the current sof-sdca-1amp-id2.tplg selection appears to be correct
    • ALSA and SOF create and run the speaker path
    • both RT1320 DAPM paths power up correctly
    • the amps reach PS0 and are not muted
    • the SoundWire master shows a valid 48 kHz stereo stream
    • the speakers are still silent
  4. bardliao commented on Sep 8, 2026

    @bardliao
    Collaborator

    Can you share the alsa-info output?

  5. rjbarcon commented on Sep 8, 2026

    @rjbarcon
    Author

    Can you share the alsa-info output?

    @bardliao this is the output from sudo alsa-info.sh --no-upload

  6. rjbarcon commented on Sep 9, 2026

    @rjbarcon
    Author

    @bardliao @abonislawski

    I did some additional investigation using the official MSI Windows 11 audio drivers for this laptop, with help from ChatGPT 5.6 Sol. The Realtek SDCA package gave us several useful clues that may help narrow down the Linux side.

    References: (MSI Stealth 16 Windows 11 Drivers)

    What the Windows drivers confirm

    The Realtek INF files describe the same SoundWire topology that Linux detects:

    SoundWire link Device UID Role
    Link 2 RT1320 0 Smart amplifier
    Link 2 RT1320 1 Smart amplifier
    Link 3 RT713 0 Codec / headset / mic

    This confirms that both RT1320 amplifiers are on the same SoundWire amp bus. So the sof-sdca-1amp-id2.tplg naming does not mean that only one physical RT1320 is being handled.

    The more interesting part is the Realtek Windows driver itself. RtkSdcaXu.sys contains references to RT1320-specific functionality such as:

    AMP_HWInit
    AMP_StreamRun
    SmartAmpCalibrationData
    ALC1320 R0 calibration
    ALC1320 firmware/preset files
    MSI-specific firmware/configuration paths
    

    The package also installs:

    RTKDAT_1462.dat
    RTKDAT_GENERAL.dat
    

    and contains MSI/subsystem-specific configuration lookups.

    This suggests that Windows performs additional Realtek/MSI-specific amplifier initialization, firmware/preset loading and calibration beyond basic SoundWire enumeration.

    How this helps the Linux investigation

    On Linux we have already confirmed most of the upstream path:

    Stage Status
    SOF DSP ✅ Working
    Speaker pipeline ✅ Working
    SoundWire Link 2 ✅ Active
    RT1320 #0 ✅ Detected/bound
    RT1320 #1 ✅ Detected/bound
    RT1320 power state ✅ PS0
    FU21 ✅ Unmuted
    Intel SoundWire master stream ✅ Active
    Speakers ❌ Silent

    The Linux RT1320 driver also supports machine-specific DSP/RAE data:

    rt1320_<vendor>_<product>_<sku>.dat
    rt1320_RAE_<vendor>_<product>_<sku>.dat
    

    Those machine-specific files are currently not available for this laptop.

    The Windows driver findings therefore strengthen the possibility that the remaining issue is inside the RT1320 initialization/DSP/output stage, rather than the SOF topology or Intel SoundWire transport.

    Updated working root-cause ranking

    These are still hypotheses, not conclusions:

    Hypothesis Current assessment
    sof-sdca-1amp only handles one physical RT1320 ❌ Effectively ruled out
    Missing Panther Lake machine match 🟢 Low probability
    Intel SST / SoundWire master transport failure 🟢 Low probability
    RT1320 slave DP1 not receiving the stream 🟠 Still needs verification
    Generic RT1320 initialization insufficient for this MSI 🔴 Strong candidate
    Missing machine-specific RT1320 DSP firmware 🔴 Strong candidate
    Missing RAE / calibration / amp coefficients 🔴 Strong candidate
    RT1320 internal DSP / Class-D not reaching the correct state 🔴 Very strong candidate
    Nahimic/APO absence 🟢 Unlikely to explain complete silence

    So the current suspected boundary is roughly:

    SOF / ALSA
       ↓ ✅
    Intel DSP
       ↓ ✅
    SoundWire master
       ↓ ✅
    RT1320 devices
       ↓ ✅
    RT1320 slave DP1
       ↓ needs verification
    RT1320 DSP / firmware / calibration / Class-D init
       ↓ suspected
    Speakers
       ❌
    

    Next steps

    1. Verify DP1 stream state on both RT1320 SoundWire slaves during playback.
    2. Capture kernel logs while testing the RT1320 DSP FW Update and RAE Update controls.
    3. Confirm the exact firmware filenames requested by the Linux RT1320 driver.
    4. Identify the exact MSI subsystem ID used by this B3WH under Windows.
    5. Compare the matching Windows Realtek configuration/initialization path with what upstream rt1320-sdw currently performs.

    The Windows drivers do not directly provide a Linux fix, but they give us a useful reference implementation and point the investigation more strongly toward machine-specific RT1320 initialization, DSP firmware, RAE/calibration, or the final Class-D output state.

  7. bardliao commented on Sep 9, 2026

    @bardliao
    Collaborator

    @rjbarcon I can't find any issue from the alsa-info. How did you test the speaker? Can you try aplay -Dhw:2,2 xxx.wav -vv?

  8. rjbarcon commented on Sep 9, 2026

    @rjbarcon
    Author

    @bardliao These are the tests that I have done via terminal:

    Test 1:

    $ aplay -Dhw:2,2 xxx.wav -vv
    
    ALSA lib confmisc.c:165:(snd_config_get_card) [error.core] Cannot get card index for 2
    aplay: main:850: audio open error: No such file or directory
    

    Test 2: (No sound from the built-in speaker)

    I have to stop the wireplumber & pipewire before running speaker-test
    For it shows an error message: Playback open error: -16,Device or resource busy

    $ speaker-test -D plughw:CARD=sofsoundwire,DEV=2 -c 2 -r 48000 -t sine -f 440 -l 1
    
    speaker-test 1.2.16
    Playback device is plughw:CARD=sofsoundwire,DEV=2
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Sine wave rate is 440.0000Hz
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 768 to 1048576
    Period size range from 384 to 524288
    Periods = 4
    was set period_size = 12000
    was set buffer_size = 48000
     0 - Front Left
     1 - Front Right
    Time per period = 5.002615
    

    Test 3: (No sound from the built-in speaker)

    Speaker test via KDE Sound System Settings (see attached image below):

    KDE Sound System
    Image

    Test 4: (No sound from the built-in speaker)

    Via browser (youtube, etc.) & played local music files - still no sound on speaker
    Reference of this music file: https://upload.wikimedia.org/wikipedia/en/5/55/EastEnders_Theme.ogg

    Local File (ogg file)
    Image

    Test 5: (Headphone 3.5mm works)

    Note that the 3.5mm port (Headphone) is working (connected to my external speakers)

    Headphone Test
    Image
  9. bardliao commented on Sep 9, 2026

    @bardliao
    Collaborator

    @bardliao These are the tests that I have done via terminal:

    Test 1:

    $ aplay -Dhw:2,2 xxx.wav -vv
    
    ALSA lib confmisc.c:165:(snd_config_get_card) [error.core] Cannot get card index for 2
    aplay: main:850: audio open error: No such file or directory
    

    Not sure why Cannot get card index for 2. From the alsa-info, the sofsoundwire card index is 2. But anyway, it should have the same result as speaker-test -D plughw:CARD=sofsoundwire. This is not likely the SOF issue as the headphone works fine. @jack-cy-yu Can you take a look?

  10. jack-cy-yu commented on Sep 9, 2026

    @jack-cy-yu

    @rjbarcon
    Could you help dump "/proc/asound/pcm" and the register info in below path
    "/sys/kernel/debug/regmap//registers", please make sure to dump register during playback.

  11. rjbarcon commented on Sep 9, 2026

    @rjbarcon
    Author

    @jack-cy-yu

    First I ran speaker-test (this test continue while doing other commands below):

    $ speaker-test -D plughw:CARD=sofsoundwire -c 2 -t sine
    
    speaker-test 1.2.16
    Playback device is plughw:CARD=sofsoundwire
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Sine wave rate is 440.0000Hz
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 768 to 1048576
    Period size range from 384 to 524288
    Periods = 4
    was set period_size = 12000
    was set buffer_size = 48000
     0 - Front Left
     1 - Front Right
    Time per period = 5.000392
     0 - Front Left
     1 - Front Right
    Time per period = 5.999683
     0 - Front Left
     1 - Front Right
    ...
    

    Then I run these commands on another terminal:

    $ cat /proc/asound/pcm
    
    00-03: HDMI 0 : HDMI 0 : playback 1
    00-07: HDMI 1 : HDMI 1 : playback 1
    00-08: HDMI 2 : HDMI 2 : playback 1
    00-09: HDMI 3 : HDMI 3 : playback 1
    01-00: Jack Out (*) :  : playback 1
    01-01: Jack In (*) :  : capture 1
    01-02: Speaker (*) :  : playback 1
    01-04: Microphone (*) :  : capture 1
    01-05: HDMI1 (*) : HDMI 1 : playback 1
    01-06: HDMI2 (*) : HDMI 2 : playback 1
    01-07: HDMI3 (*) : HDMI 3 : playback 1
    01-31: Deepbuffer Jack Out (*) :  : playback 1
    
    $ sudo find /sys/kernel/debug/regmap \
        -type f -name registers -print |
        sort |
        tee regmap-register-files.txt
    
    /sys/kernel/debug/regmap/17-0050/registers
    /sys/kernel/debug/regmap/17-0052/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0-sdw-mbq/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1-sdw-mbq/registers
    /sys/kernel/debug/regmap/sdw:0:3:025d:0713:01/registers
    /sys/kernel/debug/regmap/sdw:0:3:025d:0713:01-sdw-mbq/registers
    

    I put the output in this text file below because the text was too long (844990 lines)

    $ sudo find /sys/kernel/debug/regmap \
        -type f -name registers -print0 |
        sort -z |
        while IFS= read -r -d '' f; do
            echo
            echo "===== $f ====="
            sudo cat "$f"
        done |
        tee regmap-registers-during-playback.txt
    

    kernel-regmap.txt

  12. rjbarcon commented on Sep 9, 2026

    @rjbarcon
    Author

    @jack-cy-yu @bardliao

    By the way, I watched this youtuber Just Josh and he experienced the same issue as mine (speaker does not work)

  13. jack-cy-yu commented on Sep 10, 2026

    @jack-cy-yu

    @rjbarcon

    1. Could you also share the dmesg log (from device boot to playback)? I'd want to check if there's any error message during playback, and from the PCM info dump, the command for playback should be "aplay -Dhw:1,2 xxx.wav -vv".
    2. Please follow below steps and share the dapm status dump,
    • Start playback
    • go to /sys/kernel/debug/asoc/platform_name/sdw_addr/dapm
    • use command “grep On –r .”, “grep Off –r .”, “cat *” separately and dump dapm status
    • go to /sys/kernel/debug/asoc/platform_name/dapm
    • use command “grep On –r .”, “grep Off –r .”, “cat *” separately and dump dapm status
    • Stop playback
  14. jack-cy-yu commented on Sep 10, 2026

    @jack-cy-yu

    @rjbarcon
    And for register dump, please dump only
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0-sdw-mbq/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1-sdw-mbq/registers

    From your previous reg log, it seems you weren't dumping registers during playback, because a lot of registers are "XX".

  15. 10 remaining items

  16. jack-cy-yu commented on Oct 14, 2026

    @jack-cy-yu

    @rjbarcon

    Thanks a lot for the detailed testing and the diagnostic patch. This is very helpful.

    Your result suggests that the issue may not be limited to the 7.2 first-attach behavior. Whenever the Linux preset is applied, the speakers are silent (cold boot, Windows warm restart → 7.2 default, and Windows warm restart → 7.2 + reset patch). When the preset is skipped and the state left by Windows is preserved, the speakers work. So we suspect the preset sequence/table itself may not be correct for this platform, and preserve_initialization should be treated as a temporary workaround rather than the final fix.

    To narrow this down, could you please collect the following?

    1. RT1320 init: log lines from your diagnostic patch

    Please capture the dev_info output for both amps in these three scenarios:

    1. Cold boot
    2. Windows warm restart → Linux 7.2.x with preserve_initialization=0
    3. Windows warm restart → Linux 7.2.x with preserve_initialization=1

    e.g. dmesg | grep "RT1320 init"

    We are mainly interested in status (whether it is 0x0 after a Windows warm restart and whether the needs-initialization bit is set on cold boot) and version.

    For a reliable cold boot, please:

    1. Shut down
    2. Unplug the AC adapter
    3. Wait at least 30 seconds
    4. Power on

    (With AC connected, the amplifier power rails may stay on during shutdown, so it may not be a true power-on reset.)

    2. Register dumps during playback

    Please dump the registers while audio is playing (e.g. with speaker-test running in another terminal), in two states:

    • Good state: Windows warm restart → Linux 7.2.x with preserve_initialization=1
    • Bad state: cold boot

    Nodes:

    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0-sdw-mbq/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1/registers
    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1-sdw-mbq/registers

    The diff between the good and bad dumps should show which registers are set by Windows but not set, or set differently, by the Linux preset. That will be the most direct clue for fixing the initialization sequence.

    Thanks!

  17. jack-cy-yu commented on Oct 14, 2026

    @jack-cy-yu

    @rjbarcon

    Another user with a similar MSI Panther Lake laptop reported above that the speakers work once the preset is applied on the first init and the MCU patch is loaded on both amps:

    rt1320_load_mcu_patch: MCU patch realtek/rt1320/rt1320-patch-code-vc.bin loaded, 15232 bytes

    Since 7.2 already applies the preset on the first init, we would like to check whether the MCU patch is actually loaded on your machine. If the preset is applied but the MCU patch fails to load, that could explain why 7.2 stays silent while preserve_initialization=1 (which keeps the state left by Windows) works.

    Could you please check the following on Linux 7.2.x without preserve_initialization, after a cold boot (shut down, unplug AC, wait 30+ seconds, power on)?

    1. Whether the firmware file exists:

      ls -l /lib/firmware/realtek/rt1320/

    2. Whether there are any RT1320 or firmware loading messages/errors (e.g. Direct firmware load ... failed with error -2):

      dmesg | grep -iE "rt1320|firmware"

    3. The RT1320 init: line from your diagnostic patch for both amps, so we can compare status and version with the Prestige 14 (status=0x41, version_id=2):

      dmesg | grep "RT1320 init"

    Note: the "loaded, 15232 bytes" message above may come from the other user's own debug prints, so you may not see a success message with the stock driver. A missing firmware file or a load error is what we are looking for.

    Thanks!

  18. bardliao commented on Oct 15, 2026

    @bardliao
    Collaborator

    Nodes:

    /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0/registers /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:0-sdw-mbq/registers /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1/registers /sys/kernel/debug/regmap/sdw:0:2:025d:1320:01:1-sdw-mbq/registers

    The diff between the good and bad dumps should show which registers are set by Windows but not set, or set differently, by the Linux preset. That will be the most direct clue for fixing the initialization sequence.

    Thanks!

    I don't think the regdump is reliable. You need to do echo 1 > cache_bypass to bypass the cache first. Because if the codec is not reset properly, the cache value will not be aligned with the HW value.

  19. rjbarcon commented on Oct 24, 2026

    @rjbarcon
    Author

    Got it @bardliao @jack-cy-yu ongoing testing this weekend

  20. rjbarcon commented on Oct 29, 2026

    @rjbarcon
    Author

    RT1320 A/B/C Diagnostic Results

    Hi @jack-cy-yu @bardliao

    I've completed the requested tests using my patched 7.3.0.4-cachyos-custom kernel.

    Test Boot Sequence preserve_initialization Preset Speakers
    A Cold boot → Linux 0 Applied Silent
    B Windows 11 → Restart → Linux 0 Applied Silent
    C Windows 11 → Restart → Linux 1 Skipped Working

    Key findings:

    • Both RT1320 amplifiers report id=0x6981, version=2.
    • Test A: Initial amp_func_status=0x61; preset applied on both amplifiers.
    • Test B: Initial amp_func_status=0x41; preset still applied on both amplifiers. Amplifier 1 also reports rt1320_pde_transition_delay PDE to PS0 is NOT ready.
    • Test C: Initial amp_func_status=0x41; preset skipped on both amplifiers, and the speakers work.
    • Tests A and C: Captured all four regmaps (regular and MBQ for both amplifiers) during active speaker-test playback, with cache_only=N and cache_bypass=Y.
    • Comparing A and C reveals substantial register-state differences, including registers affected by the Linux preset.
    • The RT1320 VC firmware file is present, but the available logs do not conclusively verify successful MCU patch loading.

    Observation:

    • The results suggest that applying the Linux RT1320 preset may disrupt the working state initialized by Windows.
    • Preserving that state allows the speakers to function. The exact root cause remains unconfirmed.

    I've attached the diagnostic logs and register dumps for comparison.
    Could you please review the findings and advise on the next steps, particularly regarding preset initialization, MCU patch loading, and power-state transitions? Thank you!

    Test Detailed Logs
    A TestA_ColdBootLinux_PreseverInit_0.txt
    B TestB_Win11ToLinux_PreserveInit_0.txt
    C TestC_Win11ToLinux_PreserveInit_1.txt
  21. rjbarcon commented on Nov 5, 2026

    @rjbarcon
    Author

    MS-2631 RT1320 DSP initialization research

    Source patch attached (BUILD-ONLY; NOT HARDWARE-TESTED)


    Hi @jack-cy-yu @bardliao,

    While waiting for your feedback on my previously posted A/B/C diagnostic results, I investigated the difference between the silent cold-boot state and the working Windows-initialized state further. I am attaching the actual experimental source patch and its supporting review files.

    Additional observation: Both amplifiers showed these A/C register differences during the earlier captures:

    Register A: cold Linux / silent C: Windows → Linux, preset skipped / working
    0xC081 0xFE 0xFC
    0xC5C3 0xF2 0xF3
    0xC5C8 0x03 0x05
    0xC598 0x04 0x00

    The working values for the first three registers also appear in rt1320_dspfw_load_code(). This suggests investigating the advanced-DSP initialization path as well as the existing preset and MCU patch, but it does not establish the root cause.

    • What I prepared: ms2631-dsp-experimental.patch is a research prototype for the MSI MS-2631 (dual RT1320 VC, UIDs 0/1). It explores a per-UID DSP image and AFX/RTLSM command sequence inferred from offline analysis of the MSI Windows driver. It also contains the already-discussed preserve_initialization workaround and some shared driver helper/error-handling changes.

    • Actual validation: I built 7.3.1.1-cachyos-test1 (linux-cachyos-test1, CachyOS 7.3.1) with this exact patch. The RT1320 module compiled, and the kernel and headers packages were generated. The patch SHA-256 is 161528a17990301056758f24caab8f9dcfc0316f5e07dab3db5f6220fa4d38b0.

    • I have NOT installed or booted this kernel, installed the generated experimental firmware, enabled the test flag, or issued any commands to the amplifier. This is due to I may messed up the RT1320 firmware or may damage both the hardware (chip & speaker).

    • Safety concern: Although the new DSP test flag defaults to disabled and there are board/chip/UID checks, I have NOT verified the transfer protocol, command acknowledgment, speaker-specific R0/T0 calibration, protection limits, or failure recovery. This is not a verified fix or a patch ready for hardware testing/upstream merging.

    • Attached: MS2631_RT1320_maintainer_review_SANITIZED.zip, containing the unchanged patch, README, mocked helper tests, a redacted offline firmware-preparation script, and build summary. The prior A/B/C logs are already linked above in this issue.

    Could you please review the approach and advise whether the RT1320 advanced DSP path is relevant here, what supported firmware/command format and speaker-protection checks are expected, and whether you would prefer a smaller diagnostics-only patch before any hardware execution? So that I may install this test patch I've been working on.

    Thank you for your help.

    Test Patch: MS2631_RT1320.zip

  22. jack-cy-yu commented on Nov 5, 2026

    @jack-cy-yu

    @rjbarcon

    Could you add this in rt1320_vc_blind_write[] and try again?

    static const struct reg_sequence rt1320_vc_blind_write[] = {

    •    { 0xc000, 0x03 },
      
      { 0xc003, 0xe0 },
      { 0xe80a, 0x01 },
      { 0xc5c3, 0xf2 },
      ...
      };
  23. MingKangLin commented on Nov 5, 2026

    @MingKangLin

    Hi @rjbarcon
    I’m providing the ENC Dump Tool. Please play an audio file in Windows and capture a dump log under each of the following conditions:

    1. Audio output works normally(Pass)
    2. No audio output(Fail)
      Please send us the two generated .bin files, and include “Pass” or “Fail” in each filename so we can identify and compare the logs.

    EncDumpTool.zip

  24. rjbarcon commented on Nov 8, 2026

    @rjbarcon
    Author

    RT1320 VC – 0xC000 = 0x03 Patch Test Results

    Hi @jack-cy-yu, @bardliao

    I built and tested your suggested change to rt1320_vc_blind_write[]:

    { 0xc000, 0x03 },
    { 0xc003, 0xe0 },

    Kernel: 7.3.3.1-cachyos-rt1320vc03 (CachyOS Linux 7.3.3)

    Cold-boot result: Unfortunately, the built-in speakers are still silent.

    Verification:

    • The custom kernel boots successfully, and snd_soc_rt1320_sdw is loaded.
    • Both RT1320 VC amplifiers (0x6981, version 2) are enumerated.
    • Intel SOF firmware 2.15.0.1 boots successfully.
    • ALSA exposes the speaker playback device, and PipeWire selects the internal speaker sink.
    • The RT1320 VC MCU firmware file exists. However, successful MCU patch loading is not conclusively verified by the available logs.

    Register observations:

    • Both amplifiers read back 0xC000 = 0x00 after initialization, despite the added 0x03 write.
    • Both still show the previously observed silent-state values: 0xC081=0xFE, 0xC5C3=0xF2, 0xC5C8=0x03, 0xC598=0x04.
    • The hardware register dumps were collected during playback with cache_only=N and cache_bypass=Y. Cache bypass was restored afterward.

    Attached Files

    The kernel also reports that no machine driver matches the ACPI SoundWire configuration and falls back to the default function topologies. Let me know what should I check or do next.

    Thank you for your continued assistance.

  25. jack-cy-yu commented on Nov 9, 2026

    @jack-cy-yu

    @rjbarcon
    Could you help to dump log by using what @MingKangLin provided?
    Thanks!

  26. MatthewLeeCode commented on Nov 11, 2026

    @MatthewLeeCode

    Note: The following is done with Fable 5.2, including the description and the fix. I don't know how to do this shit but I wanted my speakers working and they are now. Do with this info what you will.

    I have the built-in speakers working on a Stealth 16 AI+ from a cold boot, with no Windows boot involved. Sharing what it took, since several of the pieces look like things that should be fixed upstream. This is one unit and a proof-of-concept patch, not something ready to merge.

    Machine: MSI Stealth 16 AI+ B3WI, board MS-2631, BIOS E2631IMS.112, SSID 1462:14E7, 2x RT1320 VC on link 2 (UID 0/1), RT713 on link 3. Ubuntu kernel 7.0.0-43, SOF 2.14.1.1, alsa-ucm-conf 1.2.15.3.

    What made it work

    1. Apply the SDCA function initialization table from ACPI instead of rt1320_vc_blind_write[].
      The BIOS carries a mipi-sdca-function-initialization-table for each SmartAmp function: 5,643 address/value writes per amp. It has the same skeleton as the Linux blind-write table, but differs:

      • its own MCU patch at 0x10007000 (2,724 bytes), not rt1320-patch-code-vc.bin
      • 0xc570=0x0b (Linux 0x08), 0xd471=0xba/0xbb (0x3a), 0xdb03/05/07/19=0x00 (0xf0/0x45/0x5a/0x02), 0xdb08=0x7f (0x7a), 0xdd08..0b=0x0e07 (0x0dff), 0xe80a=0x00 (0x01), no 0xc598 write
      • about 2,000 RAE coefficient writes at 0xe000.., and a 0x1000d000.. block
      • 251 entries differ between the two amps

      These are the values in the "working" TestC dump posted above. I apply the table in order, wait for 0x1000f021 == 0x1f and request PDE23 PS0 before the first 0x1000xxxx write after 0xd486=0x43 (as the blind-write path does), then PS3 at the end. After this 0xc560 reads 0x18 and the MCU reports ready on both amps.

    2. Program the PLL the way the Windows driver does before loading firmware: 0xc901=0x09, 0xc900=0xd0, 0xce44=0x1c. TestC shows these values too. I have not tested whether this is required on its own.

    3. Load the DSP firmware per amplifier. For SSID 14E7 the Windows package has a separate set per unique ID. The four RAM-code images are identical; the three parameter blobs differ. rt1320_dspfw_load_code() only knows one DMI-derived file name, so I added a ...-<unique_id>.dat name tried first. Layout that works with the existing loader (64-byte AFX headers left on, the loader strips them):

      • RAM code at 0x3fc000c0, 0x3fc29d80, 0x3fe00000, 0x3fe02000
      • AFX0 parameters at 0x3fc2ab80, AFX1 at 0x3fc2b780, RTLSM at 0x3fc252e0

      The three code sections match the TestC RAM dump byte for byte, per amp. With firmware running, both amps show the TestC state during playback: 0xc560=0x1b, 0x3fc2bfc0=0x0f, 0x3fc2bfc4=0x07 (UID 0) / 0x05 (UID 1), 0xf01e=0x00.

    4. Do not use BRA for the download on this platform. sdw_bpt_send_sync() times out (hda_sdw_bpt_wait: SDW BPT TX DMA did not complete: 0), but returns 0, so rt1320 believes the firmware was written. In intel_ace2x_bpt_wait() the -ETIMEDOUT from hda_sdw_bpt_wait() is overwritten by the return value of sdw_disable_stream(). I download with sdw_nwrite_no_pm() in 512-byte chunks instead; about 2 s per amp.

    5. Hold a runtime PM reference for the whole load. rt1320_dspfw_load_put() only calls pm_runtime_resume(). After the 3 s BPT timeout, rt1320_data_rw() resets the autosuspend delay, the device suspends mid-load with cache bypass still on (WARNING ... regcache_cache_only), and the remaining writes go to the cache.

    6. Hold the DSP stopped while writing (0xf01e bit 0 = 1, clear 0x3fc2bfc4) and only trust "already running" if the mailbox at 0x3fc2ab81 is idle. After the failed BRA download and a second load attempt on top of it, both amps returned 0xad for every vendor register, including the device ID, until power was removed (shutdown with the charger unplugged). I believe the cause was the half-loaded state, but did not isolate it.

    7. Channel routing. UCM rt1320.conf sets "L,L" / "R,R" for two amps. On this machine each amp drives a left and a right output: UID 0 is full range, UID 1 only has output from about 1 kHz up (tweeters, by measurement). With the UCM setting the main speakers only get the left channel and the right channel only reaches the tweeters. Both amps need "L,R".

    Not verified

    • Whether the DSP firmware is strictly required once the ACPI table is applied. My one test without it had the OT23 switches off, so it proves nothing.
    • Which of items 1 and 2 is individually necessary.
    • System suspend/resume.
    • R0 calibration. There is no SmartAmpCalibrationData UEFI variable on this unit. The driver's "R0 Calibration" control reads about 4 ohm on all four outputs; I have not loaded those values.
    • Anything on the B3WH or other SKUs.

    Questions for the maintainers

    • Should rt1320-sdw apply the ACPI initialization table when one is present, at least for VC parts on newer platforms?
    • Can per-unique-ID DSP firmware naming be supported, and can Realtek/MSI publish the 14E7 files to linux-firmware?
    • The intel_ace2x_bpt_wait() return value and the missing PM reference look like bugs independent of this laptop.
    • UCM needs a way to say "two amps, each stereo".

    Patch and firmware

    The proof-of-concept patch against v7.0 (DMI-quirked to MS-2631, still contains bring-up debug controls) and the script that packs the firmware container are here: https://gist.github.com/MatthewLeeCode/16e931423ee8bb6b3d3b52375334cf89

    I am not attaching firmware. The per-amp files are the 0x14\0x14E7\0x0200 and 0x0201 sets inside RTKDAT_1462.dat in MSI's RtkSdcaXu-v337 package (the same package linked earlier in this thread); they are MSI/Realtek's to publish. The ACPI table is already on the machine.

  27. jack-cy-yu commented on Nov 12, 2026

    @jack-cy-yu

    Thanks @MatthewLeeCode for providing the patch.
    I've updated the patch to tailor it for bypass-DSP initial settings, as DSP mode is not supported on the MSI Stealth 16 AI+.
    @rjbarcon Could you try it on your device?

    0001-ASoC-rt1320-sdw-use-ACPI-SDCA-init-table-on-MSI-MS-2.patch

  28. rjbarcon commented on Nov 12, 2026

    @rjbarcon
    Author

    RT1320 Speaker Issue Resolved – MSI Stealth 16 AI+ (MS-2631)

    Great news! My internal speakers are now working using a custom kernel patch adapted from @MatthewLeeCode's implementation. Thank you to everyone involved in investigating this issue!

    Test Environment

    • Laptop: MSI Stealth 16 AI+ B3WH (MS-2631)
    • OS: CachyOS
    • Kernel: 7.3.4.1-cachyos-alpha
    • SOF firmware: 2.15.0.1

    Key Findings

    • Both RT1320 amplifiers successfully applied their ACPI initialization tables (5,643 writes each).
    • The driver confirmed MS-2631 ACPI preset and PLL applied for both amplifiers.
    • Both external DSP firmware .dat files were unavailable (-2), but the driver retained the amplifier presets.
    • The internal speakers produced audio successfully without the preserve_initialization parameter.

    These results suggest that the board-specific ACPI initialization and PLL configuration contribute to restoring speaker functionality without requiring external DSP firmware files. However, the exact changes responsible have not yet been isolated.


    I have refined the patch with GPT 6.1 Sol. Kindly take a look below:

    Thanks again to @jack-cy-yu @bardliao and @MatthewLeeCode for their efforts toward an upstream fix!

  29. rjbarcon commented on Nov 13, 2026

    @rjbarcon
    Author

    UPDATES: I have test these scenarios that includes both of your patches @jack-cy-yu & @MatthewLeeCode

    Test Scenarios

    Test Scenario Result
    A Cold Boot Windows Speaker sound is full and loud
    B Windows -> Linux (preserve_init=1 old patch rt1320-preserve-first-attach-test.patch) Speaker sound is full and loud
    C Cold Boot Linux (first patch based on Matthew msi-b3wh-fix.patch) Speaker sound is working but not full and sound clarity & bass is a bit lacking; and volume from 60% to 100% is not changing anymore (only a little bit like a logarithmic curve)
    D Cold Boot Linux (modified patch cachyos-7.3.4-1.patch based on your patch @jack-cy-yu) Speaker sound is working but not full and sound clarity & bass is a bit lacking; and volume from 60% to 100% is not changing anymore (only a little bit like a logarithmic curve)

    Notes

    • I have to modified your patch 0001-ASoC-rt1320-sdw-use-ACPI-SDCA-init-table-on-MSI-MS-2.patch a little bit @jack-cy-yu due to there's an error apply directly this patch (see below)
    • It failed at rt1320-sdw.c:2472 due to a source-context mismatch.
    • CachyOS already uses FUNCTION_NEEDS_INITIALIZATION || !rt1320->first_hw_init, so I adapted the patch to retain this existing condition while preserving your MSI-specific soft reset, ACPI SDCA initialization, MCU/PDE23 sequencing, DSP-bypass diagnostics, and fallback behavior.

    Modified patch: cachyos-7.3.4-1.patch


    Thanks again @jack-cy-yu @bardliao and @MatthewLeeCode for the efforts!

  30. ikegam commented on Nov 15, 2026

    @ikegam

    Surface Laptop Ultra (NVIDIA N1X, MediaTek SoundWire, 2x RT1320, SSID 0x308E10EC) had the same "FW is NOT ready" (0x3fc2ab81 never clears). It started after a SoC crash with the DSP running and survived reboot and power-off, since the amps stay powered on battery.

    A full DSP reset before the download plus the per-SSID start sequence from Realtek's Windows driver fixed it, together with keeping UCM mixer writes off the amps during the download. Sequence: https://gist.github.com/ikegam/4cdd9ff70130f21a79d4d631681db41c, patch: https://github.com/ikegam/surface-ultra-misc/tree/main/speaker-amp/module

    (Still amazed a laptop now has its own DSP and amp for each of the left and right speakers.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions