- No sound on Ubuntu 20.04 (Dell XPS 7390 / Realtek ALC3271 / Intel Corporation Device 02c8)
- How do I install new Intel HDA sound drivers?
- 4 Answers 4
- Debian User Forums
- Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
- Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
- Re: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
- Re: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
No sound on Ubuntu 20.04 (Dell XPS 7390 / Realtek ALC3271 / Intel Corporation Device 02c8)
I installed Ubuntu 20.04 on my Dell XPS 7390 this weekend and can’t seem to get the soundcard working which, according to the BIOS, comes with a Realtek ALC3271 controller. pavucontrol doesn’t show any sinks or sources except a dummy output. Here’s what I’ve tried and have been able to find out so far:
$ pacmd list-cards 0 card(s) available. $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sofhdadsp [sof-hda-dsp], Device 0: HDA Analog (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: sofhdadsp [sof-hda-dsp], Device 1: HDA Digital (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: sofhdadsp [sof-hda-dsp], Device 3: HDMI1 (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: sofhdadsp [sof-hda-dsp], Device 4: HDMI2 (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: sofhdadsp [sof-hda-dsp], Device 5: HDMI3 (*) [] Subdevices: 1/1 Subdevice #0: subdevice #0
$ hwinfo --sound 19: PCI 1f.3: 0403 Audio device [Created at pci.386] Unique ID: nS1_.MDj4I2BvgV7 SysFS ID: /devices/pci0000:00/0000:00:1f.3 SysFS BusID: 0000:00:1f.3 Hardware Class: sound Model: "Intel Audio device" Vendor: pci 0x8086 "Intel Corporation" Device: pci 0x02c8 SubVendor: pci 0x1028 "Dell" SubDevice: pci 0x0962 Driver: "sof-audio-pci" Driver Modules: "snd_sof_pci" Memory Range: 0x604b118000-0x604b11bfff (rw,non-prefetchable) Memory Range: 0x604b000000-0x604b0fffff (rw,non-prefetchable) IRQ: 170 (1726 events) Module Alias: "pci:v00008086d000002C8sv00001028sd00000962bc04sc03i80" Driver Info #0: Driver Status: snd_hda_intel is active Driver Activation Cmd: "modprobe snd_hda_intel" Driver Info #1: Driver Status: snd_sof_pci is active Driver Activation Cmd: "modprobe snd_sof_pci" Config Status: cfg=new, avail=yes, need=no, active=unknown
$ sudo lspci -v 00:1f.3 Audio device: Intel Corporation Device 02c8 (prog-if 80) Subsystem: Dell Device 0962 Flags: bus master, fast devsel, latency 64, IRQ 170 Memory at 604b118000 (64-bit, non-prefetchable) [size=16K] Memory at 604b000000 (64-bit, non-prefetchable) [size=1M] Capabilities: [50] Power Management version 3 Capabilities: [80] Vendor Specific Information: Len=14 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Kernel driver in use: sof-audio-pci Kernel modules: snd_hda_intel, snd_sof_pci
Weirdly enough, as I’m writing this post, the output of $ sudo lspci -v is changing. When I executed it again a minute ago, the audio-relevant output suddenly was
$ sudo lspci -v 00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake Serial IO I2C Host Controller Subsystem: Dell Device 0962 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at 4010001000 (64-bit, non-prefetchable) [virtual] [size=4K] . skipping. Kernel driver in use: sof-audio-pci Kernel modules: snd_hda_intel, snd_sof_pci
and there was no sign of the 02c8 device from above. But as of right now it’s again back to «normal» (i.e. the previous output, see above). Meanwhile, the output of dmesg hasn’t changed at all and, as far as I can tell, it’s reporting that everything is fine:
$ dmesg | grep audio [ 14.047977] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380 [ 14.047988] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002) [ 14.048210] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380 [ 14.048290] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915]) [ 14.054734] sof-audio-pci 0000:00:1f.3: use msi interrupt mode [ 14.118496] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5 [ 14.118498] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now [ 14.213711] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:4:2-66a5a [ 14.213712] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:11:0 Kernel ABI 3:13:0 [ 14.213970] sof-audio-pci 0000:00:1f.3: firmware boot complete [ 14.216836] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:11:0 Kernel ABI 3:13:0 [ 14.216840] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled [ 14.219998] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled [ 14.220000] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled [ 14.221323] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled [ 14.221324] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled [ 14.222260] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled [ 14.222263] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled [ 14.223154] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled [ 14.223156] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled [ 14.223157] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled [ 14.223159] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled [ 14.223160] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled [ 14.223161] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled [ 14.224026] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled [ 14.224028] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled [ 14.224870] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled [ 14.224872] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled [ 14.225704] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled [ 14.229492] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred [ 14.246407] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC3271: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker [ 14.246408] snd_hda_codec_realtek ehdaudio0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 14.246409] snd_hda_codec_realtek ehdaudio0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 14.246409] snd_hda_codec_realtek ehdaudio0D0: mono: mono_out=0x0 [ 14.246410] snd_hda_codec_realtek ehdaudio0D0: inputs: [ 14.246410] snd_hda_codec_realtek ehdaudio0D0: Headset Mic=0x19 [ 14.246411] snd_hda_codec_realtek ehdaudio0D0: Headphone Mic=0x1b [ 14.246412] snd_hda_codec_realtek ehdaudio0D0: Internal Mic=0x12 [ 14.295052] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten [ 14.295055] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten [ 3180.256625] sof-audio-pci 0000:00:1f.3: firmware boot complete
- Add options snd-hda-intel model=generic to /etc/modprobe.d/alsa-base.conf
- Add options snd-hda-intel model=auto to /etc/modprobe.d/alsa-base.conf
- Disable the soundcard in the BIOS, boot Ubuntu, restart & enable the soundcard in the BIOS again, boot Ubuntu again (as recommended here)
Possibly related (or similar) issues:
- askubuntu.com: No sound 20.04 with Intel Corporation Device 02c8: This could be the same issue as the one I’m having but OP didn’t provide much info and I also didn’t want to hijack his question for my purposes. I therefore hope you won’t declare my question as duplicate.
- reddit.com: No sound on HP Pro Book. Have alsa and alsa-firmware installed. What now?
- tonymax86.com: DELL XPS 9730 — Realtek ALC3271 — Audio — High Sierra
- bugs.launchpad.net: XPS 13 7390 2-in-1, Intel Icelake HDMI, Digital Out, HDMI: sound rarely works
- linux.org: Asus Zenbook 15 UX534F Realtek HD Audio Problem
- forum.manjaro.org: ALC294 Analog — Audio card detected, but no sound internaly or headphones
How do I install new Intel HDA sound drivers?
In certain cases I might have an older kernel or release of Ubuntu where my sound driver might be too old or buggy, how can I get updated sound drivers for my built in Intel Audio chip?
4 Answers 4
- Go to this page
- Under the «Source label», check which DKMS package that is corresponding to your current distribution series (Maverick, Natty, Oneiric etc) and click the leftmost arrow to expand that section.
- Under the new section «Package files», click the file ending with «.deb», download and install it:
- You can either do this by selecting «open with», which will take you to the Ubuntu Software Center, where you can click «Install», or
- Save the file to disk, open a terminal window, change to the right directory and execute «sudo dpkg -i «
- Reboot.
These instructions will only work if there is a corresponding daily build. That is, installing on 16.04.2 is not possible using 16.04.1, so make certain that the distribution name and version both match.
For a long time I used the method of Jorge Castro, but found it not worked from some time. The next command fix it perfectly:
sudo apt install linux-modules-extra-`uname -r`
I had the same issue and I was able to fix it using «HDAJackRetask» from «alsa-tools-gui». Enter the following command in the terminal:
sudo apt install alsa-tools-gui
Then open HDAJackRetask by entering hdajackretask in terminal or using the applications menu.
Select the proper hardware from the drop down menu on top (Conexant CX20641 in my case) and override the «Green Line Out, Rear side» (or any other connection you’re using) from «Line out» to «Internal speaker».
In my case the «Apply now» button resulted in a «resource busy» error, but using the «Install boot override» I was able to reload the override configuration automatically during the boot process.
For me, on Ubuntu 20.0.04, inxi -A was showing no audio driver:
$ inxi -A Audio: Device-1: Intel C610/X99 series HD Audio driver: N/A
The hdajackretask command would segfault upon trying to run, and installing linux-modules-extra-* did nothing to help. The solution was this answer:
sudo nano /etc/default/grub
Find GRUB_CMDLINE_LINUX_DEFAULT and add snd_hda_intel.dmic_detect=0 to the end of it.
It will look something like this:
GRUB_CMDLINE_LINUX_DEFAULT=»loglevel=3 snd_hda_intel.dmic_detect=0″
Rebuild grub menu sudo grub-mkconfig -o /boot/grub/grub.cfg and reboot.
That caused the driver to show up, and all audio to work. No more «Dummy Output».
$ inxi -A Audio: Device-1: Intel C610/X99 series HD Audio driver: snd_hda_intel
Debian User Forums
Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
pit Posts: 106 Joined: 2006-11-27 22:18 Location: Russia, St.Petersburg Contact:
Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
#1 Post by pit » 2021-09-05 22:23
With this card in the same X13 Yoga Gen1 from the topic about the LTE modem I first didn’t have any alsa devices in the list. Googling the solution I found one with adding snd_hda_intel.dmic_detect=0 to /etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT/update-grub and that worked for getting output device, however a built-in micro is not present in alsa devices still. That’s solvable with external headset for sure but if anybody did have experience with this card and such troubles would be glad to learn how to fix it on a OS level,
thank you
pit Posts: 106 Joined: 2006-11-27 22:18 Location: Russia, St.Petersburg Contact:
Re: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
#2 Post by pit » 2021-09-06 22:54
sof firmware package was not installed and card therefore wasn’t able to work in dmic mode, while using old dsp driver caused missing mic device as old driver does not support digital mic, Reverting settings in grub config to defaults and installing sof firmware package fixed the issue, Can be closed.
Aki Global Moderator
Posts: 1278 Joined: 2014-07-20 18:12 Location: Europe Has thanked: 22 times Been thanked: 174 times
Re: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
#3 Post by Aki » 2021-09-07 06:44
pit wrote: ↑ 2021-09-06 22:54 some firmware package was not installed and card therefore wasn’t able to work in dmic mode, while using old dsp driver caused missing mic device as old driver does not support digital mic, Reverting settings in grub config to defaults and installing sof firmware package fixed the issue, Can be closed.
Thanks for updating the thread. Have you identified the exact missing firmware name and the name of debian firmware package as reference for other users ?