Sound card not detected on Fedora 40 (Kernel v6.9.4)

Hello,
I have a fresh install of fedora 40 GNOME (Kernel v6.9.4) on my new acer swift go 14 SFG14-72T
with intel ultra 5 processor. I am a newbie to linux and I am facing problems with sound on my machine. No sound would play through my buildin laptop speakers and gnome settings would only display “dummy output” for an output device…
Screenshot from 2024-06-21 23-56-03

It appears that somehow my soundcard was not detected. Bluetooth is working fine and sound is fine in windows ( as i am dual booting fedora and windows).

Can someone help me out with this. Tried to solve it using various other posts and disccusions, but no luck.

Here is the output from some relevant commands (I hope):

$ aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
aplay: device_list:279: no soundcards found...
$ lspci -v

0000:00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Flags: bus master, fast devsel, latency 32, IRQ 16, IOMMU group 15
	Memory at 501c2f0000 (64-bit, non-prefetchable) [size=16K]
	Memory at 501c000000 (64-bit, non-prefetchable) [size=2M]
	Capabilities: <access denied>
	Kernel driver in use: sof-audio-pci-intel-mtl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_mtl

Tried modprobe snd_hda_intel and reinstalled kernel modules as suggested by some posts. Pipewire and wireplumber both are up and running.

If you need any additional info just ask me.
Any advice greatly appreciated.

Do you b y chance have pulseaudio installed.?
If so then the above shows the cause. You appear to be using pulseaudio for sound when the default is pipewire and pulseaudio is not installed by default. They can and often do conflict.

Removed server

I tried pulseaudio to see if it solves my problem. So i removed pipewire and installed pulseaudio. But nothing changed, still no sound. I removed pulseaudio and reinstalled pipewire.

$ dnf list installed pulseaudio
Error: No matching Packages to list

Now i do not have pulseaudio installed. I tried to change default alsa output but was not able to do it. How can i do it?

I suspect you still have some pulseaudio packages installed. Some are used by pipewire.

$ dnf list installed *pulse*
Installed Packages
gvncpulse.x86_64                                                     1.3.1-5.fc40                                          @anaconda
pipewire-pulseaudio.x86_64                                           1.0.7-1.fc40                                          @updates 
pulseaudio-libs.x86_64                                               16.1-7.fc40                                           @anaconda
pulseaudio-libs-glib2.x86_64                                         16.1-7.fc40                                           @anaconda

this is from my f40 VM that has never had pulseaudio installed.

I got

$ sudo dnf list installed *pulse*
Installed Packages
alsa-plugins-pulseaudio.x86_64                                        1.2.12-1.fc40                                        @updates 
gvncpulse.x86_64                                                      1.3.1-5.fc40                                         @anaconda
pipewire-pulseaudio.x86_64                                            1.0.7-2.fc40                                         @updates 
pulseaudio-libs.x86_64                                                16.1-7.fc40                                          @anaconda
pulseaudio-libs-glib2.x86_64                                          16.1-7.fc40                                          @anaconda

I removed alsa-plugins-pulseaudio and now default alsa output shows pipewire server. But still no sound cards are detected. Should i delete all of them??

Can you give us “pactl list short sinks”

$ pactl list short sinks
bash: pactl: command not found...
Failed to search for file: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.freedesktop.PackageKit': activation request failed: unit is masked

i don’t have pactl probably because I am not using pulseaudio. Should i remove pipewire and install pulseaudio?

no something is wrong

sudo systemctl unmask packagekit.service
sudo systemctl start packagekit.service

Ran the commands. But still no sound output. What should i do?i

that is ok run pactl list short sinks

$ pactl list short sinks
49	auto_null	PipeWire	float32le 2ch 48000Hz	SUSPENDED

Got this. It installed pulseaudio-utils, is it okay??

ok run pactl list sinks

$ pactl list sinks
Sink #49
	State: SUSPENDED
	Name: auto_null
	Description: Dummy Output
	Driver: PipeWire
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: auto_null.monitor
	Latency: 0 usec, configured 0 usec
	Flags: DECIBEL_VOLUME LATENCY 
	Properties:
		node.name = "auto_null"
		device.description = "Dummy Output"
		audio.rate = "48000"
		audio.channels = "2"
		audio.position = "FL,FR"
		media.class = "Audio/Sink"
		factory.name = "support.null-audio-sink"
		node.virtual = "true"
		monitor.channel-volumes = "true"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "48"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "49"
		object.serial = "49"
	Formats:
		pcm

This is the output

lspci | grep Audio

lspci | grep Audio
0000:00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)

Here it is

lspci -k

$ lspci -k
0000:00:00.0 Host bridge: Intel Corporation Device 7d14 (rev 04)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: igen6_edac
	Kernel modules: igen6_edac
0000:00:02.0 VGA compatible controller: Intel Corporation Meteor Lake-P [Intel Arc Graphics] (rev 08)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: i915
	Kernel modules: i915, xe
0000:00:04.0 Signal processing controller: Intel Corporation Meteor Lake-P Dynamic Tuning Technology (rev 04)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: proc_thermal_pci
	Kernel modules: processor_thermal_device_pci
0000:00:07.0 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 10)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: pcieport
0000:00:07.2 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #2 (rev 10)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: pcieport
0000:00:08.0 System peripheral: Intel Corporation Meteor Lake-P Gaussian & Neural-Network Accelerator (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
0000:00:0a.0 Signal processing controller: Intel Corporation Meteor Lake-P Platform Monitoring Technology (rev 01)
	Kernel driver in use: intel_vsec
	Kernel modules: intel_vsec
0000:00:0b.0 Processing accelerators: Intel Corporation Meteor Lake NPU (rev 04)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel modules: intel_vpu
0000:00:0d.0 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 USB Controller (rev 10)
	Kernel driver in use: xhci_hcd
0000:00:0d.2 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #0 (rev 10)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: thunderbolt
	Kernel modules: thunderbolt
0000:00:0d.3 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #1 (rev 10)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: thunderbolt
	Kernel modules: thunderbolt
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller Intel Corporation
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: vmd
	Kernel modules: vmd
0000:00:14.0 USB controller: Intel Corporation Meteor Lake-P USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: xhci_hcd
0000:00:14.2 RAM memory: Intel Corporation Device 7e7f (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
0000:00:14.3 Network controller: Intel Corporation Meteor Lake PCH CNVi WiFi (rev 20)
	Subsystem: Rivet Networks Device 1672
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
0000:00:15.0 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #0 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:15.1 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #1 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:15.2 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #2 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:15.3 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #3 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:16.0 Communication controller: Intel Corporation Meteor Lake-P CSME HECI #1 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: mei_me
	Kernel modules: mei_me
0000:00:19.0 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #4 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:19.1 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #5 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-lpss
0000:00:1f.0 ISA bridge: Intel Corporation Device 7e02 (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
0000:00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: sof-audio-pci-intel-mtl
	Kernel modules: snd_hda_intel, snd_sof_pci_intel_mtl
0000:00:1f.4 SMBus: Intel Corporation Meteor Lake-P SMBus Controller (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
0000:00:1f.5 Serial bus controller: Intel Corporation Meteor Lake-P SPI Controller (rev 20)
	Subsystem: Acer Incorporated [ALI] Device 171f
	Kernel driver in use: intel-spi
	Kernel modules: spi_intel_pci
10000:e0:06.0 System peripheral: Intel Corporation RST VMD Managed Controller
10000:e0:06.1 PCI bridge: Intel Corporation Device 7eca (rev 10)
	Kernel driver in use: pcieport
10000:e1:00.0 Non-Volatile memory controller: SK hynix BC901 NVMe Solid State Drive (DRAM-less) (rev 03)
	Subsystem: SK hynix BC901 NVMe Solid State Drive (DRAM-less)
	Kernel driver in use: nvme
	Kernel modules: nvme

ok you use docking station ?