mic not working on HP-EliteBook-830-G7

Bug #1959681 reported by Dariusz Gadomski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-firmware (Ubuntu)
Expired
Undecided
Unassigned
Bionic
Expired
Medium
Unassigned
Focal
Expired
Medium
Unassigned

Bug Description

There is no audio input from the built-in mic available on Bionic & Focal on certain intel audio hw (00:1f.3 Multimedia audio controller [0401]: Intel Corporation Device [8086:02c8]) despite trying different kernel cmdline options (snd_hda_intel.dmic_detect=0 or snd_intel_dspcfg.dsp_driver=1).

The behavior was similar on Bionic and Focal - no mic listed in alsa/pulseaudio mixers. Additionally the following can be found in the kernel log:
  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

The situation is different on impish - on this release the mic is available out of the box.

I made a simple test of overwriting sof files inside Focal's linux-firmware package with the contents of firmware-sof-signed package from impish finding it solved the issue without any trace of errors in the logs.

The same approach did not work on Bionic (despite similar kernel versions used in both 5.4.0) - due to HWE). These are some excerpts from Bionic launching impish SOF firmware:
 sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:17:0 Kernel ABI 3:10:0
 sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
 sof-audio-pci 0000:00:1f.3: firmware boot complete
 sof-audio-pci 0000:00:1f.3: Topology: ABI 3:17:0 Kernel ABI 3:10:0
 sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent than kernel
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled
 sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled

[ Test Plan ]
1. Launch Ubuntu desktop on affected hardware.
2. Open audio mixer (e.g. pulsemixer).
3. Look for built-in audio input (e.g. Built-in Audio Analog Stereo).

Expected result:
Built-in mic is available for use.

Actual result:
Built-in mic is missing.

Tags: kern-2146 sts
Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

The packages I used for testing are available at ppa:dgadomski/firmware-mic

Changed in linux-firmware (Ubuntu):
status: New → Fix Released
Changed in linux-firmware (Ubuntu Bionic):
importance: Undecided → Medium
Changed in linux-firmware (Ubuntu Focal):
importance: Undecided → Medium
Juerg Haefliger (juergh)
tags: added: kern-2146
Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu):
status: Fix Released → Incomplete
Revision history for this message
Hui Wang (hui.wang) wrote :

@Dariusz,

You said "The situation is different on impish - on this release the mic is available out of the box.". I remember the impish doesn't install firmware-sof-signed package out of box, so the the sof-cml.ri is still provided by linux-firmware of impish, and the sof-cml.ri in is impish is identical to the sof-cml.ri in the focal.

If so, I guess this is not an issue on the sof-firmware, maybe it is an issue on the kernel of 5.4.0.

So could you confirm the mic could work under impish without the firmware-sof-signed package? And could you upload the complete dmesg under focal with the original sof-firmware in focal?

About the bionic, I am afraid we couldn't make the mic work under it. To make the mic work, not only needs the kernel and sof-firmware, also needs to upgrade the alsa-lib, alsa-ucm-conf and pulseaudio.

Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

Thanks for looking into that Hui. I have checked that with the user who experience it - you are right, the mic was working fine *without* the need to install firmware-sof-signed.

Regarding firmware: what do you mean by "original sof-firmware" in this context? Do you need dmesg from vanilla focal or from focal with the sof firmware from impish shipping in linux-firmware?

Thanks!

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

Oh, overlooked this issue. If still want to fix this issue in the focal, please help collect some log:

Suppose the dmic could work under your current system:
 -please upload the complete dmesg to lp
 -please upload the output of 'dpkg -l | grep firmware'
 -please upload the output of 'md5sum /lib/firmware/intel/sof/sof-cml.ri'

Hui Wang (hui.wang)
Changed in linux-firmware (Ubuntu Bionic):
status: New → Incomplete
Changed in linux-firmware (Ubuntu Focal):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-firmware (Ubuntu) because there has been no activity for 60 days.]

Changed in linux-firmware (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-firmware (Ubuntu Bionic) because there has been no activity for 60 days.]

Changed in linux-firmware (Ubuntu Bionic):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-firmware (Ubuntu Focal) because there has been no activity for 60 days.]

Changed in linux-firmware (Ubuntu Focal):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers