Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound from Sound Blaster ZxR but onboard working fine
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
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Fri Dec 29, 2023 2:07 pm    Post subject: No sound from Sound Blaster ZxR but onboard working fine Reply with quote

I tried reinstall Gentoo Linux in various ways to fix other problem but now I don't understand why it come to this. There's no sound output from any channel from my Sound Blaster ZxR but when I test sound on setting window of GNOME there's sound level symbol response to my click test on speaker picture but no sound out from speaker. If I try changing audio device around or adjust sound level and click test sound, the setting window freeze. But when I changed the output to USB audio which is onboard audio on my motherboard, there's sound output just fine. As when I saw this problem, I connect my headphone to onboard audio and my speaker to Sound Blaster ZxR.

The thing is, just a few days ago, when I tried installing Gentoo on this PC using Genkernel, I got sound output from ZxR properly after I enable Pipewire; but that time I meet other problem that is WiFi not working and web browser have very awful responsiveness when open some webpage first time after boot (up to 5-10 minutes to get the first webpage to load)and continued to have that slow response when open next and next webpage. I tried to fix that by reinstall the whole thing, this time using distribution kernel. I still get sound from ZxR and webpage responsiveness overall aside from first time after boot seem to become normal and even completely fine on Google Chrome, but it seems instructions on Gentoo handbook regarding distribution kernel and Nvidia driver seems to get Nvidia driver not installed properly that the Nvidia X Setting almost have nothing on it and can't execute nvidia-smi, and the WiFi still not usable. So, I tried again using manually configured kernel, and then everything is the same as second time but this time there's no sound output from ZxR. I already set CONFIG_SND_HDA_CODEC_CA0132=y and CONFIG_SND_HDA_CODEC_CA0132_DSP=y. I even tried enable all HD Audio codec available in kernel setting and recompile the kernel and there's still no sound output from ZxR. I don't understand what's gone wrong as ZxR used to work on Genkernel and distribution kernel just yesterday. Not to say that the loading of first webpage after boot especially in Firefox still not fix and WiFi still unusable, I tried those on other distro's live CD on this same PC and they're working flawlessly. I don't know what I do wrong anymore.

lspci -k

Code:

00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. 12th Gen Core Processor Host Bridge/DRAM Registers
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
   Subsystem: ASUSTeK Computer Inc. 12th Gen Core Processor PCI Express x16 Controller
   Kernel driver in use: pcieport
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Platform Monitoring Technology
00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Volume Management Device NVMe RAID Controller
00:14.0 USB controller: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Alder Lake-S PCH Shared SRAM (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Alder Lake-S PCH CNVi WiFi (rev 11)
   DeviceName: Onboard - Ethernet
   Subsystem: Intel Corporation Wi-Fi 6 AX201 160MHz
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi
00:15.0 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #0 (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH Serial IO I2C Controller
00:15.1 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #1 (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH Serial IO I2C Controller
00:15.2 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #2 (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH Serial IO I2C Controller
00:16.0 Communication controller: Intel Corporation Alder Lake-S PCH HECI Controller #1 (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH HECI Controller
00:17.0 SATA controller: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] (rev 11)
   DeviceName: Onboard - SATA
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH SATA Controller [AHCI Mode]
   Kernel driver in use: ahci
00:1a.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #25 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH PCI Express Root Port
   Kernel driver in use: pcieport
00:1b.0 PCI bridge: Intel Corporation Device 7ac0 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Kernel driver in use: pcieport
00:1b.4 PCI bridge: Intel Corporation Device 7ac4 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Kernel driver in use: pcieport
00:1c.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH PCI Express Root Port
   Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Device 7abb (rev 11)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #5 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH PCI Express Root Port
   Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #9 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH PCI Express Root Port
   Kernel driver in use: pcieport
00:1d.1 PCI bridge: Intel Corporation Device 7ab1 (rev 11)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Z690 Chipset LPC/eSPI Controller (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Z690 Chipset LPC/eSPI Controller
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
   DeviceName: Onboard - Sound
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S HD Audio Controller
   Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Alder Lake-S PCH SMBus Controller (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH SMBus Controller
   Kernel driver in use: i801_smbus
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-S PCH SPI Controller (rev 11)
   DeviceName: Onboard - Other
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
   Subsystem: NVIDIA Corporation GA102 [GeForce RTX 3090]
   Kernel driver in use: nvidia
   Kernel modules: nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)
   Subsystem: NVIDIA Corporation GA102 High Definition Audio Controller
   Kernel driver in use: snd_hda_intel
04:00.0 Non-Volatile memory controller: Sandisk Corp WD PC SN810 / Black SN850 NVMe SSD (rev 01)
   Subsystem: Sandisk Corp WD PC SN810 / Black SN850 NVMe SSD
   Kernel driver in use: nvme
05:00.0 Ethernet controller: Aquantia Corp. AQC113CS NBase-T/IEEE 802.3bz Ethernet Controller [AQtion] (rev 03)
   Subsystem: ASUSTeK Computer Inc. ProArt X570-CREATOR WIFI
   Kernel driver in use: atlantic
   Kernel modules: atlantic
06:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
   Subsystem: ASUSTeK Computer Inc. ASM1062 Serial ATA Controller
   Kernel driver in use: ahci
07:00.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 Bridge [Maple Ridge 4C 2020]
   Kernel driver in use: pcieport
08:00.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 Bridge [Maple Ridge 4C 2020]
   Kernel driver in use: pcieport
08:01.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 Bridge [Maple Ridge 4C 2020]
   Kernel driver in use: pcieport
08:02.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 Bridge [Maple Ridge 4C 2020]
   Kernel driver in use: pcieport
08:03.0 PCI bridge: Intel Corporation Thunderbolt 4 Bridge [Maple Ridge 4C 2020] (rev 02)
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 Bridge [Maple Ridge 4C 2020]
   Kernel driver in use: pcieport
09:00.0 USB controller: Intel Corporation Thunderbolt 4 NHI [Maple Ridge 4C 2020]
   Subsystem: ASUSTeK Computer Inc. Thunderbolt 4 NHI [Maple Ridge 4C 2020]
   Kernel driver in use: thunderbolt
3d:00.0 USB controller: Intel Corporation Thunderbolt 4 USB Controller [Maple Ridge 4C 2020]
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
71:00.0 Audio device: Creative Labs CA0132 Sound Core3D [Sound Blaster Recon3D / Z-Series / Sound BlasterX AE-5 Plus] (rev 01)
   Subsystem: Creative Labs SB1570 SB Audigy Fx
   Kernel driver in use: snd_hda_intel
72:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)
   Subsystem: ASUSTeK Computer Inc. Ethernet Controller I225-V
   Kernel driver in use: igc


/usr/src/linux/.config section HD Audio
Code:

# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
CONFIG_SND_HDA_CODEC_CS8409=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
# CONFIG_SND_HDA_CTL_DEV_ID is not set
# end of HD-Audio


emerge --info
Code:

Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r8, 6.6.8-gentoo x86_64)
=================================================================
System uname: Linux-6.6.8-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i9-12900K-with-glibc2.38
KiB Mem:    32565512 total,  29662324 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Thu, 28 Dec 2023 15:00:01 +0000
Head commit of repository gentoo: 450760646ed86190d5eedc936d55022f80920a39
sh bash 5.2_p21-r1
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/cmake:            3.28.1::gentoo
dev-util/meson:            1.3.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.2::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20231215::gentoo, 13.2.1_p20231216::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/sandbox.d"
CXXFLAGS="-march=alderlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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="-march=alderlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=alderlake -O2 -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/     http://mirror.aarnet.edu.au/pub/gentoo/     rsync://mirror.aarnet.edu.au/pub/gentoo/     ftp://ftp.swin.edu.au/gentoo     http://ftp.swin.edu.au/gentoo     https://mirrors.aliyun.com/gentoo/     http://mirrors.aliyun.com/gentoo/     https://mirrors.nju.edu.cn/gentoo/     http://mirrors.nju.edu.cn/gentoo/     https://mirror.lzu.edu.cn/gentoo     http://mirror.lzu.edu.cn/gentoo     https://mirrors.163.com/gentoo/     http://mirrors.163.com/gentoo/     https://mirrors.tuna.tsinghua.edu.cn/gentoo     https://mirrors.ustc.edu.cn/gentoo/     rsync://rsync.mirrors.ustc.edu.cn/gentoo/     https://mirrors.zju.edu.cn/gentoo/     http://mirrors.zju.edu.cn/gentoo/     rsync://mirrors.zju.edu.cn/gentoo/     http://gentoo.aditsu.net:8000/     https://mirror.rackspace.com/gentoo/     http://mirror.rackspace.com/gentoo/     rsync://mirror.rackspace.com/gentoo/     https://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/     http://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/     rsync://ftp.iij.ad.jp/pub/linux/gentoo/     http://ftp.iij.ad.jp/pub/linux/gentoo/     ftp://ftp.iij.ad.jp/pub/linux/gentoo/     https://ftp.jaist.ac.jp/pub/Linux/Gentoo/     http://ftp.jaist.ac.jp/pub/Linux/Gentoo/     ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/     rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/     https://repo.jing.rocks/gentoo     http://repo.jing.rocks/gentoo     rsync://repo.jing.rocks/gentoo     https://ftp.riken.jp/Linux/gentoo/     http://ftp.riken.jp/Linux/gentoo/     rsync://ftp.riken.jp/gentoo/     https://mirror.lagoon.nc/gentoo/     http://mirror.lagoon.nc/gentoo/     ftp://mirror.lagoon.nc/gentoo/     rsync://mirror.lagoon.nc/gentoo/     ftp://mirror.rise.ph/gentoo     http://mirror.rise.ph/gentoo     http://ftp.kaist.ac.kr/pub/gentoo/     https://ftp.kaist.ac.kr/pub/gentoo/     ftp://ftp.kaist.ac.kr/gentoo/     rsync://ftp.kaist.ac.kr/gentoo/     https://ftp.lanet.kr/pub/gentoo/     http://ftp.twaren.net/Linux/Gentoo/     ftp://ftp.twaren.net/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j16 -l16"
PKGDIR="/var/cache/binpkgs"
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 a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cuda cups dbus dri dts dvd dvdr eds encode evo exif extra ffmpeg flac flatpak fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl nvenc ogg opengl openmp pam pango pcre pdf pipewire-alsa png policykit ppds pulseaudio python readline sdl seccomp sound sound-server spell ssl startup-notification svg sysprof systemd test-rust tiff tools tracker truetype udev udisks unicode upower usb vdpau vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" 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" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Dec 29, 2023 8:42 pm    Post subject: Reply with quote

KarnRedsun,

Welcome to Gentoo.

What do yon have in /proc/asound/devices ?
Please post it.

What does
Code:
ls -l /dev/snd
show?

Quote:
... tried to fix that by reinstall the whole thing,
Gentoo does not respond well to that approach.
Understand the problem and fix it. Then move onto the next problem.
Reinstalling only provides opportunities to make different errors, or if you are unlucky, make the same error again.
_________________
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
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Fri Dec 29, 2023 10:08 pm    Post subject: Reply with quote

/proc/asound/devices
Code:

  1:        : sequencer
  2: [ 0]   : control
  3: [ 1- 3]: digital audio playback
  4: [ 1- 7]: digital audio playback
  5: [ 1- 8]: digital audio playback
  6: [ 1- 9]: digital audio playback
  7: [ 1- 0]: hardware dependent
  8: [ 1]   : control
  9: [ 3- 0]: digital audio playback
 10: [ 3- 0]: digital audio capture
 11: [ 3- 1]: digital audio playback
 12: [ 3- 1]: digital audio capture
 13: [ 3- 2]: digital audio playback
 14: [ 3- 2]: digital audio capture
 15: [ 3- 3]: digital audio playback
 16: [ 3]   : control
 17: [ 2- 0]: digital audio playback
 18: [ 2- 0]: digital audio capture
 19: [ 2- 2]: digital audio capture
 20: [ 2- 4]: digital audio capture
 21: [ 2- 1]: digital audio playback
 22: [ 2- 1]: digital audio capture
 23: [ 2- 1]: hardware dependent
 24: [ 2- 2]: hardware dependent
 25: [ 2]   : control
 33:        : timer


ls -l /dev/snd
Code:

total 0
drwxr-xr-x  2 root root       60 Dec 30 05:00 by-id
drwxr-xr-x  2 root root      140 Dec 30 05:00 by-path
crw-rw----+ 1 root audio 116,  2 Dec 30 05:00 controlC0
crw-rw----+ 1 root audio 116,  8 Dec 30 05:00 controlC1
crw-rw----+ 1 root audio 116, 25 Dec 30 05:00 controlC2
crw-rw----+ 1 root audio 116, 16 Dec 30 05:00 controlC3
crw-rw----+ 1 root audio 116,  7 Dec 30 05:00 hwC1D0
crw-rw----+ 1 root audio 116, 23 Dec 30 05:00 hwC2D1
crw-rw----+ 1 root audio 116, 24 Dec 30 05:00 hwC2D2
crw-rw----+ 1 root audio 116,  3 Dec 30 05:01 pcmC1D3p
crw-rw----+ 1 root audio 116,  4 Dec 30 05:01 pcmC1D7p
crw-rw----+ 1 root audio 116,  5 Dec 30 05:01 pcmC1D8p
crw-rw----+ 1 root audio 116,  6 Dec 30 05:01 pcmC1D9p
crw-rw----+ 1 root audio 116, 18 Dec 30 05:01 pcmC2D0c
crw-rw----+ 1 root audio 116, 17 Dec 30 05:01 pcmC2D0p
crw-rw----+ 1 root audio 116, 22 Dec 30 05:01 pcmC2D1c
crw-rw----+ 1 root audio 116, 21 Dec 30 05:01 pcmC2D1p
crw-rw----+ 1 root audio 116, 19 Dec 30 05:01 pcmC2D2c
crw-rw----+ 1 root audio 116, 20 Dec 30 05:01 pcmC2D4c
crw-rw----+ 1 root audio 116, 10 Dec 30 05:01 pcmC3D0c
crw-rw----+ 1 root audio 116,  9 Dec 30 05:05 pcmC3D0p
crw-rw----+ 1 root audio 116, 12 Dec 30 05:01 pcmC3D1c
crw-rw----+ 1 root audio 116, 11 Dec 30 05:00 pcmC3D1p
crw-rw----+ 1 root audio 116, 14 Dec 30 05:01 pcmC3D2c
crw-rw----+ 1 root audio 116, 13 Dec 30 05:00 pcmC3D2p
crw-rw----+ 1 root audio 116, 15 Dec 30 05:00 pcmC3D3p
crw-rw----+ 1 root audio 116,  1 Dec 30 05:00 seq
crw-rw----+ 1 root audio 116, 33 Dec 30 05:00 timer
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 30, 2023 11:53 am    Post subject: Reply with quote

KarnRedsun,

You have four soundcards there numbered 0..3. Your kernel looks OK.
Code:
alsamixer
can show them all.

Code:
00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11)
   DeviceName: Onboard - Sound
   Subsystem: ASUSTeK Computer Inc. Alder Lake-S HD Audio Controller
   Kernel driver in use: snd_hda_intel
01:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)
   Subsystem: NVIDIA Corporation GA102 High Definition Audio Controller
   Kernel driver in use: snd_hda_intel
71:00.0 Audio device: Creative Labs CA0132 Sound Core3D [Sound Blaster Recon3D / Z-Series / Sound BlasterX AE-5 Plus] (rev 01)
   Subsystem: Creative Labs SB1570 SB Audigy Fx
   Kernel driver in use: snd_hda_intel


That's three sound cards or the PCI bus and I guess that card0 is USB as it only has a control.

Also will output to card0 device0 by default. Everything else must be configured.
Pulseaudio and pipewire are layer on top of alsa.

You should be able to test any output on any soundcard with speaker-test but its command line is a bit cryptic.
VLC allows you to change audio outputs while something is playing. Its much bigger but has a GUI.
If speaker-test or VLC work, where you go from here depends on how you want to set up sound.

The choices are alsa, pulseautio or pipewire.
_________________
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
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Sat Dec 30, 2023 3:10 pm    Post subject: Reply with quote

It's doing the same thing. In VLC there's still no sound when I select audio device as CA0132 Sound Core 3D Analog stereo, there's sound when switching to USB Audio Speaker which is from onboard. I just want sound from ZxR.

Alsamixer is only for power level control and it's default at pipewire, so as default it default at whatever has been set in desktop setting. I F6 to select default:2 HDA Creative and all it show up is current sound level that has been set which is 100% in master and I don't think I have anything to do with that.

I run speaker-test and it seems to work properly until I stop it. But there's no sound out of speaker that connect to ZxR
Code:

speaker-test 1.2.10

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 2097152
Period size range from 64 to 1048576
Using max buffer size 2097152
Periods = 4
was set period_size = 524288
was set buffer_size = 2097152
 0 - Mono
Time per period = 11.021170
 0 - Mono
Time per period = 11.008626
 0 - Mono
Time per period = 11.008414
 0 - Mono
Time per period = 11.008625
 0 - Mono
Time per period = 11.008628
 0 - Mono
Time per period = 11.008534
 0 - Mono
Time per period = 11.008543
 0 - Mono
^CTime per period = 11.008493


So I tried to specify the device to test. My aplay -L is
Code:

null
    Discard all samples (playback) or generate zero samples (capture)
default
    Default ALSA Output (currently PipeWire Media Server)
pipewire
    PipeWire Sound Server
front:CARD=PCH
    Front output / input
surround21:CARD=PCH
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, DELL U3014
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
sysdefault:CARD=Creative
    HDA Creative, CA0132 Analog
    Default Audio Device
front:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    Front output / input
surround21:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Creative,DEV=0
    HDA Creative, CA0132 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Creative,DEV=0
    HDA Creative, CA0132 Digital
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=Audio
    USB Audio, USB Audio
    Default Audio Device
front:CARD=Audio,DEV=0
    USB Audio, USB Audio
    Front output / input
surround21:CARD=Audio,DEV=0
    USB Audio, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Audio,DEV=0
    USB Audio, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
    USB Audio, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
    USB Audio, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
    USB Audio, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
    USB Audio, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
    USB Audio, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=Audio,DEV=1
    USB Audio, USB Audio #1
    IEC958 (S/PDIF) Digital Audio Output


I tried testing speaker that out from ZxR by running
Code:
speaker-test -Dfront:Creative -c 2
and then
Code:

speaker-test 1.2.10

Playback device is front:Creative
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
Unable to set hw params for playback: Invalid argument
Setting of hwparams failed: Invalid argument


Am I doing right?
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 251

PostPosted: Sun Dec 31, 2023 4:08 pm    Post subject: Reply with quote

Do you have sys-firmware/alsa-firmware installed? That should bring in necessary firmware files for ca0132. Please check your dmesg for any relevant messages.
Back to top
View user's profile Send private message
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Tue Jan 02, 2024 8:54 am    Post subject: Reply with quote

garrison wrote:
Do you have sys-firmware/alsa-firmware installed? That should bring in necessary firmware files for ca0132. Please check your dmesg for any relevant messages.


Of course I have alsa-firmware installed, the fact that I can set the output to CA0132 in the first place is because their is driver. But there's no sound whatsoever.

dmesg | grep snd
Code:
[    0.783727] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    0.784135] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    0.784466] snd_hda_intel 0000:01:00.1: Disabling MSI
[    0.784834] snd_hda_intel 0000:71:00.0: enabling device (0000 -> 0002)
[    0.785193] snd_hda_intel 0000:71:00.0: Disabling MSI
[    0.785526] snd_hda_intel 0000:71:00.0: Force to non-snoop mode
[    0.785960] usbcore: registered new interface driver snd-usb-audio
[    0.793070] snd_hda_intel 0000:00:1f.3: no codecs found!
[    0.808991] snd_hda_codec_ca0132 hdaudioC2D1: autoconfig for Sound Blaster ZxR: line_outs=3 (0xb/0x11/0x10/0x0/0x0) type:line
[    0.809489] snd_hda_codec_ca0132 hdaudioC2D1:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    0.810133] snd_hda_codec_ca0132 hdaudioC2D1:    hp_outs=1 (0xf/0x0/0x0/0x0/0x0)
[    0.810135] snd_hda_codec_ca0132 hdaudioC2D1:    mono: mono_out=0x0
[    0.810136] snd_hda_codec_ca0132 hdaudioC2D1:    dig-out=0xd/0x0
[    0.810137] snd_hda_codec_ca0132 hdaudioC2D1:    inputs:
[    0.810138] snd_hda_codec_ca0132 hdaudioC2D1:      Mic=0x12
[    0.810139] snd_hda_codec_ca0132 hdaudioC2D1:      Line=0x13
[    1.036596] snd_hda_intel 0000:71:00.0: Direct firmware load for ctefx.bin failed with error -2
[   11.117638] snd_hda_codec_ca0132 hdaudioC2D2: autoconfig for CA0132: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line
[   11.117652] snd_hda_codec_ca0132 hdaudioC2D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   11.117658] snd_hda_codec_ca0132 hdaudioC2D2:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   11.117662] snd_hda_codec_ca0132 hdaudioC2D2:    mono: mono_out=0x0
[   11.117666] snd_hda_codec_ca0132 hdaudioC2D2:    dig-out=0xc/0x0
[   11.117669] snd_hda_codec_ca0132 hdaudioC2D2:    inputs:
[   11.117672] snd_hda_codec_ca0132 hdaudioC2D2:      Aux=0x11
[   11.117694] snd_hda_codec_ca0132 hdaudioC2D2:    dig-in=0xe
[   54.921024] snd_hda_intel 0000:71:00.0: Too many BDL entries: buffer=1572864, period=49152
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 251

PostPosted: Tue Jan 02, 2024 9:10 am    Post subject: Reply with quote

I see error loading firmware due to file not found, do you have everything sound builtin and no ca0132 firmware on initramfs?

Could be easier to change everything under CONFIG_SND to =m so that firmware can be found at the right time.

Adding to that, distribution kernel has modular sound drivers so that probably explains how it worked before.
Back to top
View user's profile Send private message
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Wed Jan 03, 2024 5:24 pm    Post subject: Reply with quote

garrison wrote:
I see error loading firmware due to file not found, do you have everything sound builtin and no ca0132 firmware on initramfs?

Could be easier to change everything under CONFIG_SND to =m so that firmware can be found at the right time.

Adding to that, distribution kernel has modular sound drivers so that probably explains how it worked before.


Maybe you're right. I tried recompiled the kernel by changing all the HD audio codec option to module, there's still no sound but at the very least the sound setting window of GNOME setting didn't freeze anymore when I tried to test sound, that's an improvement. I still set Enable generic HD-audio parser to built-in as I don't know whether it is a good idea in the first place to let the generic function be a module as the ALSA page on wiki suggest that all of these option should be built-in. However the sound still didn't get out so I think I should try again with all things under HD-Audio being modules.

So these days it seems like equipment didn't like to work when tried to built them into kernel. Just before I post this thread I also have the 10G LAN and WiFi didn't load driver at all but after I set them to be modules and reconmpiled then their driver get loaded, the WiFi still not work but it didn't work on distribution kernel either so I will take that problem to another thread as it's not really connect to the current problem on this thread.

/usr/src/linux/.config section HD Audio as of now.

Code:

# HD-Audio
#
CONFIG_SND_HDA=y
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
# CONFIG_SND_HDA_SCODEC_CS35L41_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_TAS2781_I2C is not set
CONFIG_SND_HDA_CODEC_REALTEK=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_ANALOG=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_SIGMATEL=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_VIA=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_HDMI=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CIRRUS=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CS8409=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CONEXANT=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CA0110=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CA0132=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_CODEC_SI3054=m

#
# Set to Y if you want auto-loading the codec driver
#
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
# CONFIG_SND_HDA_CTL_DEV_ID is not set
# end of HD-Audio
Back to top
View user's profile Send private message
KarnRedsun
n00b
n00b


Joined: 29 Dec 2023
Posts: 8
Location: Bangkok, Thailand

PostPosted: Wed Jan 03, 2024 5:49 pm    Post subject: Reply with quote

Yes, you're right. I set CONFIG_SND_HDA=m and everything under HD-Audio also changed to module as well without any warning (Set to Y if you want auto-loading the codec driver) like previously have. Then I can get the sound out from my ZxR now. That's mean I have to set everything under HD-Audio to be module to make sound work in case of having multiple sound cards installed.

/usr/src/linux/.config section HD-Audio
Code:
# HD-Audio
#
CONFIG_SND_HDA=m
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
# CONFIG_SND_HDA_SCODEC_CS35L41_I2C is not set
# CONFIG_SND_HDA_SCODEC_CS35L56_I2C is not set
# CONFIG_SND_HDA_SCODEC_TAS2781_I2C is not set
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_CODEC_SIGMATEL=m
CONFIG_SND_HDA_CODEC_VIA=m
CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_HDA_CODEC_CIRRUS=m
CONFIG_SND_HDA_CODEC_CS8409=m
CONFIG_SND_HDA_CODEC_CONEXANT=m
CONFIG_SND_HDA_CODEC_CA0110=m
CONFIG_SND_HDA_CODEC_CA0132=m
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=m
CONFIG_SND_HDA_CODEC_SI3054=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
# CONFIG_SND_HDA_CTL_DEV_ID is not set
# end of HD-Audio


Thank you very much. :D
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