You are not logged in.

#1 2022-12-21 08:12:59

thehexagon
Member
From: New Zealand
Registered: 2020-10-26
Posts: 76
Website

[SOLVED] No audio for Intel Card

EDIT: solved with https://github.com/Parmjot-Singh/hp-15-ew0xxx-snd-fix

Original:

I really don't know what to put more for a title.

I bought a new laptop (HP ENVY x360 2-in-1 Laptop 15-EW0009TX), and I wanted to get everything working on it. I noticed that the speakers don't work, as well as the mic, and the mute led for both the speakers and the mic. Can someone help me diagnose and fix?
Here is the output of some commands that I think might be helpful.

lsmod | grep snd_hda_intel

snd_hda_intel          61440  2
snd_intel_dspcfg       36864  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_hda_codec         188416  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core          118784  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_pcm               172032  11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd                   131072  19 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_compress,snd_soc_core,snd_pcm,snd_hda_cs_dsp_ctls
grep Codec /proc/asound/card*/codec*

/proc/asound/card0/codec#0:Codec: Realtek ALC245
/proc/asound/card0/codec#2:Codec: Intel Alderlake-P HDMI

Some .conf files I made for modprobe

/etc/modprobe.d/snd-hda-intel.conf 
options snd-hda-intel model=patch_alc269
options snd_hda_intel power_save=1

/etc/modprobe.d/dsp.conf 
options snd_intel_dspcfg dsp_driver=1

Something to note is that I have tried alc245, hp-gpio-led, among many others.
I can't seem to find it at https://docs.kernel.org/sound/hd-audio/models.html but there has been a patch for it (i think) at https://lkml.iu.edu/hypermail/linux/ker … 05076.html
I've used https://wiki.archlinux.org/title/Laptop#Audio_mute_LED as one of my resources.

If you need anything, just ask, as always.

Last edited by thehexagon (2023-07-20 06:00:53)


NZ - UTC+12, or UTC+13 (depends on DST) | HP ENVY x360 2-in-1 Laptop 15-EW0009TX

Offline

#2 2022-12-21 13:33:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] No audio for Intel Card

If you drop both the modprobe conf files and install sof-firmware instead, what's the situation?

Offline

#3 2022-12-21 19:08:11

thehexagon
Member
From: New Zealand
Registered: 2020-10-26
Posts: 76
Website

Re: [SOLVED] No audio for Intel Card

Sorry, forgot to say I already installed that.

Last edited by thehexagon (2022-12-21 21:33:54)


NZ - UTC+12, or UTC+13 (depends on DST) | HP ENVY x360 2-in-1 Laptop 15-EW0009TX

Offline

#4 2022-12-22 13:30:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] No audio for Intel Card

And? How are the cards looking like if you do not have the modprobe conf files but sof-firmware installed? Output of

aplay -lL

then? You should in general not attempt to fallback to HDA on newer cards, they will be more tested on the SoF path.

Offline

#5 2022-12-22 22:05:50

thehexagon
Member
From: New Zealand
Registered: 2020-10-26
Posts: 76
Website

Re: [SOLVED] No audio for Intel Card

aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
sysdefault:CARD=sofhdadsp
    sof-hda-dsp, 
    Default Audio Device
usbstream:CARD=sofhdadsp
    sof-hda-dsp
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

NZ - UTC+12, or UTC+13 (depends on DST) | HP ENVY x360 2-in-1 Laptop 15-EW0009TX

Offline

#6 2022-12-22 22:17:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] No audio for Intel Card

 speaker-test -Dhw:0 -c2

doesn't work in this constellation? Output of

amixer -c0
sudo dmesg | grep -iE 'snd|sof'

?

Offline

#7 2022-12-22 22:26:45

thehexagon
Member
From: New Zealand
Registered: 2020-10-26
Posts: 76
Website

Re: [SOLVED] No audio for Intel Card

speaker-test -Dhw:0 -c2

speaker-test 1.2.8

Playback device is hw:0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy
amixer -c0

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 52 [60%] [-26.25dB] [off]
  Front Right: Playback 52 [60%] [-26.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 38 [60%] [11.25dB] [on]
  Front Right: Capture 38 [60%] [11.25dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 0 [0%] [-99999.99dB] [off]
  Front Right: Capture 0 [0%] [-99999.99dB] [off]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA30.0 30',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA31.0 31',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
sudo dmesg | grep -iE 'snd|sof'

[    0.030278] software IO TLB: area num 16.
[    0.833046] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.866433] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.866434] software IO TLB: mapped [mem 0x00000000397fc000-0x000000003d7fc000] (64MB)
[    0.936973] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    0.936988] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[    6.330746] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    6.330810] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    6.481669] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    6.481733] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    6.481760] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    6.481930] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    7.169296] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    7.212830] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    7.322672] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    7.322675] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    7.322681] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    7.323604] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.323607] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    7.323610] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    7.437566] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.437569] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   10.436753] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   10.465050] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC245: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[   10.465055] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   10.465056] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[   10.465058] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[   10.465059] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[   10.465059] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[   10.509743] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[   10.509749] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[   10.530864] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
[   10.643106] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32
[   10.643145] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input33
[   10.666407] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input34
[   10.666526] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input35

I've decided to add some other command outputs in case they are useful

lsof /dev/snd/*

COMMAND    PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 1451 parmjot  mem    CHR  116,4           746 /dev/snd/pcmC0D0p
pulseaudi 1451 parmjot   16u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   17u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   18u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   38u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   44u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   50u   CHR 116,12      0t0  765 /dev/snd/controlC0
pulseaudi 1451 parmjot   68u   CHR  116,4      0t0  746 /dev/snd/pcmC0D0p
fuser -fv /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  parmjot    1451 F.... pulseaudio
/dev/snd/pcmC0D0p:   parmjot    1451 F...m pulseaudio

NZ - UTC+12, or UTC+13 (depends on DST) | HP ENVY x360 2-in-1 Laptop 15-EW0009TX

Offline

#8 2023-07-20 05:59:52

thehexagon
Member
From: New Zealand
Registered: 2020-10-26
Posts: 76
Website

Re: [SOLVED] No audio for Intel Card


NZ - UTC+12, or UTC+13 (depends on DST) | HP ENVY x360 2-in-1 Laptop 15-EW0009TX

Offline

Board footer

Powered by FluxBB