You are not logged in.

#1 2021-04-16 19:46:46

miemels
Member
From: Vienna
Registered: 2019-06-12
Posts: 7

ALSA Audio not working

I installed Arch on a new laptop and cannot get the audio to work.

The internal speakers or the headphone jack does not work, but external audio DOES work.
Audio on an external monitor works and I also tested connecting usb-c headphone, which work as well.
So it seems only the internal devices have some issues.

I reinstalled Pulseaudio multiple times and also tried Pipewire, which both had the same results.
I think I narrowed the issue down to ALSA, where I can execute "aplay piano2.wav" with the external devices, but there is no output for the internal ones.

pavucontrol shows the device, recognizes when a headphone is plugged in and shows the audio levels.
I am very certain the devices are unmuted, I followed guides to save the amixer config and disabled auto-mute.
There no real error messages in dmesg or anything else I know of.

I notice that when I changed the volume of the microphone input or run "cat '/proc/asound/card0/codec#0'", there is a very very slight noise playing in the headphones.

Any help is appreciated!

Device information:
aplay -l shows:
    card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
  and
    card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]

lspci shows: 00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS


Edit:
Might be useful to mention, the speakers and headphone jack work completely fine on windows.

Last edited by miemels (2021-04-16 19:53:26)

Offline

#2 2021-04-17 09:17:29

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: ALSA Audio not working

Output of "amixer"?

Offline

#3 2021-04-17 15:25:59

miemels
Member
From: Vienna
Registered: 2019-06-12
Posts: 7

Re: ALSA Audio not working

amixer output:

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

Offline

#4 2021-04-17 15:36:36

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: ALSA Audio not working

That's PA, since the problem seems to be w/ alsa below PA, stop PA and run amixer again (the output should be muuuch longer)

Offline

#5 2021-04-17 15:42:07

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: ALSA Audio not working

Is the sof-firmware package installed? Which kernel module is the internal card using?

Offline

#6 2021-04-17 15:52:14

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

Re: ALSA Audio not working

You can also do amixer -c0 to access the underlying card directly. This doesn't look like sof firmware issues to me as I wouldn't expect the card to be visible at all.

What's your

amixer -c0
pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs
sudo dmesg | grep -E 'snd|sof'

Offline

#7 2021-04-17 18:54:26

miemels
Member
From: Vienna
Registered: 2019-06-12
Posts: 7

Re: ALSA Audio not working

Thanks for your responses.

Yes I have sof-firmware installed. I think the snd_hda_intel module gets loaded.

ls -la /sys/bus/pci/devices/0000\:00\:1f.3/

total 0
drwxr-xr-x  8 root root       0 Apr 16 20:28 .
drwxr-xr-x 30 root root       0 Apr 16 20:28 ..
-r--r--r--  1 root root    4096 Apr 16 20:28 ari_enabled
-rw-r--r--  1 root root    4096 Apr 16 20:28 broken_parity_status
-r--r--r--  1 root root    4096 Apr 16 20:28 class
-rw-r--r--  1 root root     256 Apr 16 20:28 config
-r--r--r--  1 root root    4096 Apr 16 20:28 consistent_dma_mask_bits
-rw-r--r--  1 root root    4096 Apr 16 20:28 d3cold_allowed
-r--r--r--  1 root root    4096 Apr 16 20:28 device
-r--r--r--  1 root root    4096 Apr 16 20:28 dma_mask_bits
lrwxrwxrwx  1 root root       0 Apr 16 20:28 driver -> ../../../bus/pci/drivers/snd_hda_intel
-rw-r--r--  1 root root    4096 Apr 16 20:28 driver_override
-rw-r--r--  1 root root    4096 Apr 16 20:28 enable
lrwxrwxrwx  1 root root       0 Apr 16 20:28 firmware_node -> ../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:40
drwxr-xr-x  4 root root       0 Apr 16 20:28 hdaudioC0D0
drwxr-xr-x  4 root root       0 Apr 16 20:28 hdaudioC0D2
lrwxrwxrwx  1 root root       0 Apr 16 20:28 iommu -> ../../virtual/iommu/dmar1
lrwxrwxrwx  1 root root       0 Apr 16 20:28 iommu_group -> ../../../kernel/iommu_groups/15
-r--r--r--  1 root root    4096 Apr 16 20:28 irq
drwxr-xr-x  2 root root       0 Apr 16 20:28 link
-r--r--r--  1 root root    4096 Apr 16 20:28 local_cpulist
-r--r--r--  1 root root    4096 Apr 16 20:28 local_cpus
-r--r--r--  1 root root    4096 Apr 16 20:28 modalias
-rw-r--r--  1 root root    4096 Apr 16 20:28 msi_bus
drwxr-xr-x  2 root root       0 Apr 17 19:51 msi_irqs
-rw-r--r--  1 root root    4096 Apr 16 20:28 numa_node
drwxr-xr-x  2 root root       0 Apr 16 20:28 power
-r--r--r--  1 root root    4096 Apr 16 20:28 power_state
--w--w----  1 root root    4096 Apr 16 20:28 remove
--w-------  1 root root    4096 Apr 16 20:28 rescan
-r--r--r--  1 root root    4096 Apr 16 20:28 resource
-rw-------  1 root root   16384 Apr 16 20:28 resource0
-rw-------  1 root root 1048576 Apr 16 20:28 resource4
-r--r--r--  1 root root    4096 Apr 16 20:28 revision
drwxr-xr-x  3 root root       0 Apr 16 20:28 sound
lrwxrwxrwx  1 root root       0 Apr 16 20:28 subsystem -> ../../../bus/pci
-r--r--r--  1 root root    4096 Apr 16 20:28 subsystem_device
-r--r--r--  1 root root    4096 Apr 16 20:29 subsystem_vendor
lrwxrwxrwx  1 root root       0 Apr 17 19:51 supplier:pci:0000:00:02.0 -> ../../virtual/devlink/pci:0000:00:02.0--pci:0000:00:1f.3
-rw-r--r--  1 root root    4096 Apr 16 20:28 uevent
-r--r--r--  1 root root    4096 Apr 16 20:28 vendor

amixer -c0

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 82 [94%] [-3.75dB] [off]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [off]
  Front Right: Playback 87 [100%] [0.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 253 [99%] [-0.40dB]
  Front Right: Playback 253 [99%] [-0.40dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [on]
  Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',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 'IEC958',16
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 59 [94%] [27.00dB] [on]
  Front Right: Capture 59 [94%] [27.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
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]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

pacmd list-cards

2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0x8c000000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "228b"
		device.product.name = "GA104 High Definition Audio Controller"
		device.string = "1"
		device.description = "GA104 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6403108000 irq 198"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "06c8"
		device.product.name = "Comet Lake PCH cAVS"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"

pacmd list-sinks

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 55974 /  85% / -4.11 dB,   front-right: 55974 /  85% / -4.11 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: yes
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
	card: 1 <alsa_card.pci-0000_00_1f.3>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1220 Analog"
		alsa.id = "ALC1220 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0x6403108000 irq 198"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "06c8"
		device.product.name = "Comet Lake PCH cAVS"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>

pacmd list-sink-inputs

0 sink input(s) available.

sudo dmesg | grep -E 'snd|sof'

[    0.967636] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.967637] software IO TLB: mapped [mem 0x0000000064bcc000-0x0000000068bcc000] (64MB)
[    3.722782] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    3.723018] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    3.723081] snd_hda_intel 0000:01:00.1: Disabling MSI
[    3.723088] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    4.262869] RIP: 0010:__do_softirq+0x79/0x2c1
[    4.262881]  ? __do_softirq+0x60/0x2c1
[    4.262886]  do_softirq_own_stack+0x37/0x40
[    5.357640] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.545955] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC1220: line_outs=1 (0x1b/0x0/0x0/0x0/0x0) type:speaker
[    5.545960] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.545961] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x14/0x0/0x0/0x0/0x0)
[    5.545963] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    5.545964] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x1e/0x0
[    5.545965] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    5.545966] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x18
[    5.545967] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

Offline

#8 2021-04-17 20:25:11

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: ALSA Audio not working

Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]

So at least the HP are on mute - no idea how significant that is for "the internal speakers" but assuming this is a notebook, they might be the same logical device (and swapped by BIOS on the plug detection)

Offline

#9 2021-04-17 20:40:31

miemels
Member
From: Vienna
Registered: 2019-06-12
Posts: 7

Re: ALSA Audio not working

I just unmuted it with "alsamixer" and see no difference unfortunately

Offline

#10 2021-04-17 21:04:07

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: ALSA Audio not working

To be sure: your OP claims that "I narrowed the issue down to ALSA, where I can execute "aplay piano2.wav" with the external devices, but there is no output for the internal ones."
Is that because you shutdown pulseaudio and tested w/ only alsa or is it because you used "aplay" to play a tune?

In case of the latter, please stop pulseaudio and see whether you get sound.
I'm not sure what to make out of

analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)

analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)

but in 99/100 cases the answer to "my linux has no sound" is "because of pulseaudio", so we should ensure to have really narrowed down the issue.

Offline

#11 2021-04-17 22:00:47

miemels
Member
From: Vienna
Registered: 2019-06-12
Posts: 7

Re: ALSA Audio not working

I completely uninstalled pulseaudio, pipewire and all related packages I could find. After restarting I tried playing a sound with ALSA without even starting the Xserver to have as little interference as possible.
Since then I reinstalled PA, since I did not think this would change anything anyway, that's why it appears here.

For the status you mentioned, if I plug in the headphones it shows available: yes for the headphones and available: no for the speakers.
But the headphone connected via aux do not work either.

Last edited by miemels (2021-04-17 22:01:23)

Offline

#12 2021-04-17 22:32:23

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: ALSA Audio not working

There's the muted "beep", not sure wthether that would refer to the internal speakers.
Also make sure that windows isn't hibernating (3rd link below)

Offline

#13 2021-04-17 22:47:17

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

Re: ALSA Audio not working

name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 55974 /  85% / -4.11 dB,   front-right: 55974 /  85% / -4.11 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: yes
pacmd set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo off

Offline

Board footer

Powered by FluxBB