Sound card not detected - Ubuntu 20.04 - sof-audio-pci

13,660

Solution 1

As I said the sound driver I was running was sof-audio-pci, which had no normal firmware at the moment.

I searched nearly 3 hours trying to solve this headache and finally found the solution, just disable this "sof" driver and fall back to intel:

Do:

sudo gedit /etc/default/grub

Change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd_hda_intel.dmic_detect=0"

Then do:

sudo update-grub

and Reboot.

You can check if soundcards are detected with:

aplay -l

Source

Solution 2

I had a similar problem on Arch Linux on a Lenovo Thinkpad X13 with kernel version 5.10. The solution is "similar" to @Olimjon, but I changed another kernel module parameter. Indeed, modinfo snd_hda_intel states that:

parm:           dmic_detect:Allow DSP driver selection (bypass this driver) (0=off, 1=on) (default=1); deprecated, use snd-intel-dspcfg.dsp_driver option instead (bool)

Running modinfo snd_intel_dspcfg gives the following info:

parm:           dsp_driver:Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF) (int)

So I added snd_intel_dspcfg.dsp_driver=1 to my GRUB_CMDLINE_LINUX_DEFAULT to get the same effect. The other values give me no audio.

Also, you should note that both solutions break the internal microphone.

Share:
13,660
Olimjon
Author by

Olimjon

Updated on September 18, 2022

Comments

  • Olimjon
    Olimjon over 1 year

    After installing Ubuntu 20.04, I noticed that sound is not working on my system.

    aplay -l was giving me Sound card not detected error.

    Running inxi -A | grep driver gave me ... driver: sof-audio-pci

    I tried some solutions on AskUbuntu, but they did not work and all of them used driver snd_hda_intel. Other pages said that firmwares for this driver are not shipped with distribution.

    Is it possible to make sound work for Ubuntu 20.04?

  • rems4e
    rems4e over 2 years
    Worked for me on Debian Testing (kernel 5.15) and Tiger Lake!
  • OlorinIstari
    OlorinIstari over 2 years
    How do you "not break" the internal microphone and still have a solution?