Coder Social home page Coder Social logo

smallcms / asus_zenbook_ux3405ma Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 20 KB

SSDT Patch to fix missing speakers sound in Linux on Asus Zenbook 14 UX3405MA (2024) and latest BIOS

Shell 10.10% ASL 84.50% Lua 5.40%
asus-zenbook fedora-workstation harman-kardon linux-firmware cirrus-logic asus zenbook ux3405ma

asus_zenbook_ux3405ma's People

Contributors

r03n avatar smallcms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

r03n

asus_zenbook_ux3405ma's Issues

Still no sound: pxa2xx-spi pxa2xx-spi.3: problem registering SPI controller

Hi, thanks for all your work. Unfortunately this doesn't seem to be working for me, here's the relevant part in dmesg. I still get no sound from the speakers.

[    0.096375] ACPI: Added _OSI(Module Device)
[    0.096375] ACPI: Added _OSI(Processor Device)
[    0.096375] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.096375] ACPI: Added _OSI(Processor Aggregator Device)
[    0.188245] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.SPI1.SPK1], AE_ALREADY_EXISTS (20230628/dswload2-326)
[    0.188259] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230628/psobject-220)
[    0.188264] ACPI: Skipping parse of AML opcode: OpcodeName unavailable (0x5B82)
[    0.188268] ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.SPI1._DSD], AE_ALREADY_EXISTS (20230628/dswload2-326)
[    0.188273] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230628/psobject-220)
[    0.208356] ACPI: 23 ACPI AML tables successfully acquired and loaded

BIOS: 305
OS: Debian sid w/ linux 6.8.9-amd64
Secure boot disabled

Hopefully you can find a solution
Best

Error when running iasl

Hi,

Tried your proposed solution, but it did not work:

Intel ACPI Component Architecture
ASL+ Optimizing Compiler/Disassembler version 20230628
Copyright (c) 2000 - 2023 Intel Corporation

ssdt-csc3551.dsl 8: Device (SPK1)
Warning 3141 - Missing dependency ^ (Device has a _DIS, missing a _SRS, required)

ssdt-csc3551.dsl 13: Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
Remark 2120 - ^ Control Method should be made Serialized due to creation of named objects within (_SB.PC00.SPI1.SPK1._CRS)

ssdt-csc3551.dsl 15: Name (SBUF, ResourceTemplate ()
Remark 2173 - ^ Creation of named objects within a method is highly inefficient, use globals or method local variables instead (_SB.PC00.SPI1.SPK1._CRS)

ssdt-csc3551.dsl 73: Package (0x06)
Error 6062 - ^ Initializer list longer than declared package length

ASL Input: ssdt-csc3551.dsl - 5795 bytes 13 keywords 0 source lines
Hex Dump: ssdt-csc3551.hex - 7214 bytes

Compilation failed. 1 Errors, 1 Warnings, 2 Remarks
No AML files were generated due to compiler error(s)
โžœ asus_zenbook_ux3405ma git:(main) โœ—

Bios version is 305
Linux 6.8.6
Distro: Arch Linux
Secure boot: Disabled

Maybe this only work with bios version 304.

Low volume unless kernel audio patch applied

Could you confirm if you have volume issues on your laptop, even with the fix proposed in this repository? I am also not sure if the SSDT patch is properly applied when I try it.

I am able to dual boot in Windows and noticed the volume level is much lower on Linux than on Windows, I'd say around 1/3rd or 1/4th of the maximum volume.
The sound quality is also generally not as good (some crackling), and the audio sometimes glitches (metallic noise and playback sometimes freezes).
Since I don't have an absolute volume measurement device: By the volume being low, I mean that I never thought "Oh woaw, too loud" at the max volume.

Using a kernel patch from the "Asus Zenbook UX3402 speakers on Linux" thread and compiling the kernel, I'm able to get the right volume level and do not need this repository SSDT patch.
Yet the sound quality has issues as above.

I want to start a thread to capture these issues and hopefully find answers.

System info:

  • BIOS: 305
  • OS: Arch Linux
  • linux-firmware package version: 20240610.9c10a208-1
  • sof-firmware packages installed
  • Installed the zenbook-sound-fix-ux3405ma AUR package.
    • And followed the doc steps to add the .aml file in the initramfs; having first having copied the SSDT file at the right location with cp /boot/ssdt-csc3551.aml /etc/initcpio/acpi_override/

Notes:

  • In that thread about the Asus Zenbook UX3402 sound issues, someone suggests this Linux kernel patch for our 3405MA Zenbook.
  • Cirrus firmware for the laptop were added in https://gitlab.com/kernel-firmware/linux-firmware by this commit: link
    • The ID of the laptop is 10431A63 according to udevadm info /sys/bus/pci/devices/0000:00:00.0 | grep PCI_SUBSYS_ID
  • The sof-firmware package is crucial to recognise the soundcard. No sound otherwise. This is mentioned in Arch Linux doc

There's a bunch of further details below where I try the stable kernel vs. mainline kernel compile on the laptop with and without the SSDT patch of this repository.

Thanks for paving the way to fixing these issues!

Summary table

+ sof-firmware
+ SSDT
- sof-firmware
+ SSDT
+ sof-firmwate
- SSDT
- sof-firmware
- SSDT
stable kernel Low volume No sound Low volume No sound
mainline kernel
+kernel audio patch
High volume No sound High volume No sound

Details

Stable Linux, no SSDT file applied

Low volume

  • uname -a:

    • Linux zenbook 6.9.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:37 +0000 x86_64 GNU/Linux
  • dmesg | grep ssdt-csc3551.aml: no output, as expected

  • dmesg | grep -E 'CSC3551|hda': 'Falling back to default firmware' is present. Command output:

    Click to expand!

    [  +0.000330] [Sat Jun 22 17:04:26 2024] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
    [  +0.000028] [Sat Jun 22 17:04:26 2024] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [  +0.029344] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.001113] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.013238] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000014] [Sat Jun 22 17:04:26 2024] Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
    [  +0.012520] [Sat Jun 22 17:04:26 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [  +0.000003] [Sat Jun 22 17:04:26 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [  +0.000001] [Sat Jun 22 17:04:26 2024] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file:     intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    [  +0.000206] [Sat Jun 22 17:04:27 2024] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
    [  +0.025758] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Falling back to default firmware.
    [  +0.000980] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000004] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.046657] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000347] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.010462] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: -19
    [  +0.000007] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000483] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Falling back to default firmware.
    [  +0.000186] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000002] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.061082] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000905] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000005] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.013811] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
    [  +0.000008] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000196] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    [  +0.000004] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
    [  +0.000002] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
    [  +0.000002] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
    [  +0.000001] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0:    inputs:
    [  +0.007456] [Sat Jun 22 17:04:27 2024] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
    [  +0.028413] [Sat Jun 22 17:04:27 2024] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
    [  +0.000142] [Sat Jun 22 17:04:27 2024] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
    [  +0.000149] [Sat Jun 22 17:04:27 2024] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
    [  +0.000163] [Sat Jun 22 17:04:27 2024] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
    

  • lsmod | grep -E 'hda|cs35l41' output:

    Click to expand!

    snd_soc_skl_hda_dsp    24576  4
    snd_soc_hdac_hdmi      49152  1 snd_soc_skl_hda_dsp
    snd_soc_intel_hda_dsp_common    16384  1 snd_soc_skl_hda_dsp
    snd_hda_codec_hdmi     98304  1
    snd_hda_codec_realtek   204800  1
    snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
    snd_hda_scodec_component    20480  1 snd_hda_codec_realtek
    snd_sof_intel_hda_common   258048  1 snd_sof_pci_intel_mtl
    soundwire_intel        81920  1 snd_sof_intel_hda_common
    snd_sof_intel_hda_mlink    36864  2 soundwire_intel,snd_sof_intel_hda_common
    snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
    snd_sof_pci            24576  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_common
    snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
    snd_sof               462848  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
    snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
    snd_hda_ext_core       36864  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
    snd_soc_acpi_intel_match    98304  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_common
    snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
    snd_soc_core          462848  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
    snd_hda_intel          65536  0
    snd_intel_dspcfg       40960  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
    snd_intel_sdw_acpi     16384  2 snd_sof_intel_hda_common,snd_intel_dspcfg
    snd_hda_scodec_cs35l41_spi    12288  0
    snd_hda_codec         212992  8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
    snd_hda_core          143360  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
    snd_hda_scodec_cs35l41_i2c    12288  0
    snd_hda_scodec_cs35l41    65536  2 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41_spi
    snd_hwdep              20480  1 snd_hda_codec
    snd_hda_cs_dsp_ctls    16384  1 snd_hda_scodec_cs35l41
    snd_pcm               200704  12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
    cs_dsp                 81920  2 snd_hda_scodec_cs35l41,snd_hda_cs_dsp_ctls
    snd_soc_cs35l41_lib    45056  3 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41,snd_hda_scodec_cs35l41_spi
    snd                   155648  27 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_hda_scodec_cs35l41,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_hda_cs_dsp_ctls
    

  • dmesg | grep -E 'spi' output:

    Click to expand!

    [  +0.029344] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.001113] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.013238] [Sat Jun 22 17:04:26 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.025758] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Falling back to default firmware.
    [  +0.000980] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000004] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.046657] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000347] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.010462] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: -19
    [  +0.000007] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000483] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Falling back to default firmware.
    [  +0.000186] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000002] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.061082] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000905] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000005] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.013811] [Sat Jun 22 17:04:27 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
    [  +0.000008] [Sat Jun 22 17:04:27 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    

Stable Linux + SSDT file in initramfs, but no sof-firmware package

No sound, no soundcards found with aplay -l

  • dmesg | grep -E 'CSC3551|hda' output:

    Click to expand!

    [  +0.001871] [Sat Jun 22 18:39:08 2024] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
    [  +0.000024] [Sat Jun 22 18:39:08 2024] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [  +0.029288] [Sat Jun 22 18:39:08 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.003441] [Sat Jun 22 18:39:08 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.022430] [Sat Jun 22 18:39:08 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000018] [Sat Jun 22 18:39:08 2024] Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
    [  +0.039889] [Sat Jun 22 18:39:08 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [  +0.000004] [Sat Jun 22 18:39:08 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [  +0.000001] [Sat Jun 22 18:39:08 2024] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file: intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    

Stable Linux + SSDT file in initramfs

Low volume

  • dmesg | grep ssdt-csc3551.aml

    ACPI: SSDT ACPI table found in initrd [kernel/firmware/acpi/ssdt-csc3551.aml][0x2d7]

  • dmesg | grep -E 'CSC3551|hda': 'Falling back to default firmware' is present. Command output:

    Click to expand!

    [  +0.011091] [Sat Jun 22 17:36:29 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000233] [Sat Jun 22 17:36:29 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.022135] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000011] [Sat Jun 22 17:36:30 2024] Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
    [  +0.025286] [Sat Jun 22 17:36:30 2024] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
    [  +0.000033] [Sat Jun 22 17:36:30 2024] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [  +0.018687] [Sat Jun 22 17:36:30 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [  +0.000004] [Sat Jun 22 17:36:30 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [  +0.000001] [Sat Jun 22 17:36:30 2024] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file:     intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    [  +0.000323] [Sat Jun 22 17:36:30 2024] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
    [  +0.004883] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Falling back to default firmware.
    [  +0.000460] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000004] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.061638] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000363] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.010607] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: -19
    [  +0.000008] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000537] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Falling back to default firmware.
    [  +0.000228] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.060493] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000406] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.012215] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
    [  +0.000005] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000154] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    [  +0.000004] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
    [  +0.000002] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
    [  +0.000001] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
    [  +0.000002] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0:    inputs:
    [  +0.028152] [Sat Jun 22 17:36:30 2024] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
    [  +0.030492] [Sat Jun 22 17:36:30 2024] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
    [  +0.000057] [Sat Jun 22 17:36:30 2024] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
    [  +0.000033] [Sat Jun 22 17:36:30 2024] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
    [  +0.000056] [Sat Jun 22 17:36:30 2024] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
    

  • lsmod | grep -E 'hda|cs35l41' output:

    Click to expand!

    snd_soc_skl_hda_dsp    24576  4
    snd_soc_hdac_hdmi      49152  1 snd_soc_skl_hda_dsp
    snd_soc_intel_hda_dsp_common    16384  1 snd_soc_skl_hda_dsp
    snd_hda_codec_hdmi     98304  1
    snd_hda_codec_realtek   204800  1
    snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
    snd_hda_scodec_component    20480  1 snd_hda_codec_realtek
    snd_sof_intel_hda_common   258048  1 snd_sof_pci_intel_mtl
    soundwire_intel        81920  1 snd_sof_intel_hda_common
    snd_sof_intel_hda_mlink    36864  2 soundwire_intel,snd_sof_intel_hda_common
    snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
    snd_sof_pci            24576  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_common
    snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
    snd_sof               462848  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
    snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
    snd_hda_ext_core       36864  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
    snd_soc_acpi_intel_match    98304  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_common
    snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
    snd_soc_core          462848  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
    snd_hda_intel          65536  0
    snd_intel_dspcfg       40960  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
    snd_intel_sdw_acpi     16384  2 snd_sof_intel_hda_common,snd_intel_dspcfg
    snd_hda_codec         212992  8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
    snd_hda_core          143360  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
    snd_hda_scodec_cs35l41_spi    12288  0
    snd_hda_scodec_cs35l41_i2c    12288  0
    snd_hwdep              20480  1 snd_hda_codec
    snd_hda_scodec_cs35l41    65536  2 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41_spi
    snd_pcm               200704  12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
    snd_hda_cs_dsp_ctls    16384  1 snd_hda_scodec_cs35l41
    cs_dsp                 81920  2 snd_hda_scodec_cs35l41,snd_hda_cs_dsp_ctls
    snd_soc_cs35l41_lib    45056  3 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41,snd_hda_scodec_cs35l41_spi
    snd                   155648  27 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_hda_scodec_cs35l41,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_hda_cs_dsp_ctls
    

  • dmesg | grep -E 'spi' output:

    Click to expand!

    [  +0.011091] [Sat Jun 22 17:36:29 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000233] [Sat Jun 22 17:36:29 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.022135] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.004883] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Falling back to default firmware.
    [  +0.000460] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000004] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.061638] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000363] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.010607] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: -19
    [  +0.000008] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000537] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Falling back to default firmware.
    [  +0.000228] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
    [  +0.060493] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
    [  +0.000406] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
    [  +0.000003] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
    [  +0.012215] [Sat Jun 22 17:36:30 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
    [  +0.000005] [Sat Jun 22 17:36:30 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    

Mainline Linux + kernel audio patch, no SSDT file applied

High volume

  • uname -a:

    Linux zenbook 6.10.0-rc3-1-mainline-dirty #8 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 09:22:09 +0000 x86_64 GNU/Linux

  • dmesg | grep ssdt-csc3551.aml: no output, as expected

  • dmesg | grep -E 'CSC3551|hda': The 'Falling back to default firmware' is not present. Command output:

    Click to expand!

    [  +0.001331] [Sat Jun 22 17:31:11 2024] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [  +0.003260] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Adding DSD properties for 10431A63
    [  +0.000190] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.022003] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000654] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Adding DSD properties for 10431A63
    [  +0.000244] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.000004] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.006747] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000027] [Sat Jun 22 17:31:11 2024] Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
    [  +0.031060] [Sat Jun 22 17:31:11 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [  +0.000003] [Sat Jun 22 17:31:11 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [  +0.000003] [Sat Jun 22 17:31:11 2024] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file:     intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    [  +0.000223] [Sat Jun 22 17:31:11 2024] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
    [  +0.011363] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000006] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63.wmfw: Fri 31 Mar 2023 10:42:49 W. Europe Daylight Time
    [  +0.072869] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.65.0, 2 algorithms
    [  +0.000330] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63-spkid1-l0.bin: v0.65.0
    [  +0.000003] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: C:\Users\tyang\Desktop\Product Setting\SmartAMP\ASUS\ASUS_Zenbook\2023Projects\UX3405MA\Tuning_release\06082023\UX3405UM_19p5dB_Mock_VECO_Lch_finish_ID_6p83_US_Xmax0p65.bin
    [  +0.011961] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Calibration applied: R0=10639
    [  +0.009152] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Firmware Loaded - Type: spk-prot, Gain: 19
    [  +0.000058] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: 1
    [  +0.000005] [Sat Jun 22 17:31:11 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.001304] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000005] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63.wmfw: Fri 31 Mar 2023 10:42:49 W. Europe Daylight Time
    [  +0.062157] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.65.0, 2 algorithms
    [  +0.001369] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63-spkid1-r0.bin: v0.65.0
    [  +0.000010] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: C:\Users\tyang\Desktop\Product Setting\SmartAMP\ASUS\ASUS_Zenbook\2023Projects\UX3405MA\Tuning_release\06082023\UX3405UM_19p5dB_Mock_VECO_Rch_finish_ID_6p83_UX_Xmax0p65.bin
    [  +0.012782] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Calibration applied: R0=10806
    [  +0.010207] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Firmware Loaded - Type: spk-prot, Gain: 19
    [  +0.000071] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: R, FW EN: 1, SPKID: 1
    [  +0.000006] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.000148] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    [  +0.000002] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
    [  +0.000001] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
    [  +0.000001] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
    [  +0.000000] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0:    inputs:
    [  +0.085790] [Sat Jun 22 17:31:12 2024] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
    [  +0.029572] [Sat Jun 22 17:31:12 2024] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
    [  +0.000061] [Sat Jun 22 17:31:12 2024] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
    [  +0.000040] [Sat Jun 22 17:31:12 2024] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
    [  +0.000038] [Sat Jun 22 17:31:12 2024] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
    

  • lspci | grep audio output:

    0000:00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)

  • lsmod | grep -E 'hda|cs35l41' output:

    Click to expand!

    snd_soc_skl_hda_dsp    24576  4
    snd_soc_hdac_hdmi      49152  1 snd_soc_skl_hda_dsp
    snd_soc_intel_hda_dsp_common    16384  1 snd_soc_skl_hda_dsp
    snd_hda_codec_hdmi     98304  1
    snd_hda_codec_realtek   208896  1
    snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
    snd_hda_scodec_component    20480  1 snd_hda_codec_realtek
    snd_sof_intel_hda_generic    40960  1 snd_sof_pci_intel_mtl
    soundwire_intel        81920  1 snd_sof_intel_hda_generic
    snd_sof_intel_hda_common   200704  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_generic
    snd_sof_intel_hda_mlink    36864  3 soundwire_intel,snd_sof_intel_hda_common,snd_sof_intel_hda_generic
    snd_sof_intel_hda      20480  2 snd_sof_intel_hda_common,snd_sof_intel_hda_generic
    snd_sof_pci            24576  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_generic
    snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_generic
    snd_sof               462848  6 snd_sof_pci_intel_mtl,snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_hda_generic,snd_sof_probes,snd_sof_intel_hda
    snd_soc_hdac_hda       28672  1 snd_sof_intel_hda_common
    snd_hda_ext_core       36864  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
    snd_soc_acpi_intel_match   106496  2 snd_sof_pci_intel_mtl,snd_sof_intel_hda_generic
    snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_generic
    snd_soc_core          454656  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
    snd_hda_intel          65536  0
    snd_intel_dspcfg       40960  4 snd_hda_intel,snd_sof,snd_sof_intel_hda_common,snd_sof_intel_hda_generic
    snd_intel_sdw_acpi     16384  2 snd_intel_dspcfg,snd_sof_intel_hda_generic
    snd_hda_codec         212992  8 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_sof_intel_hda,snd_soc_skl_hda_dsp
    snd_hda_scodec_cs35l41_spi    12288  0
    snd_hda_scodec_cs35l41_i2c    12288  0
    snd_hda_core          147456  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda
    snd_hda_scodec_cs35l41    73728  2 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41_spi
    snd_hwdep              20480  1 snd_hda_codec
    snd_hda_cs_dsp_ctls    20480  1 snd_hda_scodec_cs35l41
    snd_soc_cs_amp_lib     16384  1 snd_hda_scodec_cs35l41
    snd_pcm               200704  12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
    cs_dsp                 86016  3 snd_hda_scodec_cs35l41,snd_hda_cs_dsp_ctls,snd_soc_cs_amp_lib
    snd_soc_cs35l41_lib    45056  3 snd_hda_scodec_cs35l41_i2c,snd_hda_scodec_cs35l41,snd_hda_scodec_cs35l41_spi
    snd                   155648  27 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_hda_scodec_cs35l41,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_hda_cs_dsp_ctls
    

  • dmesg | grep -E 'spi' output:

    Click to expand!

    [  +0.003260] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Adding DSD properties for 10431A63
    [  +0.000190] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.022003] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000654] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Adding DSD properties for 10431A63
    [  +0.000244] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.000004] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.006747] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.011363] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
    [  +0.000006] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63.wmfw: Fri 31 Mar 2023 10:42:49 W. Europe Daylight Time
    [  +0.072869] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.65.0, 2 algorithms
    [  +0.000330] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63-spkid1-l0.bin: v0.65.0
    [  +0.000003] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: C:\Users\tyang\Desktop\Product Setting\SmartAMP\ASUS\ASUS_Zenbook\2023Projects\UX3405MA\Tuning_release\06082023\UX3405UM_19p5dB_Mock_VECO_Lch_finish_ID_6p83_US_Xmax0p65.bin
    [  +0.011961] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Calibration applied: R0=10639
    [  +0.009152] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Firmware Loaded - Type: spk-prot, Gain: 19
    [  +0.000058] [Sat Jun 22 17:31:11 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: 1
    [  +0.000005] [Sat Jun 22 17:31:11 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    [  +0.001304] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
    [  +0.000005] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63.wmfw: Fri 31 Mar 2023 10:42:49 W. Europe Daylight Time
    [  +0.062157] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.65.0, 2 algorithms
    [  +0.001369] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431a63-spkid1-r0.bin: v0.65.0
    [  +0.000010] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: C:\Users\tyang\Desktop\Product Setting\SmartAMP\ASUS\ASUS_Zenbook\2023Projects\UX3405MA\Tuning_release\06082023\UX3405UM_19p5dB_Mock_VECO_Rch_finish_ID_6p83_UX_Xmax0p65.bin
    [  +0.012782] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Calibration applied: R0=10806
    [  +0.010207] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Firmware Loaded - Type: spk-prot, Gain: 19
    [  +0.000071] [Sat Jun 22 17:31:12 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: R, FW EN: 1, SPKID: 1
    [  +0.000006] [Sat Jun 22 17:31:12 2024] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
    

Mainline Linux + kernel audio patch + SSDT file in initramfs + sof-firmware package

High volume

  • dmesg | grep ssdt-csc3551.aml

    ACPI: SSDT ACPI table found in initrd [kernel/firmware/acpi/ssdt-csc3551.aml][0x2d7]

  • dmesg | grep -E 'CSC3551|hda': no difference with non-ssdt variant, except order of 1 line
  • lsmod | grep -E 'hda|cs35l41' no difference with non-ssdt variant, except order of the last few lines
  • dmesg | grep -E 'spi' no difference with non-ssdt variant

Mainline Linux + kernel audio patch + SSDT file in initramfs but no sof-firmware package

No soundcard

  • dmesg | grep -E 'CSC3551|hda':

    Click to expand!

    [  +0.000057] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Adding DSD properties for 10431A63
    [  +0.000347] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.009791] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000384] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Adding DSD properties for 10431A63
    [  +0.000092] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Using extra _DSD properties, bypassing _DSD in ACPI
    [  +0.000002] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
    [  +0.003285] [Sat Jun 22 18:56:10 2024] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
    [  +0.000025] [Sat Jun 22 18:56:10 2024] Serial bus multi instantiate pseudo device driver CSC3551:00: Instantiated 2 SPI devices.
    [  +0.032815] [Sat Jun 22 18:56:10 2024] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
    [  +0.038177] [Sat Jun 22 18:56:10 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 5
    [  +0.000003] [Sat Jun 22 18:56:10 2024] sof-audio-pci-intel-mtl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
    [  +0.000001] [Sat Jun 22 18:56:10 2024] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file: intel/sof-ace-tplg/sof-hda-generic-2ch.tplg
    

Transaction failed in f40

I am getting the following error:

sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:smallcms/Fedora_40/home:smallcms.repo
sudo dnf install zenbook-sound-fix-ux3405ma
zenbook-sound-fix-ux3405ma...
otal                                                                                                                            10 kB/s | 9.0 kB     00:00     
smallcms (Fedora_40)                                                                                                            2.0 kB/s | 1.1 kB     00:00    
Importing GPG key 0x44CD73EE:
 Userid     : "home:smallcms OBS Project <home:[email protected]>"
 Fingerprint: 8C29 1731 0C3B BA25 EA55 E23E 4FB5 8E8B 44CD 73EE
 From       : https://download.opensuse.org/repositories/home:/smallcms/Fedora_40/repodata/repomd.xml.key
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /boot from install of zenbook-sound-fix-ux3405ma-1.0.0-61.1.x86_64 conflicts with file from package filesystem-3.18-8.fc40.x86_64
  file /etc/grub.d from install of zenbook-sound-fix-ux3405ma-1.0.0-61.1.x86_64 conflicts with file from package grub2-common-1:2.06-121.fc40.noarch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.