I just upgraded my ubuntu 19.10 and suddenly lost my sound card. Kernel
was updated from 5.3.0-40 to 5.3.0-42. This switched the sound driver
from snd_hda to snd_soc which sounds very promising but it seems a
firmware is missing and it is unclear where we are supposed to get the
firmware from.
```
dmesg | grep -C1 -E 'ALSA|HDA|HDMI|sof|snd[_-]|sound|hda.codec|hda.intel'
[ 0.261825] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.261827] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.261828] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
--
[ 1.801143] integrity: Loading X.509 certificate: UEFI:db
[ 1.801169] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA
2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[ 1.801169] integrity: Loading X.509 certificate: UEFI:db
[ 1.801179] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA
2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[ 1.801839] ima: Allocated hash algorithm: sha1
--
[ 10.292817] input: ThinkPad Extra Buttons as
/devices/platform/thinkpad_acpi/input/input11
[ 10.292946] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+
platform, aborting probe
[ 10.295854] iwlwifi 0000:00:14.3: Found debug destination: EXTERNAL_DRAM
--
[ 10.413077] iwlwifi 0000:00:14.3: base HW address: dc:71:96:b9:0a:d2
[ 10.416236] snd_soc_skl 0000:00:1f.3: DSP detected with PCI
class/subclass/prog-if info 0x040380
[ 10.433330] snd_soc_skl 0000:00:1f.3: bound 0000:00:02.0 (ops
i915_audio_component_bind_ops [i915])
[ 10.482071] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
--
[ 10.566796] iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0
[ 10.594049] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[ 10.596829] snd_soc_skl 0000:00:1f.3: Direct firmware load for
9dc8-LENOVO-TP-N2H-4752-tplg.bin failed with error -2
[ 10.596831] snd_soc_skl 0000:00:1f.3: tplg fw
9dc8-LENOVO-TP-N2H-4752-tplg.bin load failed with -2, falling back to
dfw_sst.bin
[ 10.596845] snd_soc_skl 0000:00:1f.3: Direct firmware load for dfw_sst.bin
failed with error -2
[ 10.596846] snd_soc_skl 0000:00:1f.3: Fallback tplg fw dfw_sst.bin load
failed with -2
[ 10.596849] snd_soc_skl 0000:00:1f.3: Failed to init topology!
[ 10.596850] snd_soc_skl 0000:00:1f.3: ASoC: failed to probe component -2
[ 10.596859] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: failed to
instantiate card -2
```
other people who encounter issues with 5.3.0-42 :
- https://askubuntu.com/questions/1218058/ubuntu-19-10-audio-driver-issue
-
https://askubuntu.com/questions/1217949/ubuntu-no-sound-dummy-output-and-no-sound-card-detected
I apologize if this is the wrong place/issue, this is the closest I
could find in the tracker
--
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/1864061
Title:
PCI/internal sound card not detected
Status in linux package in Ubuntu:
Invalid
Status in linux-oem-osp1 package in Ubuntu:
Invalid
Status in linux source package in Bionic:
Invalid
Status in linux-oem-osp1 source package in Bionic:
Fix Released
Status in linux source package in Eoan:
Fix Committed
Status in linux-oem-osp1 source package in Eoan:
Fix Released
Bug description:
The sof-pci-dev and snd-soc-skl all contains the same pciid, if
the soc-skl is loaded ahead of sof-pci-dev, the sof driver will
not work anymore, in the oem project, we manually put the soc-skl
in the blacklist.
From kernel-5.4 (focal kernel), the driver soc-skl is disabled by
default, and there is no users report any issues on it. So let us
disable soc-skl in the eoan and osp1 kernel too.
The patch for eoan kernel doesn't remove the modules because looks
like the abi folder are not controlled by git. This will break the
modulecheck, so if this patch could be merged, please help remove
those modules:
snd-soc-skl
snd-soc-skl-ipc
snd-soc-skl-ssp-clk
[Impact]
If soc-skl driver is loaded ahead of sof driver, the sof could
not work anymore, we need to blacklist the soc-skl manually
[Fix]
Like the focal kernel, we disable the soc_skl driver in the kernel
config
[Test Case]
Tested on Lenovo and Dell machines which has dmic, the sof driver
could be loaded successfully.
Tested on the machinces without the dmic, the legacy hda driver
worked well as before.
[Regression Risk]
Low, Focal kernel and mainine-5.5, 5.6-rc kernel all disabled this
dirver; and We have not met a machine need the soc_skl driver yet;
and Intel claim that the sof could replace the soc_skl driver.
In the -41 kernel, we introduced a patch from stable kernel, that
make the sof driver crash, and there is a fix patch in the 5.6-rc1,
and this fix patch is already in the stable and is merged to focal
kernel, now we backport this patch to Eoan kernel if -42 doesn't
introduce this fix patch from stable.
The patch introduced the crash:
commit 063821115e02229d5fd3de31bad270d5e30aeb41
Author: Dragos Tarcatu <[email protected]>
Date: Mon Dec 9 18:39:38 2019 -0600
ASoC: topology: Check return value for snd_soc_add_dai_link()
BugLink: https://bugs.launchpad.net/bugs/1861929
[ Upstream commit 76d2703649321c296df7ec0dafd50add96215de4 ]
snd_soc_add_dai_link() might fail. This situation occurs for
instance in a very specific use case where a PCM device and a
Back End DAI link are given identical names in the topology.
When this happens, soc_new_pcm_runtime() fails and then
snd_soc_add_dai_link() returns -ENOMEM when called from
soc_tplg_fe_link_create(). Because of that, the link will not
get added into the card list, so any attempt to remove it later
ends up in a panic.
Fix that by checking the return status and free the memory in case
of an error.
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Dragos Tarcatu <[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]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Kamal Mostafa <[email protected]>
Signed-off-by: Khalid Elmously <[email protected]>
[Impact]
During the boot, the sof driver crash because the hdmi_pcm_list
is not initialized before it is used.
[Fix]
This bug is fixed in the mainline kernel v5.6-rc1, now backport
this patch to ubuntu kernel
[Test Case]
Boot the -41 kernel with this patch added.
blacklist the snd_soc_skl
the kernel can boot successfully, and sof driver worked well
[Regression Risk]
Low, the patches are backported from upstream kernel, and I tested
this patch on Lenovo and Dell dmic machines. Focal kernel already
has this patch and works well.
Probably a kernel bug.
The sound card isn't detected in 5.3.0-41-generic
Booting 5.3.0-40-generic does work.
The relevant dmesg message is:
[ 9.845441] skl_hda_dsp_generic skl_hda_dsp_generic: Unsupported
HDAudio/iDisp configuration found
[ 9.845447] skl_hda_dsp_generic: probe of skl_hda_dsp_generic failed with
error -22
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: alsa-base 1.0.25+dfsg-0ubuntu5
ProcVersionSignature: Ubuntu 5.3.0-41.33-generic 5.3.18
Uname: Linux 5.3.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.4
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq',
'/dev/snd/timer'] failed with exit code 1:
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 20 16:46:21 2020
InstallationDate: Installed on 2019-10-07 (136 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Title: PCI/internal sound card not detected
UpgradeStatus: Upgraded to eoan on 2019-11-19 (93 days ago)
dmi.bios.date: 01/15/2020
dmi.bios.vendor: LENOVO
dmi.bios.version: N2HET44W (1.27 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20QDCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias:
dmi:bvnLENOVO:bvrN2HET44W(1.27):bd01/15/2020:svnLENOVO:pn20QDCTO1WW:pvrThinkPadX1Carbon7th:rvnLENOVO:rn20QDCTO1WW:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad X1 Carbon 7th
dmi.product.name: 20QDCTO1WW
dmi.product.sku: LENOVO_MT_20QD_BU_Think_FM_ThinkPad X1 Carbon 7th
dmi.product.version: ThinkPad X1 Carbon 7th
dmi.sys.vendor: LENOVO
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1864061/+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