Internal Speakers on DELL Inspirion broken with kernel 5.13, works with kernel 5.11

Bug #1950900 reported by Christian A. Ehrhardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I upgraded from 21.04 to 21.10. Afterwards the internal speakers of my DELL Inspirion laptop are no longer recognized. Instead headphones are recognized (which are not there) and there is no speaker output. A USB Headset works fine.

If I boot the system with the old kernel 5.11 that is still installed from before the upgrade the spurious headphones are gone and the speakers are back and working.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: linux-image-5.13.0-20-generic 5.13.0-20.20
ProcVersionSignature: Ubuntu 5.13.0-20.20-generic 5.13.14
Uname: Linux 5.13.0-20-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ehrhardt 1364 F.... pipewire-media-
 /dev/snd/seq: ehrhardt 1363 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 14 15:31:56 2021
InstallationDate: Installed on 2021-09-01 (73 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 0c45:671e Microdia Integrated_Webcam_HD
 Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Inspiron 3501
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.0-20-generic root=UUID=357213c7-fbe8-45e4-acd7-6fc1f99cdc19 ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.13.0-20-generic N/A
 linux-backports-modules-5.13.0-20-generic N/A
 linux-firmware 1.201.1
SourcePackage: linux
UpgradeStatus: Upgraded to impish on 2021-11-04 (10 days ago)
dmi.bios.date: 04/27/2021
dmi.bios.release: 1.5
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.5.0
dmi.board.name: 03TNDR
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.5.0:bd04/27/2021:br1.5:svnDellInc.:pnInspiron3501:pvr:sku0A25:rvnDellInc.:rn03TNDR:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: Inspiron
dmi.product.name: Inspiron 3501
dmi.product.sku: 0A25
dmi.sys.vendor: Dell Inc.

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote :

I did a bit more research and the problem seems to be related to the recent cirrus audio codec changes. At least dmesg between the non-working and working kernel shows the following diff

<pre>
 Bluetooth: hci0: Found device firmware: intel/ibt-19-0-0.sfi
 snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
 snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
-snd_hda_codec_cs8409 hdaudioC0D0: autoconfig for CS8409: line_outs=1 (0x2c/0x0/0x0/0x0/0x0) type:speaker
-snd_hda_codec_cs8409 hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
-snd_hda_codec_cs8409 hdaudioC0D0: hp_outs=1 (0x24/0x0/0x0/0x0/0x0)
-snd_hda_codec_cs8409 hdaudioC0D0: mono: mono_out=0x0
-snd_hda_codec_cs8409 hdaudioC0D0: inputs:
-snd_hda_codec_cs8409 hdaudioC0D0: Internal Mic=0x44
-snd_hda_codec_cs8409 hdaudioC0D0: Mic=0x34
+snd_hda_codec_cirrus hdaudioC0D0: autoconfig for CS8409: line_outs=1 (0x2c/0x0/0x0/0x0/0x0) type:speaker
+snd_hda_codec_cirrus hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
+snd_hda_codec_cirrus hdaudioC0D0: hp_outs=1 (0x24/0x0/0x0/0x0/0x0)
+snd_hda_codec_cirrus hdaudioC0D0: mono: mono_out=0x0
+snd_hda_codec_cirrus hdaudioC0D0: inputs:
+snd_hda_codec_cirrus hdaudioC0D0: Internal Mic=0x44
+snd_hda_codec_cirrus hdaudioC0D0: Mic=0x34
 iwlwifi 0000:00:14.3: base HW address: f0:77:c3:1d:ee:c1
 iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0
</pre>

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote :

Another observation:
In the broken configuration the audio output is initially detected as "internal speaker" by gnome.
However, as soon as an attempt to access the speaker is made (play an alarm sound, change volume) the device morphs into Headphones.

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

Please try "$rm ~/.config/pulse/*;reboot", then check if the issue still could be reproduced with 5.13 kernel.

We just tried 5.13 kernel under 20.04, there is no problem.

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote (last edit ):

Thanks for the advice. Unfortunately, the problem is still there.

I'm currently bisecting this on ubuntu-impish. So I've been booting kernels back an forth and it keeps looking like a kernel issue to me. At least the distro kernel is consistently broken while other kernels consistently work.

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote (last edit ):

bisect on ubuntu-impish complete:

c8c30feea9b2373eaab7d1ed60803305b8c2f9c3 is the first bad commit
commit c8c30feea9b2373eaab7d1ed60803305b8c2f9c3
Author: Stefan Binding <email address hidden>
Date: Thu Aug 19 14:14:21 2021 +0800

    ALSA: hda/cs8409: Remove unnecessary delays

    BugLink: https://bugs.launchpad.net/bugs/1939541

    Since delays when starting jack detection after initialization
    have been reduced/removed, it is necessary to add back in an extra
    20ms delay after the init sequence to allow the CS42L42 to power up
    correctly.

    Signed-off-by: Stefan Binding <email address hidden>
    Signed-off-by: Vitaly Rodionov <email address hidden>
    Link: https://<email address hidden>
    Signed-off-by: Takashi Iwai <email address hidden>
    (cherry picked from commit c8b4f0865e82c14924c69c07d985af3ee9133316)
    Signed-off-by: You-Sheng Yang <email address hidden>
    Signed-off-by: Timo Aaltonen <email address hidden>
    Signed-off-by: Paolo Pisati <email address hidden>

 sound/pci/hda/patch_cs8409.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote :

Propsed fix is here:

https://<email address hidden>/

Revision history for this message
Christian A. Ehrhardt (cehrhardt) wrote :

Proposed fix.

tags: added: patch
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.