You are not logged in.

#1 2021-05-27 09:29:11

zerowipe
Member
Registered: 2021-05-27
Posts: 9

[SOLVED] ALSA - No audio following a fresh install

Hi all,

Just installed Arch and I'm having a weird issue I've never had before. I'm having a spot of trouble getting my audio working - currently getting no sound at all using ALSA. This is actually the second time I've had this issue in as many days and I completely wiped, reformatted, and reinstalled only to be met with the exact same issue.

I have not installed Pulse or Pavu or anything else - only ALSA. Before we get started I've ensured the volume is not muted, tried several different variations of .asound.conf files, and disabled Auto_Mute Mode.

When I run speaker-test -c 2:

speaker-test 1.2.4

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
Time per period = 5.652741
 0 - Front Left
 1 - Front Right
Time per period = 5.972891
 0 - Front Left
 1 - Front Right
Time per period = 5.973731
 0 - Front Left
 1 - Front Right

and for speaker-test -D sysdefault:PCH -c 2:

speaker-test 1.2.4

Playback device is sysdefault:PCH
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

Both just repeat infinitely with absolutely no sound... *sighs*

results of lspci -vnn | grep -A 1 -i audio:

00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8] (prog-if 80)
        Subsystem: ASUSTeK Computer Inc. Device [1043:1f21]
--
01:00.1 Audio device [0403]: NVIDIA Corporation TU116 High Definition Audio Controller [10de:1aeb] (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device [1043:191f]

results of lsmod | grep snd:

snd_hda_codec_realtek   151552  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
snd_sof_pci_intel_cnl    16384  0
snd_sof_intel_hda_common   106496  1 snd_sof_pci_intel_cnl
soundwire_intel        45056  1 snd_sof_intel_hda_common
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_sof               147456  2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_sof
snd_soc_skl           180224  0
snd_soc_hdac_hda       24576  2 snd_sof_intel_hda_common,snd_soc_skl
snd_hda_ext_core       36864  4 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_soc_sst_dsp        40960  1 snd_soc_skl
snd_soc_acpi_intel_match    49152  3 snd_sof_intel_hda_common,snd_soc_skl,snd_sof_pci_intel_cnl
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
snd_soc_core          331776  5 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_hdmi     73728  2
snd_hda_intel          57344  3
snd_intel_dspcfg       28672  3 snd_hda_intel,snd_sof_intel_hda_common,snd_soc_skl
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_hda_codec         172032  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core          106496  10 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_soc_skl,snd_sof_intel_hda
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               147456  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_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd_timer              45056  1 snd_pcm
snd                   114688  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore              16384  1 snd

The results of aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC294 Analog [ALC294 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

results of aplay -L | grep :CARD

default:CARD=PCH
sysdefault:CARD=PCH
front:CARD=PCH,DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
hdmi:CARD=PCH,DEV=0
hdmi:CARD=PCH,DEV=1
hdmi:CARD=PCH,DEV=2
hdmi:CARD=PCH,DEV=3
hdmi:CARD=PCH,DEV=4
usbstream:CARD=PCH
hdmi:CARD=NVidia,DEV=0
hdmi:CARD=NVidia,DEV=1
hdmi:CARD=NVidia,DEV=2
hdmi:CARD=NVidia,DEV=3
hdmi:CARD=NVidia,DEV=4
usbstream:CARD=NVidia

Any help would be greatly appreciated. As I say I've installed Arch a few times before and been humming along quite nicely for the past few years until I got this new laptop. I just set everything up in a VM on my windows machine and it was splendidly smooth.

Sorry to bother, I'm usually able to figure these things out for myself hmm Let me know if you need any further info.

Thanks in advance smile

Last edited by zerowipe (2021-05-29 00:46:00)

Offline

#2 2021-05-27 11:03:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,724

Re: [SOLVED] ALSA - No audio following a fresh install

Welcome to the boards, can you throw in a

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

strangely enough lots of soc/sof modules loaded but at least from a glance not really a SOC/SOF card present. if there is a sof card and that intel pch just a red herring, installing sof-firmware and alsa-ucm-conf might help. Also if this is a Windows dual boot, ensure fast boot is disabled: https://wiki.archlinux.org/title/Dual_b … ibernation

Offline

#3 2021-05-27 11:13:54

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,514

Re: [SOLVED] ALSA - No audio following a fresh install

the lsmod output indicates your sound hardware uses sof and needs additonal firmware .

V1del was much faster, if this does turn out to be sof hardware check https://wiki.archlinux.org/title/Advanc … A_firmware.

Last edited by Lone_Wolf (2021-05-27 11:16:03)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2021-05-27 20:55:28

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Hey guys,

Thanks for the advice - sorry for the weird timing, I'm in NZ so a little out of sync.

I will give these a go when I get home from work and update you on the results.

Offline

#5 2021-05-28 06:49:20

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Alright.

So I got home and disabled Fast Boot in Windows RegEdit just to be sure it was off - no Hibernate either. Still no luck. Installed alsa-firmware, sof-firmware, and alsa-ucm-conf and rebooted but still nothing.

output of amixer -c0:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 60 [69%] [-20.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [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 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  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 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Headset 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 'Internal 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]

output of sudo dmesg | grep -E 'snd|sof':

[    0.337030] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.337031] software IO TLB: mapped [mem 0x0000000086c0d000-0x000000008ac0d000] (64MB)
[    1.120260] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    1.120311] snd_hda_intel 0000:00:1f.3: enabling device (0004 -> 0006)
[    1.123553] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    1.123624] snd_hda_intel 0000:01:00.1: Disabling MSI
[    1.123630] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.465166] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    2.584545] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    2.584549] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.584550] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.584552] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    2.584552] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    2.584553] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    2.584554] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

I also added my user to the audio group but nothing seems to be working. I'm at a complete loss...

Offline

#6 2021-05-28 06:54:49

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Adding results of sudo fuser -v /dev/snd/* during speaker-test -c 2

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  zero       2628 F.... speaker-test
/dev/snd/pcmC0D0p:   zero       2628 F...m speaker-test
/dev/snd/timer:      zero       2628 f.... speaker-test

Offline

#7 2021-05-28 07:25:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,724

Re: [SOLVED] ALSA - No audio following a fresh install

Reads like a jack misdetection, try a

amixer -c0 set 'Auto-Mute Mode',0 Disabled

if that doesn't work running

sudo alsactl init

can often help resetting wonky HW state.

Last edited by V1del (2021-05-28 07:27:22)

Offline

#8 2021-05-28 09:23:30

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Wow okay,

So running

amixer -c0 set 'Auto-Mute Mode',0 Disabled

didn't fix it but

sudo alsactl init

gets me

alsa-lib parser.c:260:(error_node) UCM is not supported for this HDA model (HDA Intel PCH at 0xc5418000 irq 154)
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
Found hardware: "HDA-Intel" "Realtek ALC294" "HDA:10ec0294,10431f21,00100004 HDA:8086280b,80860101,00100000" "0x1043" "0x1f21"
Hardware is initialized using a generic method
alsa-lib parser.c:260:(error_node) UCM is not supported for this HDA model (HDA NVidia at 0xc5080000 irq 17)
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6
Found hardware: "HDA-Intel" "Nvidia GPU 99 HDMI/DP" "HDA:10de0099,1043191f,00100100" "0x1043" "0x191f"
Hardware is initialized using a generic method

This is the first time I've actually seen a good error but... not sure how to proceed.

Offline

#9 2021-05-28 10:19:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,724

Re: [SOLVED] ALSA - No audio following a fresh install

Did it fix anything, "initialized using a generic method" is usually what we ultimately want to see. If it didn't you can play around with the intel dsp knobs in e.g. a file in /etc/modprobe.d/dsp.conf

options snd-intel-dspcfg dsp_driver=1

which should drop any notion of sof-firmware and fall back entirely to old HDA code, which should generally work but might break your mic support. Other possible values are 2 which seems to be some weird hybrid or 3 for enforcing SOF completely.

...

In your OP you talked about "second time", did this ever work? Which kernel version?

Offline

#10 2021-05-28 12:07:09

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

No still haven't heard a peep - and it has never worked on this particular device, during the initial install or this one.
Kernel version is: 5.12.7-arch-1

Tried creating an /etc/modprobe.d/alsa.conf file and pasting in the above - all 3 tested but none working

Offline

#11 2021-05-28 12:39:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,724

Re: [SOLVED] ALSA - No audio following a fresh install

you need to reboot to apply any given one, did you do that? Exact mainboard model?

Offline

#12 2021-05-28 19:23:53

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Okay, tried reboot for each one and each time I am now getting this error during speaker-test (same error for each config:

speaker-test 1.2.4

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

and during speaker-test -D default:PCH -c 2:

speaker-test 1.2.4

Playback device is default:PCH
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:767:(parse_card) cannot find card 'PCH'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default:PCH
Playback open error: -19,No such device

looks like PCH has now dropped off - results of amixer -c0 now:

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

Motherboard info:

# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: G512LU
        Version: 1.0
        Serial Number: K306MC01GR
        Asset Tag: ATN12345678901234567
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: MIDDLE
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

Last edited by zerowipe (2021-05-28 20:16:32)

Offline

#13 2021-05-28 21:21:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,724

Re: [SOLVED] ALSA - No audio following a fresh install

Yeah that "just" means the card completely disappears, is that situation the same regardless of which one of these values you set it to and does it revert to the previous state if you don't set the option at all?

FWIW, I found this based on the dmidecode: https://itectec.com/ubuntu/ubuntu-no-so … -20-04-01/ and/or a bit more involved: https://bugzilla.kernel.org/show_bug.cgi?id=206589#c2

Last edited by V1del (2021-05-28 21:26:21)

Offline

#14 2021-05-28 22:23:12

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

No, not reverting to the previous state now even if I delete the file altogether hmm

Although, it is showing if i lspci -v |grep Audio:

00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS (prog-if 80)
01:00.1 Audio device: NVIDIA Corporation TU116 High Definition Audio Controller (rev a1)

Last edited by zerowipe (2021-05-28 22:25:20)

Offline

#15 2021-05-29 00:45:14

zerowipe
Member
Registered: 2021-05-27
Posts: 9

Re: [SOLVED] ALSA - No audio following a fresh install

Holy crap... 35 hours later.

Okay so things were a bit mangled due to all my tried and failed config so I did another full reinstall (always takes at least three haha) .

After install I ran:

 pacman -S alsa-utils pulseaudio pavucontrol

then:

 pacman -S alsa-firmware sof-firmware alsa-ucm-conf
 
amixer -c0 set 'Auto-Mute Mode',0 Disable
sudo alsactl init

still wasn't working... again...
finally I tried creating alsa-base.conf inside /etc/modprobe.d and adding:

options snd-hda-intel model=asus-zenbook

ran speaker test and... IT WORKED!
scared the crap outta me as well.

big shout out to V1del for the help - I definitely understand ALSA on a much deeper level now big_smile

marking as solved

Offline

Board footer

Powered by FluxBB