Comment 15 for bug 1912052

Revision history for this message
crysman (crysman) wrote (last edit ): Re: [Acer Spin 5 - SP513-54N] External headset microphone not working on Ubuntu 20.10 (not even wired, cable headset)

Issue is still present in hirsute (21.04)

I've made a new test, currently on POPOS 21.04, kernel 5.13:

❱ uname -rv
5.13.0-7614-generic #14~1631647151~21.04~930e87c-Ubuntu SMP Fri Sep 17 00:24:58 UTC

1) default boot options:
========================
- internal mic works, external not

2) changed to intel_dspcfg.dsp_driver + headset-mic:
========================
❱ cat /proc/cmdline
initrd=\EFI\Pop_OS-a99686bf-c48a-464b-af3a-25f67847049a\initrd.img root=UUID=a99686bf-c48a-464b-af3a-25f67847049a ro snd_intel_dspcfg.dsp_driver=1 snd_hda_intel.model=headset-mic

- neither mic works

3) changed to intel_dspcfg.dsp_driver + alc255-acer
=========================
❱ cat /proc/cmdline
initrd=\EFI\Pop_OS-a99686bf-c48a-464b-af3a-25f67847049a\initrd.img root=UUID=a99686bf-c48a-464b-af3a-25f67847049a ro quiet splash snd_intel_dspcfg.dsp_driver=1 snd_hda_intel.model=alc255-acer

- external mic is now working (!), when jack is plugged-in, it corerctly asks what device have I connected (headset or headphones?)
- internal mic is not working, though :(

4) it (does not) works with pci=nocrs, too:
================================
❱ cat /proc/cmdline
initrd=\EFI\Pop_OS-a99686bf-c48a-464b-af3a-25f67847049a\initrd.img root=UUID=a99686bf-c48a-464b-af3a-25f67847049a ro quiet splash pci=nocrs snd_intel_dspcfg.dsp_driver=1 snd_hda_intel.model=alc255-acer

So, this solution is not very practical, because when I do not have headset available at the moment, I cannot use internal microphone :(

EDIT 2021-10-31 15:37 CEST:
5) only alc255-acer:
====================
❱ cat /proc/cmdline
initrd=\EFI\Pop_OS-a99686bf-c48a-464b-af3a-25f67847049a\initrd.img root=UUID=a99686bf-c48a-464b-af3a-25f67847049a ro quiet splash pci=nocrs snd_hda_intel.model=alc255-acer

- internal mic works
- external does not :(

I've noticed some RED messages in dmesg, though - the latest seem to be relevant:

[ 0.089089] x86/cpu: SGX disabled by BIOS.
[ 0.670858] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid
[ 0.672459] pci 0000:00:07.1: DPC: RP PIO log size 0 is invalid
[ 0.674048] pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid
[ 0.675635] pci 0000:00:07.3: DPC: RP PIO log size 0 is invalid
[ 30.127898] snd_hda_codec_realtek ehdaudio0D0: didn't find PCM for DAI Digital Codec DAI
[ 30.127909] snd_hda_codec_realtek ehdaudio0D0: ASoC: error at snd_soc_dai_startup on Digital Codec DAI: -22
[ 30.127915] Digital Playback and Capture: soc_pcm_open() failed (-22)
[ 30.127919] HDA Digital: ASoC: dpcm_be_dai_startup() failed at Digital Playback and Capture (-22)
[ 30.127922] HDA Digital: dpcm_fe_dai_startup() failed (-22)
[ 30.128026] snd_hda_codec_realtek ehdaudio0D0: didn't find PCM for DAI Digital Codec DAI
[ 30.128030] snd_hda_codec_realtek ehdaudio0D0: ASoC: error at snd_soc_dai_startup on Digital Codec DAI: -22
[ 30.128034] Digital Playback and Capture: soc_pcm_open() failed (-22)
[ 30.128036] HDA Digital: ASoC: dpcm_be_dai_startup() failed at Digital Playback and Capture (-22)
[ 30.128039] HDA Digital: dpcm_fe_dai_startup() failed (-22)