You are not logged in.

#1 2024-02-13 10:17:55

sdavoult
Member
Registered: 2024-02-13
Posts: 1

Internal audio is weak and of very poor quality (crackling sound)

The sound from the internal speakers of my HP Dragonfly G4 PC is of poor quality (crackling) and very weak. It works perfectly under Windows, but impossible to get the sound to work properly under any GNU/Linux distribution.
I've been trying lots of things for several months (ACPI tuning, BIOS Update, Windows drivers recovery for use under Linux, Linux update > 6.7....) without success.
I feel like I've been poking around all over the Internet, but still no amplified sound.
Do you have any ideas?
Thank you very much!

Laptop: HP Dragonfly 13.5 inch G4 Notebook PC
Audio Card: ALC245
Audio Chip ID: 8086:51ca:0401
Audio sound Amplifier: CS35L41
Kernel version: Linux archlinux 6.8.0-rc1-1-mainline
Package linux-firmware-git: 20240126.8fa621d2-1

inxi -Fxxxzra

System:
  Kernel: 6.8.0-rc1-1-mainline arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: initrd=\initramfs-linux-mainline.img
    root="UUID=3210398b-dc4c-4526-bf19-744546c856c9" quiet rw
  Desktop: GNOME v: 45.3 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    v: 45.0.1 Distro: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Dragonfly 13.5 inch G4 Notebook PC
    v: SBKPF serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8B63 v: KBC Version 57.25.00 serial: <superuser required>
    UEFI: HP v: 90 Ver. 01.03.01 date: 11/10/2023
Battery:
  ID-1: BAT0 charge: 43.4 Wh (100.0%) condition: 43.4/45.6 Wh (95.1%)
    volts: 8.7 min: 7.7 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: full cycles: 51
CPU:
  Info: model: 13th Gen Intel Core i7-1365U bits: 64 type: MST AMCP
    arch: Raptor Lake level: v3 note: check built: 2022+ process: Intel 7 (10nm)
    family: 6 model-id: 0xBA (186) stepping: 3 microcode: 0x411C
  Topology: cpus: 1x cores: 10 mt: 2 tpc: 2 st: 8 threads: 12 smt: enabled
    cache: L1: 928 KiB desc: d-8x32 KiB, 2x48 KiB; i-2x32 KiB, 8x64 KiB
    L2: 6.5 MiB desc: 2x1.2 MiB, 2x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 476 high: 861 min/max: 400/5200:3900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 858 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 861 8: 400 9: 400 10: 400 11: 400 12: 400 bogomips: 64536
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB:
    conditional, RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-13 process: Intel 7 (10nm) built: 2022+
    ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:a7a1 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: InfoVision Optronics/Kunshan 0x34d1
    serial: <filter> built: 2021 res: 1920x1280 dpi: 171 gamma: 1.2
    size: 285x190mm (11.22x7.48") diag: 343mm (13.5") ratio: 3:2
    modes: 1920x1280
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel vendor: Hewlett-Packard driver: N/A bus-ID: 00:05.0
    chip-ID: 8086:a75d class-ID: 0480
  Device-2: Intel Raptor Lake-P/U/H cAVS vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51ca class-ID: 0401
  API: ALSA v: k6.8.0-rc1-1-mainline status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Raptor Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f1 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: N/A driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-10:3 chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
Drives:
  Local Storage: total: 596.19 GiB used: 47.54 GiB (8.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVL4512HBLU-00BH1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS3NHAV temp: 37.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: SanDisk model: Extreme
    size: 119.25 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 3.0 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter>
    fw-rev: 0001 scheme: GPT
Partition:
  ID-1: / raw-size: 20 GiB size: 19.52 GiB (97.59%) used: 12.57 GiB (64.4%)
    fs: ext4 dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 124.8 MiB (24.4%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 98.75 GiB size: 96.64 GiB (97.86%)
    used: 34.85 GiB (36.1%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: zram size: 4 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: 1015 pm: pacman pkgs: 1003 libs: 276 tools: gnome-software,yay
    pm: flatpak pkgs: 12
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirrors.jtremesay.org/archlinux/$repo/os/$arch
    2: https://mirrors.gandi.net/archlinux/$repo/os/$arch
    3: https://mirrors.eric.ovh/arch/$repo/os/$arch
    4: https://mirrors.celianvdb.fr/archlinux/$repo/os/$arch
    5: https://mirror.wormhole.eu/archlinux/$repo/os/$arch
    6: https://mirror.theo546.fr/archlinux/$repo/os/$arch
    7: https://mirror.thekinrar.fr/archlinux/$repo/os/$arch
    8: https://mirror.sysa.tech/archlinux/$repo/os/$arch
    9: https://mirror.spaceint.fr/archlinux/$repo/os/$arch
    10: https://mirror.oldsql.cc/archlinux/$repo/os/$arch
    11: https://mirror.its-tps.fr/archlinux/$repo/os/$arch
    12: https://mirror.ibakerserver.pt/Arch/$repo/os/$arch
    13: https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
    14: https://archlinux.mailtunnel.eu/$repo/os/$arch
    15: https://arch.yourlabs.org/$repo/os/$arch
    16: http://mirrors.gandi.net/archlinux/$repo/os/$arch
    17: http://mirrors.celianvdb.fr/archlinux/$repo/os/$arch
    18: http://mirror.theo546.fr/archlinux/$repo/os/$arch
    19: http://mirror.spaceint.fr/archlinux/$repo/os/$arch
    20: http://mirror.oldsql.cc/archlinux/$repo/os/$arch
    21: http://mirror.lastmikoi.net/archlinux/$repo/os/$arch
    22: http://mirror.its-tps.fr/archlinux/$repo/os/$arch
    23: http://mirror.cyberbits.eu/archlinux/$repo/os/$arch
    24: http://mirror.archlinux.ikoula.com/archlinux/$repo/os/$arch
    25: http://mir.archlinux.fr/$repo/os/$arch
    26: http://ftp.u-strasbg.fr/linux/distributions/archlinux/$repo/os/$arch
    27: http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
    28: http://archlinux.mailtunnel.eu/$repo/os/$arch
    29: http://archlinux.datagr.am/$repo/os/$arch
    30: http://arch.yourlabs.org/$repo/os/$arch
Info:
  Processes: 372 Uptime: 28m wakeups: 0 Memory: total: 32 GiB note: est.
  available: 30.93 GiB used: 9.16 GiB (29.6%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Shell: Bash v: 5.2.26 running-in: gnome-terminal inxi: 3.3.31

aplay -l

**** Liste des périphériques matériels PLAYBACK ****
carte 0 : sofhdadsp [sof-hda-dsp], périphérique 0 : HDA Analog (*) []
  Sous-périphériques : 0/1
  Sous-périphérique #0 : subdevice #0
carte 0 : sofhdadsp [sof-hda-dsp], périphérique 3 : HDMI1 (*) []
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0
carte 0 : sofhdadsp [sof-hda-dsp], périphérique 4 : HDMI2 (*) []
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0
carte 0 : sofhdadsp [sof-hda-dsp], périphérique 5 : HDMI3 (*) []
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0
carte 0 : sofhdadsp [sof-hda-dsp], périphérique 31 : HDA Analog Deep Buffer (*) []
  Sous-périphériques : 1/1
  Sous-périphérique #0 : subdevice #0

dmesg

[    9.910631] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    9.910636] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    9.910641] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    9.929216] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware paths/files for ipc type 0:
[    9.929219] sof-audio-pci-intel-tgl 0000:00:1f.3:  Firmware file:     intel/sof/sof-rpl.ri
[    9.929221] sof-audio-pci-intel-tgl 0000:00:1f.3:  Topology file:     intel/sof-tplg/sof-hda-generic-2ch.tplg
[    9.929758] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    9.929761] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    9.929764] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[   10.023271] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[   10.044701] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[   10.044709] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   10.070651] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   10.070812] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
[   10.133150] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
[   10.133160] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63.wmfw: Fri 27 Aug 2021 14:58:19 W. Europe Daylight Time
[   10.176002] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
[   10.176051] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[   10.176101] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[   10.176154] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
[   10.177330] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4
[   10.192375] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4
[   10.209824] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.43.1, 2 algorithms
[   10.211166] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63-r0.bin: v0.43.1
[   10.211192] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: C:\Users\tlu\Desktop\Sandwalker\Official Release\20221007_RDL_+1dB\HP_Sandwalker_103C8B63_221007\103C8B63_221007_A0.bin
[   10.241639] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 103C8B63, BST: 0, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
[   10.241656] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
[   10.248448] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
[   10.248456] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63.wmfw: Fri 27 Aug 2021 14:58:19 W. Europe Daylight Time
[   10.311270] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.43.1, 2 algorithms
[   10.311919] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63-l0.bin: v0.43.1
[   10.311923] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: C:\Users\tlu\Desktop\Sandwalker\Official Release\20221007_RDL_+1dB\HP_Sandwalker_103C8B63_221007\103C8B63_221007_A2.bin
[   10.342940] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 103C8B63, BST: 0, VSPK: 0, CH: L, FW EN: 1, SPKID: -19
[   10.342956] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
[   10.354062] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: DSP1: Firmware version: 3
[   10.354073] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63.wmfw: Fri 27 Aug 2021 14:58:19 W. Europe Daylight Time
[   10.417438] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: DSP1: Firmware: 400a4 vendor: 0x2 v0.43.1, 2 algorithms
[   10.418435] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63-r1.bin: v0.43.1
[   10.418449] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: DSP1: spk-prot: C:\Users\tlu\Desktop\Sandwalker\Official Release\20221007_RDL_+1dB\HP_Sandwalker_103C8B63_221007\103C8B63_221007_A1.bin
[   10.448441] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.2: CS35L41 Bound - SSID: 103C8B63, BST: 0, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
[   10.448452] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.2 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
[   10.452885] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: DSP1: Firmware version: 3
[   10.452891] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63.wmfw: Fri 27 Aug 2021 14:58:19 W. Europe Daylight Time
[   10.515288] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: DSP1: Firmware: 400a4 vendor: 0x2 v0.43.1, 2 algorithms
[   10.515914] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: DSP1: cirrus/cs35l41-dsp1-spk-prot-103c8b63-l1.bin: v0.43.1
[   10.515919] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: DSP1: spk-prot: C:\Users\tlu\Desktop\Sandwalker\Official Release\20221007_RDL_+1dB\HP_Sandwalker_103C8B63_221007\103C8B63_221007_A3.bin
[   10.549565] cs35l41-hda spi1-CSC3551:00-cs35l41-hda.3: CS35L41 Bound - SSID: 103C8B63, BST: 0, VSPK: 0, CH: L, FW EN: 1, SPKID: -19
[   10.549584] snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.3 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
[   10.550928] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC245: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[   10.550940] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   10.550944] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   10.550949] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[   10.550951] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[   10.550954] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[   10.601835] skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[   10.623939] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input23
[   10.624038] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input24
[   10.624131] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input25
[   10.624329] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input26
[   10.624403] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input27

amixer

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 28328 [43%] [on]
  Front Right: Playback 28328 [43%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 0 [0%] [on]
  Front Right: Capture 0 [0%] [on]

Offline

#2 2024-03-18 21:47:13

show_me
Member
Registered: 2017-12-31
Posts: 1

Re: Internal audio is weak and of very poor quality (crackling sound)

I am sorry that no one has offered any answers for you. I am considering this model for dual booting Arch and Windows 11. Do you have the same problem with headphones?

Offline

#3 2024-04-28 19:22:20

crocowhile
Member
Registered: 2009-10-18
Posts: 57

Re: Internal audio is weak and of very poor quality (crackling sound)

It seems to be an issue with CS35L41.
Other models can be fixed with a kernel patch like this one: https://github.com/parmjotsinghrobot/hp … xx-snd-fix
I have tried modifying that patch to include a reference to our laptop, adding line:

+	SND_PCI_QUIRK(0x103c, 0x8b63, "HP Elite Dragonfly 13.5 inch G4", ALC287_FIXUP_CS35L41_I2C_2),

but it did not help at least for kernel 6.8. I have not tried 6.9 but it does not work out of the box either.

The machine code is correct and comes from

cat /sys/class/sound/hwC0D0/subsystem_id
0x103c8b63

Not sure what is wrong. sad

Last edited by crocowhile (2024-04-29 17:37:39)

Offline

Board footer

Powered by FluxBB