Repository navigation
Closed
Labels
Communityend-user or distro-reported issuesend-user or distro-reported issuesDMIC-PDM1DMIC issue due to use of PDM1 instead of PDM0DMIC issue due to use of PDM1 instead of PDM0TGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't workingdmicIssues related to PCH connected DMICIssues related to PCH connected DMIC
Description
Describe the bug
Acer Aspire 5 A515-56 internal microphone not working (silence). DMIC is detected, gain control and mute are available, but there is no sound.
To Reproduce
Open pavucontrol, select input: no mic activity. The same in gnome settings audio.
Reproduction Rate
100%
Expected behavior
Working mic
Impact
Impossible to use recording and voice communication
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: SMP Debian 5.9.6-1~bpo10+1
- SOF: v1.6.1 (2020-12-23)
- Name of the topology file
- Topology: intel/sof-tplg/sof-hda-generic-2ch.tplg
- Name of the platform(s) on which the bug is observed.
- Platform: {ALC255}
dmesg
[ 3.255741] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 3.255744] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 3.463781] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 3.463788] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[ 3.463804] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[ 3.464262] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 3.464472] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 3.493452] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[ 3.553187] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[ 3.553189] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 3.553192] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 2
[ 3.553958] sof-audio-pci 0000:00:1f.3: firmware: direct-loading firmware intel/sof/sof-tgl.ri
[ 3.641456] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:6:1-53680
[ 3.641457] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:17:0 Kernel ABI 3:16:0
[ 3.641458] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
[ 3.641816] sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 3 size 0x1c
[ 3.641828] sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 4 size 0x10
[ 3.675746] sof-audio-pci 0000:00:1f.3: firmware: direct-loading firmware intel/sof-tplg/sof-hda-generic-2ch.tplg
[ 3.675756] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:17:0 Kernel ABI 3:16:0
[ 3.675757] sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent than kernel
[ 3.675760] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled
[ 3.676686] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled
[ 3.676688] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled
[ 3.677833] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled
[ 3.677837] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled
[ 3.678713] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled
[ 3.678716] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled
[ 3.679860] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled
[ 3.679863] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled
[ 3.679867] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled
[ 3.679870] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled
[ 3.679873] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled
[ 3.679876] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled
[ 3.680774] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled
[ 3.680776] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled
[ 3.681676] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled
[ 3.681679] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled
[ 3.682651] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled
[ 3.691161] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[ 3.716347] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC255: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 3.716350] snd_hda_codec_realtek ehdaudio0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 3.716351] snd_hda_codec_realtek ehdaudio0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 3.716352] snd_hda_codec_realtek ehdaudio0D0: mono: mono_out=0x0
[ 3.716353] snd_hda_codec_realtek ehdaudio0D0: inputs:
[ 3.760985] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[ 3.760990] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[ 3.777724] input: sof-hda-dsp Front Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input17
[ 3.777784] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input18
[ 3.777808] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input19
[ 3.777868] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input20
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 6: DMIC (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 7: DMIC16kHz (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
**amixer **
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 85 [98%] [-1.50dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [off]
Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Dmic0',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 70
Front Left: Capture 50 [71%] [0.00dB] [on]
Front Right: Capture 50 [71%] [0.00dB] [on]
Simple mixer control 'Dmic1 2nd',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 70
Front Left: Capture 50 [71%] [0.00dB]
Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
Simple mixer control 'PGA1.0 1 Master',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 32
Mono:
Front Left: Playback 32 [100%] [0.00dB]
Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 80
Front Left: Capture 50 [62%] [0.00dB]
Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA3.0 3 Master',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 32
Mono:
Front Left: Playback 32 [100%] [0.00dB]
Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA4.0 4 Master',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 80
Front Left: Capture 50 [62%] [0.00dB]
Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 32
Mono:
Front Left: Playback 32 [100%] [0.00dB]
Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 32
Mono:
Front Left: Playback 32 [100%] [0.00dB]
Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 32
Mono:
Front Left: Playback 32 [100%] [0.00dB]
Front Right: Playback 32 [100%] [0.00dB]
┌─────────────────────────────────────────────────────────────────────────── AlsaMixer v1.1.8 ───────────────────────────────────────────────────────────────────────────┐
│ Card: sof-hda-dsp F1: Help │
│ Chip: Realtek ALC255 F2: System information │
│ View: F3: Playback F4:[Capture] F5: All F6: Select sound card │
│ Item: Dmic0 [dB gain: 0,00, 0,00] Esc: Exit │
│ │
│ │
│ │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │ │ │ │ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │▒▒│ │
│ L└──┘R └──┘ └──┘ └──┘ │
│ CAPTURE │
│ 46<>46 46<>46 32<>32 32<>32 │
│ < Dmic0 > Dmic1 2nd PGA2.0 2 Master PGA4.0 4 Master │
│ │
│ │
│ │
│ │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Metadata
Metadata
Assignees
Labels
Communityend-user or distro-reported issuesend-user or distro-reported issuesDMIC-PDM1DMIC issue due to use of PDM1 instead of PDM0DMIC issue due to use of PDM1 instead of PDM0TGLApplies to Tiger Lake platformApplies to Tiger Lake platformbugSomething isn't workingSomething isn't workingdmicIssues related to PCH connected DMICIssues related to PCH connected DMIC
Activity
lgirdwood commentedon Jan 4, 2021
@jarek556 can you confirm if this worked with older FW and kernel ? Can you also confirm if the capture WAV file is all 0s (except for the header).
@juimonen @singalsu any comments here ?
singalsu commentedon Jan 5, 2021
Could you please test with sof-hda-generic-4ch.tplg, just copy it over 2ch file (make backup copy of it first), and reboot. The capture with 4ch configuration needs to be four channels, e.g. "arecord -Dhw:0,6 -f dat -c 4 -d 10 rec.wav". Also check with amixer that the Dmic0 volume is 0 dB (or more gain) and unmuted. There's another similar bug reported and I suspect the connected microphones are using channels 3-4 clocks (waiting for reporter input there).
singalsu commentedon Jan 5, 2021
This issue may be similar as #2460
lgirdwood commentedon Jan 5, 2021
Btw, do we know if these non working platforms have any "hard mic mutes" aka privacy mode ? i.e. where the mic data is gated via some HW prior to entering DSP.
jarek556 commentedon Jan 5, 2021
@lgirdwood - I have tested this notebook only in this configuration. After few days of testing I've returned it because I couldn't find solution for internal mic.
lgirdwood commentedon Jan 6, 2021
@jarek556 are you working for a distro or OEM ? It may be possible to get the audio schematic and figure out the DMIC routing to fix the issue.
GFdevelop commentedon Feb 20, 2021
I have the same issue on my laptop, the microphone is detected but in pavucontrol there isn't sound detection, the headset microphone work but when I plug it I have to manually switch to the headset microphone to disable the speaker output (speaker and headset output work at same time).
I have tried the module option
snd_hda_intel model=dual-codecsbut don't work.How to solve?
singalsu commentedon Feb 22, 2021
@GFdevelop Thanks for report! There's another case with Thinkbook 13s #2460 . Can you please try from there the custom topology https://github.com/thesofproject/linux/files/5981682/sof-hda-generic-2ch-pdm1.zip . It needs to be copied over the default sof-hda-generic-2ch.tplg.
This is a temporary quick fix, the final outcome will likely be a kernel option. (FYI @kv2019i ).
GFdevelop commentedon Feb 22, 2021
After one week of attemps this fix work, but the internal microphone(s) aren't muted when I plug the jack (the automute is enabled in alsamixer), headphone input/output and internal input/output work together at same time, is this a related issue?
In pavucontrol I see:
(in output it's a single switch for speaker and headphone but in input is a different switch)
The internal microphone is "boosted": in alsamixer I have mic boost at 0 but in pavucontrol I see a constant minimal sound detection.
Anyway thank you, it's a good job.
singalsu commentedon Feb 22, 2021
@juimonen Do you thoughts for the control issues?
There's a +20 dB gain added in topology. It could be built with 0 dB as well by editing the lines to build HDA generic topologies:
There's different microphones sensitivites and the lower ones (those tolerate high SPL) sound rather silent in notebook usage. If you microphone is higher sensitivity the boost could be removed. An AGC or DRC in capture path should solve this in future.
juimonen commentedon Feb 22, 2021
@GFdevelop trying to decipher the info here...
It is kind of impossible that the inputs would be "on" at the same time (dmic & headset), simultaneous output routing is possible in hda devices.
AFAIK The "headphone mic" is something that should be visible only in Dell devices -> you should see "headset mic". I have not seen "headphone mic" ever in Lenovo devices.
So my guess is that you have something wrong in the kernel config ->so it might be that because of this you are not getting correct jack events either -> the headset playback is messed up.
juimonen commentedon Feb 22, 2021
@GFdevelop hmm I don't see this "headphone mic" in the amixer list you provided. But it is probably present in UCM configs. But it's "existence" should be tied to its presence in amixer controls... so my explanation above doesn't seem to hold -> something must be incorrect in the user space configs. Could you try to update alsa-lib, alsa-ucm-conf and pulseaudio? These are quite new features, so not sure how they are present in arch linux.
But with lenovo devices you should get jack event for both headphone insert and headset mic insert. In Ubuntu the switch is kind of co-operation between pulseaudio and UI, so I'm not sure how it supposed to work in Arch Linux. At least you should see the input/output options in pavucontrol for you to change them manually.
GFdevelop commentedon Feb 22, 2021
I don't have any customization, my system is updated with arch repository, I have deleted
~/.config/pulse/, when the jack is plugged in and I speak I see sound detection on headphone microphone and internal microphone, in pavucontrol input:Port: Headphones Stereo Microphone (plugged in)
Port: Digital Microphone
My jack it's a single combined input/output.
I'm using
xfce, and inxfce4-plugin-pulseaudioI can manually select the input source but don't change the behaviour of the microphones, they listen together...inalsamixerI have automute in the playback view, in capture there isn't this option.EDIT: I have installed the optional dependencies alsa-firmware and alsa-card-profiles, can these do a conflict?
7 remaining items
keqiaozhang commentedon Jun 7, 2021
@juimonen, any updates on this issue?
GFdevelop commentedon Jun 7, 2021
After the last updates on arch linux the output device it's ok and work well, but the input device work only with your topology as the previous comments.
keqiaozhang commentedon Jun 21, 2021
@GFdevelop , thanks for your confirmation, let's close this issue, if you have new request , please reopen it or create a new bug.
GFdevelop commentedon Oct 4, 2021
When this fix will be available?
plbossart commentedon Oct 4, 2021
we're missing firmware and driver bits, so likely a 2022 update at this point. let's keep it open, I don't know why this issue was closed since there's no solution provided outside of a topology update.
GFdevelop commentedon Apr 15, 2022
news?
plbossart commentedon Apr 15, 2022
@juimonen @ranj063 do you think we could use the IPC4 solution with the NHLT blob taken from the BIOS to handle this sort of platforms?
odarbelaeze commentedon May 25, 2022
Just patched my sister in law's pc with the updated topology. It's the second time around and it keeps working like a charm! <3
plbossart commentedon Jul 20, 2022
There will be no magical solution to this problem, the only work-around is to load an alternate topology. This will be enabled starting with kernel 5.20 and SOF 2.3. see details of the documentation here: https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#digital-mic-issues
bpf: improve duplicate source code line detection