Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Alsa] No sound with Dell XPS 9320 [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Mon Dec 11, 2023 1:35 pm    Post subject: [Alsa] No sound with Dell XPS 9320 [Solved] Reply with quote

Hi,

I did not succeeded to have the sound on my laptop Dell XPS 9320. The specifications says that it has speakers.
But no sound from the headphone neither the speakers.

Note : when i enabled pulseaudio, the headphone is ok but not the speakers.

Here is the output from alsa-info.sh : https://alsa-project.org/db/?f=cf4458e8eaa8e9856adf9a0851e522801b13e49f

The bios version is the last one.
When F2 to access to the Bios, it show that the Audio chipset controller is ALC714 !
In my machine, Gentoo show as Intel Alder Lake PCH-P High Definition Audio

Code:

inxi -Faz

Code:

Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A bus-ID: 00:05.0
    chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.6.4-gentoo status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 0.125.0 status: off tools: N/A
  Server-2: PulseAudio v: 16.1 status: off tools: pacat,pactl,pavucontrol


I've uninstall pulseaudio to be sur that alsa works correctly.
Jack or pulseaudio are not essential.
Code:

qlist -RIv |egrep -i 'jack|pulseaudio'

Code:

media-sound/jack-audio-connection-kit-0.125.0-r1::gentoo
media-sound/pulseaudio-daemon-16.1-r7::gentoo
sec-policy/selinux-pulseaudio-2.20231002-r2::gentoo
virtual/jack-2::gentoo


There is no ~/.asoundrc or /etc/asasound.conf file ; i stopped playing with my ~/.asoundrc.

When the laptop is connected to the Dock,
Code:
cat /proc/asound/devices
Code:

  2: [ 1- 3]: digital audio playback
  3: [ 1- 7]: digital audio playback
  4: [ 1- 8]: digital audio playback
  5: [ 1- 9]: digital audio playback
  6: [ 1- 2]: hardware dependent
  7: [ 1]   : control
  8: [ 0- 0]: digital audio playback
  9: [ 0- 0]: digital audio capture
 10: [ 0- 1]: digital audio playback
 11: [ 0]   : control
 33:        : timer


Code:
grep -i codec /proc/asound/card*/codec*

Code:
Codec: Intel Alderlake-P HDMI


There is a file /var/lib/alsa/asound.state
cf. alsa-info file.
Code:

alsamixer -c1

Card: HDA Intel PCH
Chip: Intel Alderlake-P HDMI

There are only 4 volume controls : S/PDIF S/PDIF1 S/PDIF2 S/PDIF3
But you can not up or down the volume.

There is no sound from :
Code:
speaker-test -c 2

Code:

speaker-test 1.2.10
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
^CWrite error: -4,Interrupted system call
xrun_recovery failed: -4,Interrupted system call
Transfer failed: Interrupted system call


Code:
emerge --info
Code:

Portage 3.0.56 (python 3.11.6-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-13, glibc-2.37-r7, 6.6.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.4-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-1260P-with-glibc2.37
KiB Mem:    28267112 total,   1232616 free
KiB Swap:    8388604 total,   8388348 free
Timestamp of repository gentoo: Mon, 11 Dec 2023 08:30:01 +0000
Head commit of repository gentoo: 837259803593f16223ba81a222b8b7d160362367
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.13::gentoo, 3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sec-policy/selinux-base:   2.20231002-r2::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 1

local
    location: /usr/local/portage
    masters: gentoo
    priority: 10
    volatile: True
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=alderlake -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --load-average=6.0 --keep-going=y --with-bdeps=y --complete-graph"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="URL"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j15"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="zstd"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 audit branding bzip2 caps cet chroot cli crypt cryptsetup dri elogind ffmpeg fortran gdbm gnutls hardened iconv icu ipv6 jpeg libtirpc logrotate lzma mmx modplug multilib ncurses nls nptl opengl openmp pam pax_kernel pcre perl pic pie png python readline seccomp secure_delete selinux snmp split-usr sse sse2 ssl ssp symlink test-rust unicode wavpack webrsync-gpg xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-sound/alsa-utils-1.2.10-r1::gentoo was built with the following:
USE="libsamplerate ncurses nls (selinux) -bat -doc -ieee1394" ABI_X86="(64)"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


Code:
cat /etc/modprobe.d/alsa.conf

Code:

options snd-hda-intel power_save=0

# \!/ if used, there is no cards detected
# forcing the second driver i.e. snd_sof_pci_intel_tgl
#options snd_intel_dspcfg dsp_driver=2

#############################################################
# Headphones and headset-mic
#############################################################
#options snd-hda-intel model=headset-mic
#options snd-hda-intel model=auto,headset-mic

#options snd-hda-intel dmic_detect=0


# \!/ only headphone work but no headset-mic
#
#options snd-hda-intel model=generic
#
# https://www.kernel.org/doc/html/latest/sound/hd-audio/models.html#alc22x-23x-25x-269-27x-28x-29x-and-vendor-specific-alc3xxx-models
# dell-headset-multi : Headset jack, which can also be used as mic-in
#
#options snd_hda_intel index=1 model=auto,dell-headset-multi
#options snd_hda_intel model=auto,dell-headset-multi
#options snd_hda_intel model=alc288-dell-xps13,dell-headset-multi
# ALC66x/67x/892
#options snd-hda-intel model=dell-xps13
# ALC288 fixups on Dell XPS13
#options snd-hda-intel model=alc288-dell-xps13


Thanks in advance.


Last edited by y351 on Thu Dec 28, 2023 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1669

PostPosted: Tue Dec 12, 2023 9:11 pm    Post subject: Reply with quote

Did you enable
Code:
CONFIG_SND_SOC_SOF_ALDERLAKE
in your kernel config?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Wed Dec 13, 2023 8:57 am    Post subject: Reply with quote

turtles wrote:
Did you enable
Code:
CONFIG_SND_SOC_SOF_ALDERLAKE
in your kernel config?


Code:
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl

snd_hda_intel was loaded by default.

It seem to me that CONFIG_SND_SOC_SOF_ALDERLAKE is linked to snd_sof_pci_intel_tgl module :
Code:

Symbol: SND_SOC_SOF_ALDERLAKE [=m]                                                                                                                                                                                                                     │
  │ Type  : tristate                                                                                                                                                                                                                                       │
  │ Defined at sound/soc/sof/intel/Kconfig:239                                                                                                                                                                                                             │
  │   Prompt: SOF support for Alderlake                                                                                                                                                                                                                    │
  │   Depends on: SOUND [=y] && SND [=m] && SND_SOC [=m] && SND_SOC_SOF_TOPLEVEL [=y] && SND_SOC_SOF_INTEL_TOPLEVEL [=y] && SND_SOC_SOF_PCI [=m]                                                                                                           │
  │   Location:                                                                                                                                                                                                                                            │
  │     -> Device Drivers                                                                                                                                                                                                                                  │
  │       -> Sound card support (SOUND [=y])                                                                                                                                                                                                               │
  │         -> Advanced Linux Sound Architecture (SND [=m])                                                                                                                                                                                                │
  │           -> ALSA for SoC audio support (SND_SOC [=m])                                                                                                                                                                                                 │
  │             -> Sound Open Firmware Support (SND_SOC_SOF_TOPLEVEL [=y])                                                                                                                                                                                 │
  │               -> SOF support for Intel audio DSPs (SND_SOC_SOF_INTEL_TOPLEVEL [=y])                                                                                                                                                                    │
  │ (2)             -> SOF support for Alderlake (SND_SOC_SOF_ALDERLAKE [=m])                                                                                                                                                                              │
  │ Selects: SND_SOC_SOF_INTEL_TGL [=m]


Also, i have already force to load and use snd_sof_pci_intel_tgl instead of snd_hda_intel into /etc/modprobe.d/alsa.conf :
Code:

# \!/ if used, there is no cards detected
# forcing the second driver i.e. snd_sof_pci_intel_tgl
options snd_intel_dspcfg dsp_driver=2

But i noticed that there is no cards detected...
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Wed Dec 13, 2023 9:42 am    Post subject: Reply with quote

Notes :
Code:
zcat /proc/config.gz |egrep -i alderlake
CONFIG_PINCTRL_ALDERLAKE=m
CONFIG_SND_SOC_SOF_ALDERLAKE=m


modprobe snd_soc_sof_alderlake
modprobe: FATAL: Module snd_soc_sof_alderlake not found in directory /lib/modules/6.6.6-gentoo

find /lib/modules/6.6.6-gentoo -type f -iname "*alderlake*"
/lib/modules/6.6.6-gentoo/kernel/drivers/pinctrl/intel/pinctrl-alderlake.ko.zst


I've blacklisted :
Code:
vgrep /etc/modprobe.d/alsa.conf
blacklist snd_hda_intel


Code:
 inxi -Faz
Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A
    bus-ID: 00:05.0 chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: N/A alternate: snd_hda_intel, snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.6.6-gentoo status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.80 status: off with: 1: pipewire-pulse
    status: off 2: wireplumber status: off 3: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl


Note driver: N/A alternate: snd_hda_intel, snd_sof_pci_intel_tgl bus-ID: 00:1f.3

Code:

lsmod |egrep -i snd
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_seq               163840  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_sof_pci_intel_tgl    20480  0
snd_sof_intel_hda_common   356352  1 snd_sof_pci_intel_tgl
snd_soc_hdac_hda       32768  1 snd_sof_intel_hda_common
snd_sof_pci            32768  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink    45056  1 snd_sof_intel_hda_common
snd_sof_intel_hda      28672  1 snd_sof_intel_hda_common
snd_sof               643072  3 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_hda
snd_sof_utils          16384  1 snd_sof
snd_soc_acpi_intel_match   180224  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           20480  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_hda_ext_core       45056  4 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_core          667648  3 snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_hda_codec_realtek   339968  0
snd_compress           40960  1 snd_soc_core
snd_hda_codec_generic   180224  1 snd_hda_codec_realtek
snd_intel_dspcfg       32768  2 snd_sof,snd_sof_intel_hda_common
snd_hda_codec         348160  4 snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          208896  7 snd_hda_codec_generic,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_hwdep              24576  1 snd_hda_codec
snd_pcm               290816  7 snd_hda_codec,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core
snd_timer              77824  3 snd_seq,snd_hrtimer,snd_pcm
snd                   212992  13 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm


There is no CONFIG_SND_SOC_SOF_ALDERLAKE module.

The card is not detected.
Code:

cat /proc/asound/cards
--- no soundcards ---


Note :
I've installed Pipiwire since. I played a song with mocp and there is sound from the headphones but not from the speakers.
alsamixer display only "Master and Capture" volume control into the Card:PipeWire. No others cards, with F6.
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Wed Dec 13, 2023 1:35 pm    Post subject: Reply with quote

Right now, the module snd-hda-intel is using with the configs below and i have the sound from the headphones but no sound from the speakers :
Note : with PipeWire or Pulseaudio, there is no sound from the speakers.

Code:

vgrep /etc/modprobe.d/alsa.conf
options snd-hda-intel power_save=0
options snd-hda-intel model=dell-xps13


Code:

vgrep /etc/conf.d/modules
modules="kvm-intel vhost_net"
modules="sch_netem"
modules="snd_hda_codec_realtek"
modules="pinctrl_alderlake"

Code:

inxi -Aa
Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A
    bus-ID: 00:05.0 chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.6.6-gentoo status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.80 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active 3: pw-jack
    type: plugin tools: pactl,pw-cat,pw-cli,wpctl


Code:

lsmod |egrep snd
snd_usb_audio         806912  0
snd_usbmidi_lib        69632  1 snd_usb_audio
snd_rawmidi            73728  1 snd_usbmidi_lib
mc                    139264  1 snd_usb_audio
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_seq               163840  7 snd_seq_dummy
snd_seq_device         16384  2 snd_seq,snd_rawmidi
snd_sof_pci_intel_tgl    20480  0
snd_sof_intel_hda_common   356352  1 snd_sof_pci_intel_tgl
snd_soc_hdac_hda       32768  1 snd_sof_intel_hda_common
snd_sof_pci            32768  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_sof_intel_hda_mlink    45056  1 snd_sof_intel_hda_common
snd_sof_intel_hda      28672  1 snd_sof_intel_hda_common
snd_sof               643072  3 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_intel_hda
snd_sof_utils          16384  1 snd_sof
snd_soc_acpi_intel_match   180224  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
snd_soc_acpi           20480  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
snd_hda_ext_core       45056  4 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,snd_sof_intel_hda
snd_soc_core          667648  3 snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
snd_hda_codec_hdmi    159744  1
snd_compress           40960  1 snd_soc_core
snd_hda_intel          94208  2
snd_intel_dspcfg       32768  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_hda_codec         348160  4 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          208896  7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof_intel_hda_common,
snd_soc_hdac_hda,snd_sof_intel_hda
snd_hwdep              24576  2 snd_usb_audio,snd_hda_codec
snd_pcm               290816  10 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_sof,snd_sof_intel_hda_common,
snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core
snd_timer              77824  3 snd_seq,snd_hrtimer,snd_pcm
snd                   212992  20 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,
snd_hda_codec,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi


[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1669

PostPosted: Wed Dec 13, 2023 3:42 pm    Post subject: Reply with quote

y351 wrote:
Right now, the module snd-hda-intel is using with the configs below and i have the sound from the headphones but no sound from the speakers :
Note : with PipeWire or Pulseaudio, there is no sound from the speakers.

Did you use udev-detect with pulse?
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-udev-detect
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54385
Location: 56N 3W

PostPosted: Thu Dec 14, 2023 12:21 pm    Post subject: Reply with quote

y351,

From chip-ID: 8086:51c8, cateee.net says you need
Code:
CONFIG_SND_SOC_SOF_INTEL_TGL


That's from the Sound Open Firmware sound stack.
It has all its own CODECS, in addition,
Code:
sys-firmware/sof-firmware
is usually required.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 14, 2023 2:47 pm    Post subject: Reply with quote

turtles wrote:
y351 wrote:
Right now, the module snd-hda-intel is using with the configs below and i have the sound from the headphones but no sound from the speakers :
Note : with PipeWire or Pulseaudio, there is no sound from the speakers.

Did you use udev-detect with pulse?
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-udev-detect


Code:
egrep -ri udev /etc/pulse/*
/etc/pulse/system.pa:.ifexists module-udev-detect.so
/etc/pulse/system.pa:load-module module-udev-detect
/etc/pulse/system.pa:### Use the static hardware detection module (for systems that lack udev/hal support)


I think so.
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 14, 2023 2:56 pm    Post subject: Reply with quote

NeddySeagoon wrote:
y351,

From chip-ID: 8086:51c8, cateee.net says you need
Code:
CONFIG_SND_SOC_SOF_INTEL_TGL


That's from the Sound Open Firmware sound stack.
It has all its own CODECS, in addition,
Code:
sys-firmware/sof-firmware
is usually required.


NeddySeagoon,

You say that i must use the snd_sof_pci_intel_tgl driver instead of snd_hda_intel , right ?
Such as:
Code:
/etc/modprobe.d/alsa.conf

Code:

#options snd_hda_intel index=0 model=dell-xps13
blacklist snd_hda_intel
options snd_sof_pci_intel_tgl index=0
options snd-usb-audio index=1


It seem that i've already gave a try with this driver and it did not work.
Let's try again.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1696

PostPosted: Thu Dec 14, 2023 3:16 pm    Post subject: Reply with quote

y351 wrote:
Code:
vgrep /etc/conf.d/modules
modules="kvm-intel vhost_net"
modules="sch_netem"
modules="snd_hda_codec_realtek"
modules="pinctrl_alderlake"


FWIW, this file is not cumulative. Only the final line is used. To use all of them, it should be modules="kvm-intel vhost_net sch_netem snd_hda_codec_realtek pinctrl_alderlake"
If you would rather list modules one on each line, use a new /etc/modules-load.d/*.conf file. While this style may have been introduced by systemd, OpenRC will read and respect these files as well.
Example of a /etc/modules-load.d/mod.conf file:
Code:
kvm-intel
vhost_net
sch_netem
snd_hda_codec_realtek
pinctrl_alderlake
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 14, 2023 3:39 pm    Post subject: Reply with quote

After blacklisting snd_hda_intel

Code:
inxi -Aa
Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A bus-ID: 00:05.0
    chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell driver: N/A
    alternate: snd_hda_intel, snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:51c8
    class-ID: 0401
  Device-3: Realtek USB Audio driver: snd-usb-audio type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
    mode: 2.0 bus-ID: 3-1.3.4:9 chip-ID: 0bda:402e class-ID: 0102 serial: 200901010001
  API: ALSA v: k6.6.7-gentoo status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.80 status: n/a (root, process) with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl


Code:
cat /proc/asound/cards
 1 [Dock           ]: USB-Audio - WD19 Dock
                      Dell-WD15-Dock

cat /proc/asound/modules
 1 snd_usb_audio


There is not anymore PCH sound card.

The Earphones is working, either connected to the laptop or to the Dock.
The speakers from the Screen connected to the Dock does not work ; alsamixer does not show the speakers control volume.
The intern speakers of the laptop is not detected since the module snd_hda_intel was blacklisted.

Note : Since Pipewire is installed, alsamixer - by default - has only "Master and Capture" volume control.

How to get back the PCH card to work and to force the use of snd_sof_pci_intel_tgl ?
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 14, 2023 3:49 pm    Post subject: Reply with quote

grknight wrote:

FWIW, this file is not cumulative. Only the final line is used. To use all of them, it should be modules="kvm-intel vhost_net sch_netem snd_hda_codec_realtek pinctrl_alderlake"


Oups ! i've corrected.
Thanks.
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 28, 2023 2:41 pm    Post subject: Reply with quote

To force the use of SOF :
Code:
vgrep /etc/modprobe.d/alsa.conf
Code:

options snd_hda_intel index=0
options snd-usb-audio index=1,2,3
options snd_intel_dspcfg dsp_driver=3


List of addiontional modules :
Code:
vgrep /etc/conf.d/modules
Code:
modules="vhost_net sch_netem \
        snd_hda_codec_realtek \
        pinctrl_alderlake \
        snd_hda_codec_analog \
        snd_soc_intel_hda_dsp_common \
        snd_soc_hdac_hdmi \
        snd_soc_skl_hda_dsp \
        snd_soc_skl \
        snd_soc_rt715_sdca \
        snd_soc_sof_sdw \
        snd_ac97_codec \
        "


Loaded modules :
Code:

lsmod |egrep snd
Code:

snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_seq               163840  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_sof_probes         36864  0
snd_ctl_led            32768  0
snd_ac97_codec        368640  0
snd_soc_sof_sdw       135168  6
snd_hda_codec_hdmi    159744  1
snd_soc_intel_sof_maxim_common    28672  1 snd_soc_sof_sdw
snd_soc_rt1316_sdw     45056  2
snd_soc_rt715_sdca     61440  1
snd_soc_dmic           16384  0
regmap_sdw_mbq         12288  1 snd_soc_rt715_sdca
regmap_sdw             12288  2 snd_soc_rt715_sdca,snd_soc_rt1316_sdw
snd_sof_pci_intel_tgl    20480  2
snd_sof_intel_hda_common   368640  1 snd_sof_pci_intel_tgl
snd_soc_skl           356352  0
snd_sof_pci            32768  2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl
soundwire_intel       110592  4 snd_sof_intel_hda_common
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_soc_sst_dsp        53248  1 snd_soc_skl
snd_sof_intel_hda_mlink    45056  2 soundwire_intel,snd_sof_intel_hda_common
snd_sof_intel_hda      28672  1 snd_sof_intel_hda_common
snd_sof_xtensa_dsp     20480  1 snd_sof_intel_hda_common
snd_soc_skl_hda_dsp    40960  0
snd_sof               643072  4 snd_sof_pci,snd_sof_intel_hda_common,snd_sof_probes,snd_sof_intel_hda
snd_soc_hdac_hdmi      65536  1 snd_soc_skl_hda_dsp
snd_sof_utils          16384  1 snd_sof
snd_soc_hdac_hda       32768  2 snd_sof_intel_hda_common,snd_soc_skl
snd_soc_acpi_intel_match   180224  3 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl,snd_soc_skl
snd_soc_intel_hda_dsp_common    16384  2 snd_soc_sof_sdw,snd_soc_skl_hda_dsp
snd_soc_acpi           20480  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
snd_hda_ext_core       45056  6 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_sof_intel_hda_mlink,
snd_soc_skl,snd_sof_intel_hda
soundwire_bus         200704  8 snd_soc_sof_sdw,snd_soc_rt715_sdca,regmap_sdw,snd_soc_rt1316_sdw,regmap_sdw_mbq,soundwire_intel,
soundwire_generic_allocation,soundwire_cadence
snd_hda_codec_analog    32768  0
snd_soc_core          692224  13 snd_soc_sof_sdw,snd_soc_rt715_sdca,snd_soc_rt1316_sdw,soundwire_intel,snd_sof,snd_sof_intel_hda_common,
snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_intel_sof_maxim_common,snd_soc_skl,snd_sof_probes,
snd_soc_dmic,snd_soc_skl_hda_dsp
snd_compress           40960  2 snd_soc_core,snd_sof_probes
snd_pcm_dmaengine      16384  1 snd_soc_core
ac97_bus               12288  2 snd_ac97_codec,snd_soc_core
snd_hda_codec_realtek   339968  0
snd_hda_intel          94208  0
snd_hda_codec_generic   180224  2 snd_hda_codec_analog,snd_hda_codec_realtek
snd_intel_dspcfg       40960  4 snd_hda_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_skl
snd_intel_sdw_acpi     16384  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         348160  10 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec_realtek,
snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda,snd_soc_skl_hda_dsp
snd_hda_core          208896  13 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_analog,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_soc_skl,snd_sof_intel_hda
snd_hwdep              24576  1 snd_hda_codec
snd_pcm               290816  18 snd_soc_rt715_sdca,snd_hda_codec_hdmi,snd_soc_rt1316_sdw,snd_hda_intel,snd_hda_codec,
soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_ac97_codec,
snd_soc_core,snd_sof_utils,snd_soc_intel_sof_maxim_common,snd_soc_skl,snd_hda_core,
snd_pcm_dmaengine
snd_timer              77824  3 snd_seq,snd_hrtimer,snd_pcm
snd                   212992  31 snd_ctl_led,snd_hda_codec_generic,snd_soc_sof_sdw,snd_seq,snd_seq_device,snd_hda_codec_hdmi,
snd_hwdep,snd_hda_intel,snd_hda_codec_analog,snd_hda_codec,snd_hda_codec_realtek,
snd_sof,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_ac97_codec,snd_soc_core,snd_pcm


Code:
cat /proc/asound/cards
Code:

 0 [sofsoundwire   ]: sof-soundwire - sof-soundwire
                      Intel Soundwire SOF


Code:
cat /proc/asound/devices
Code:

  1:        : sequencer
  2: [ 0- 2]: digital audio playback
  3: [ 0- 4]: digital audio capture
  4: [ 0- 5]: digital audio playback
  5: [ 0- 6]: digital audio playback
  6: [ 0- 7]: digital audio playback
  7: [ 0- 2]: hardware dependent
  8: [ 0]   : control
 33:        : timer

Code:
cat /proc/asound/modules
Code:

 0 snd_soc_sof_sdw


I do not know whether it is for the best or not but i have sound on speakers with SOF instead of snd_hda_intel.

Code:
inxi -Aa
Code:

Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A bus-ID: 00:05.0
    chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.6.8-gentoo status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.80 status: n/a (root, process) with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl


[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Thu Dec 28, 2023 2:46 pm    Post subject: Reply with quote

I've tried to create a wiki page but there is a bug : https://bugs.gentoo.org/910279

[Moderator edit: fixed [bug] tag. The original was [bug=], which caused the link to point to the root of https://bugs.gentoo.org/, not to a specific bug. -Hu]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum