Let us record a potential fix here:

commit 91dce767cd0b08be9f1c87bb2de8e63391a72692
Author: Kai Vehmanen <[email protected]>
Date:   Tue Dec 17 18:26:13 2019 -0600

    ASoC: SOF: Intel: drop HDA codec upon probe failure
    
    In case a HDA codec probe fails, do not raise error immediately,
    but instead remove the codec from bus->codec_mask and continue
    probe for other codecs.
    
    This allows for more robust behaviour in cases where one codec
    in the system is faulty. SOF driver load can still proceed with
    the codecs that can be probed successfully. Probe may still
    fail if suitable machine driver is not found, but in many
    cases the generic HDA machine driver can operate with a subset
    of codecs.
    
    Reviewed-by: Ranjani Sridharan <[email protected]>
    Signed-off-by: Kai Vehmanen <[email protected]>
    Signed-off-by: Pierre-Louis Bossart <[email protected]>
    Link: 
https://lore.kernel.org/r/[email protected]
    Signed-off-by: Mark Brown <[email protected]>

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1886341

Title:
  Kernel Regression between 5.4.0-26 and 5.4.0-40 causes laptop internal
  audio devices to fail to load w/o unacceptable workaround

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  On Ubuntu 20.04, running kernel 5.4.0-40-generic, the internal
  speakers, headphone jack, and mic do not work at all. No audio devices
  appear in the Sound settings or in pavucontrol. By appending options
  snd_hda_intel dmic_detect=0 to /etc/modprobe.d/alsa-base.conf, I can
  get audio working, but the microphone (unsuprisingly) does not work.
  Appending options snd-intel-dspcfg dsp_driver=1 to alsa_base.conf as
  the same effect as dmic_detect=0. Attempts to fix with option
  snd_hda_intel device=generic or deveice=auto have had no effect. This
  bug does NOT manifest on 5.4.0-26-generic, the kernel version featured
  on the 20.04 live media. After installation, and updating to
  5.4.0-40-generic, the bug manifests on the next boot.

  Note that the audio hardware seems to work properly w/o workaround on
  a small (< 5%) percentage of boots, but I have been unable to
  reproduce this. With the workaround enabled, inxi -A gives

  Audio:
    Device-1: Intel Smart Sound Audio driver: snd_hda_intel
    Sound Server: ALSA v: k5.4.0-40-generic

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.4.0-40-generic 5.4.0-40.44
  ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
  Uname: Linux 5.4.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.3
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  jill       1374 F.... pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Jul  5 13:32:58 2020
  InstallationDate: Installed on 2020-07-03 (2 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: LENOVO 81YK
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic 
root=UUID=dc3e058d-42fc-4de4-b94a-749c1295dc68 ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-5.4.0-40-generic N/A
   linux-backports-modules-5.4.0-40-generic  N/A
   linux-firmware                            1.187.1
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/18/2020
  dmi.bios.vendor: LENOVO
  dmi.bios.version: DPCN40WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0J40709 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: IdeaPad 5 15IIL05
  dmi.modalias: 
dmi:bvnLENOVO:bvrDPCN40WW:bd03/18/2020:svnLENOVO:pn81YK:pvrIdeaPad515IIL05:rvnLENOVO:rnLNVNB161216:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrIdeaPad515IIL05:
  dmi.product.family: IdeaPad 5 15IIL05
  dmi.product.name: 81YK
  dmi.product.sku: LENOVO_MT_81YK_BU_idea_FM_IdeaPad 5 15IIL05
  dmi.product.version: IdeaPad 5 15IIL05
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1886341/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to