PCI/internal sound card not detected on a Swift SF314-57

Bug #1856366 reported by Adam
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sound-2.6 (alsa-kernel)
New
Undecided
Unassigned
alsa-driver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

No sound card detected with kernel 5.5.0-050500rc1-generic

1. Description: Ubuntu 19.10
Release: 19.10

2. linux-image-unsigned-5.5.0-050500rc1-generic_5.5.0-050500rc1.201912081930_amd64.deb

3. have at least one soundcard

4. cat /proc/asound/cards reports:
--- no soundcards ---

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: alsa-base 1.0.25+dfsg-0ubuntu5
Uname: Linux 5.5.0-050500rc1-generic x86_64
NonfreeKernelModules: hda_intel
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CurrentDesktop: ubuntu:GNOME
Date: Fri Dec 13 22:09:17 2019
InstallationDate: Installed on 2019-12-13 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Title: PCI/internal sound card not detected
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/05/2019
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.07
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: Floris_IL
dmi.board.vendor: IL
dmi.board.version: V1.07
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.07:bd09/05/2019:svnAcer:pnSwiftSF314-57:pvrV1.07:rvnIL:rnFloris_IL:rvrV1.07:cvnAcer:ct10:cvrChassisVersion:
dmi.product.family: Swift 3
dmi.product.name: Swift SF314-57
dmi.product.sku: 0000000000000000
dmi.product.version: V1.07
dmi.sys.vendor: Acer
mtime.conffile..etc.modprobe.d.alsa-base.conf: 2019-12-13T20:34:57.551680

Revision history for this message
Adam (adamfubuntu) wrote :
Revision history for this message
Hui Wang (hui.wang) wrote :

[ 24.279630] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-icl.ri failed with error -2
[ 24.279632] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-icl.ri failed err: -2
[ 24.279634] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2
[ 24.279635] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2

Please put this firmware to /lib/firmware/intel/sof/; then reboot, and upload the dmesg.

If you want your machine use legacy audio driver instead of sof driver, you could add:

options snd-hda-intel dsp_driver=0 in the /etc/modprobe.d/alsa-base.conf, then reboot.

Revision history for this message
Adam (adamfubuntu) wrote :

Hi Hui,

thanks I was already experimenting with sof-icl.ri from the sof project. I also compiled and tested my own version. When I put the file you provided and then modprobe for snd_sof_pci then I get the following dmesg:

[ 1220.050239] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3
[ 1221.652307] sof-audio-pci 0000:00:1f.3: error: cl_copy_fw: timeout HDA_DSP_SRAM_REG_ROM_STATUS read
[ 1221.652890] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -110
[ 1221.652955] sof-audio-pci 0000:00:1f.3: error: status = 0x0000002c panic = 0x00000000
[ 1221.652978] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
[ 1221.652981] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware -110
[ 1221.652984] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -110

I see in lsmod it got loaded, but no sound cards.

I also compiled my own version of sof-pci-dev.ko using linux-5.5-rc1. What is strange I had to compile it with EXTRAVERSION="-050500rc1-generic SMP mod_unload" for insmod to accept it. The compiled driver also did not help to find any sound card.

I will try now with "options snd-hda-intel dsp_driver=0"

Revision history for this message
Adam (adamfubuntu) wrote :

OMG, with dsp_driver=0 it works. Thanks so much :)

Revision history for this message
Paul Menzel (paulmenzel) wrote :

It should work out of the box without the user having to specify any options.

1. There does not seem to be an Ubuntu package for Sound Open Firmware yet. Adam, does the pre-built firmware file from https://github.com/thesofproject/sof/releases work? Linux 5.3, 5.4, 5.5-rc1?

2. With the firmware file installed, does Linux 5.3 work with `dsp_driver=0`? Please attach the Linux messages from the non-working and working boot.

Revision history for this message
Paul Menzel (paulmenzel) wrote :

Off-topic: Adam, you should also install the other firmware files like for graphics.

```
[ 1.029518] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 1.029567] i915 0000:00:02.0: Direct firmware load for i915/icl_dmc_ver1_09.bin failed with error -2
[ 1.029569] i915 0000:00:02.0: Failed to load DMC firmware i915/icl_dmc_ver1_09.bin. Disabling runtime power management.
[ 1.029569] i915 0000:00:02.0: DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
```

`apt install linux-firmware` should fix that.

Revision history for this message
Adam (adamfubuntu) wrote :

Hi Paul,

> does the pre-built firmware file from https://github.com/thesofproject/sof/releases work?

I tried the releases 1.4.1 and 1.3 as well as followed their instractions to build from latest soource. The sof-icl.ri did not work for me with 5.5-rc1 and 5.4. I did not check for 5.3 because my sound card (Intel Corporation Device [8086:34c8]) was working well already with the snd_hda_intel module.

> 2. With the firmware file installed, does Linux 5.3 work with `dsp_driver=0`?
Yes. Without and with that option 5.3 will load snd_hda_intel for the sound card.

> Please attach the Linux messages from the non-working and working boot.

Find attached the outputs. I think the interesting bit is in the not working boot:

 sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
 sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
 sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
 sof-audio-pci 0000:00:1f.3: warning: No matching ASoC machine driver found
 sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
 sof-audio-pci 0000:00:1f.3: use msi interrupt mode
 sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915

> you should also install the other firmware files like for graphics.
I have linux-firmware installed. The video looks good for now, so I will ignore that issue :|

summary: - PCI/internal sound card not detected
+ PCI/internal sound card not detected on a Swift SF314-57
Revision history for this message
Paul Menzel (paulmenzel) wrote :

[Sorry, I wasn’t subscribed to the notifications.]

@hui.wang, your attached firmware, what version is that?

    $ md5sum sof-icl.ri
    2ca373e6254b0e9b37439f7a31984973 /dev/shm/sof-icl.ri

@adamfubuntu, do you still have the problem *without* `dsp_driver=0` on an up-to-date Ubuntu 19.10 with Linux 5.5-rc6?

Revision history for this message
Paul Menzel (paulmenzel) wrote :

A Fedora user reported the same issue in https://bugzilla.redhat.com/show_bug.cgi?id=1772498#c16, and the created an upstream GitHub issue https://github.com/thesofproject/sof/issues/2126.

Please update the meta-information of this bug accordingly.

Revision history for this message
Paul Menzel (paulmenzel) wrote :
Revision history for this message
Adam (adamfubuntu) wrote :

Hi Paul

> do you still have the problem *without* `dsp_driver=0` on an up-to-date Ubuntu 19.10 with Linux 5.5-rc6?

I just tried the 5.5 release https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/

I also tried newest 1.4.2 from sof project and updadted their github issue.

The trick with dsp_driver=0 seems not to work anymore. I resorted to adding "snd_hda_intel.dmic_detect=0" to GRUB_CMDLINE_LINUX_DEFAULT as suggested at Red Hat link you posted and will get the snd_hda_intel driver:

[ 151.393221] snd_hda_intel 0000:00:1f.3: dmic_detect option is deprecated, pass snd-intel-dspcfg.dsp_driver=1 option instead
[ 151.393257] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 151.393565] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 151.403720] thermal thermal_zone9: failed to read out thermal zone (-61)
[ 151.405115] iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0
[ 151.435143] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[ 151.435144] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 151.435145] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
[ 151.435146] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 151.435146] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 151.435147] snd_hda_codec_generic hdaudioC0D0: Mic=0x19

That works well for me now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
G Aswin (g-aswin) wrote :

Hi, A beginner user with almost the same laptop here (SF314-57G, just an extra graphics card).
I'm encountering the same bug with all ubuntu based distro's. The wierd thing is it will work just fine right after installation. The sound goes off right after the first update of the OS and a reboot. If I could contribute to get this fixed please let me know, Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.