Skip to content

[FEATURE] Xiaomi Redmibook 16 2024 mic is not working #5053

Closed

Description

@OrelSokolov

So can anyone help with implementing firmware for this model?
What should I provide?

options snd-hda-intel dmic_detect=0 currently works for sound, but internal microphone does not work.
3.5 headset works.

Thanks.

UPD:
Windows works fine with internal mic, device info:

INTELAUDIO\CTLR_DEV_7E28&LINKTYPE_02&DEVTYPE_00&VEN_8086&DEV_AE20&SUBSYS_1D722309&REV_10EC\5&1ed5312d&0&0000

Activity

  1. added
    enhancement
    on May 28, 2024
  2. plbossart commented on May 28, 2024

    @plbossart
    Member

    please share the output of 'alsa-info', it's not clear that it's an SOF problem but more likely a Linux hardware detection issue.

  3. lgirdwood commented on Jun 10, 2024

    @lgirdwood
    Member

    Looks like this issue is unrelated to SOF and is a platform issue with HDA mic integration.

  4. plbossart commented on Jun 10, 2024

    @plbossart
    Member

    please share alsa-info without this "option snd_intel_dspcfg: dsp_driver=1"

  5. OrelSokolov commented on Jun 11, 2024

    @OrelSokolov
    Author

    @plbossart how to do this? I ran just alsa-info without any options.

  6. plbossart commented on Jun 11, 2024

    @plbossart
    Member

    you have this option somewhere in /etc/modprobe.d/*.conf. Remove it, reboot and send the results of alsa-info.

  7. plbossart commented on Jun 11, 2024

    @plbossart
    Member

    double check the results,

    !!Modprobe options (Sound related)
    !!--------------------------------
    
    snd_pcsp: index=-2
    snd_atiixp_modem: index=-2
    snd_intel8x0m: index=-2
    snd_via82xx_modem: index=-2
    snd_atiixp_modem: index=-2
    snd_intel8x0m: index=-2
    snd_via82xx_modem: index=-2
    snd_usb_audio: index=-2
    snd_usb_caiaq: index=-2
    snd_usb_ua101: index=-2
    snd_usb_us122l: index=-2
    snd_usb_usx2y: index=-2
    snd_cmipci: mpu_port=0x330 fm_port=0x388
    snd_pcsp: index=-2
    snd_usb_audio: index=-2
    snd_intel_dspcfg: dsp_driver=1 <<<< THIS NEEDS TO BE GONE
    
  8. plbossart commented on Jun 11, 2024

    @plbossart
    Member

    Ha yes, we've seen this before

    [    6.000606] sof-audio-pci-intel-mtl 0000:00:1f.3: no matching blob for sample rate: 48000 sample width: 32 channels: 4
    [    6.000623] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to prepare widget dai-copier.DMIC.dmic01.capture
    [    6.000629] sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to prepare connected widgets
    

    This was reported in #4973 and fixed by 806f52f

    The patch was submitted upstream and is already in maintainer branches, commit d556f80, and already in Linus' tree.

    Please try to apply this commit or wait until it shows up in your distribution.

  9. added
    dmic
    MTL
    duplicate
    and removed
    enhancement
    on Jun 11, 2024
  10. 13 remaining items

  11. plbossart commented on Jun 12, 2024

    @plbossart
    Member

    nhlt.dsl.txt

    This still looks like the 16-bit issue corrected by the commit d556f80

    my money is on the topology now. Please try to add (backup what you have of course!) from this comment: #4973 (comment)

  12. OrelSokolov commented on Jun 12, 2024

    @OrelSokolov
    Author

    @plbossart locate command gives this

    /usr/lib/firmware/intel/sof-ipc4-tplg/sof-hda-generic-4ch.tplg
    /usr/lib/firmware/intel/sof-ipc4-tplg-v2.9/sof-hda-generic-4ch.tplg
    /usr/lib/firmware/intel/sof-ipc4-tplg-v2.9/sof-hda-generic-4ch.tplg.zst
    /usr/lib/firmware/intel/sof-tplg/sof-hda-generic-4ch.tplg
    /usr/lib/firmware/intel/sof-tplg/sof-hda-generic-4ch.tplg.zst
    
    
  13. OrelSokolov commented on Jun 12, 2024

    @OrelSokolov
    Author

    @plbossart OMG it works!!!! Without any additional options

    Thanks. What is futher steps to fix this in codebase?

    https://alsa-project.org/db/?f=71084485390ea3ac2dab60932cd23e0ee6b91e16

  14. plbossart commented on Jun 12, 2024

    @plbossart
    Member

    Excellent.

    What is futher steps to fix this in codebase?

    If you meant "when is this going to be supported by distros", there will be an 'sof-bin' 2.10 release soonish - in the coming weeks - where the required topology will be included. The kernel patch should also be propagated to stable kernels but that takes time and depends on stable maintainers.

  15. OrelSokolov commented on Jun 12, 2024

    @OrelSokolov
    Author

    @plbossart Yes, I mean when this update will be in the linux kernel or somewhere downloadable.

  16. yw662 commented on Sep 6, 2024

    @yw662

    Fedora is now on Linux 6.10.7 SOF 2024.06, sound and microphone both work.

  17. johndoe3535 commented on Sep 10, 2024

    @johndoe3535

    I'm on Fedora KDE now and can confirm that sound and microphone is working now. However something in the sound pipepline seems to crash somehow after some time. I get robotic sounding voices, everything sounds distored. It stops when I switch to pro audio in the sound settings. When I get it on pro audio, it stops again when switching to play hi fi quality music. Maybe some buffering issues. It seems I can trigger it faster when skipping trough a youtube video with the arrow keys, and often start and stop playing sounds. But yeah, maybe the issue is somewhere in pipewire idk. Anyone else with a redmibook 16 that has this now ? I was on bazzite before (fedora atomic spin with custom kernel) with kernel 6.10, and the sof files from march. So for me its hard to say what introduced this on my side...

  18. malvery commented on Sep 10, 2024

    @malvery

    I'm on Fedora KDE now and can confirm that sound and microphone is working now. However something in the sound pipepline seems to crash somehow after some time. I get robotic sounding voices, everything sounds distored. It stops when I switch to pro audio in the sound settings. When I get it on pro audio, it stops again when switching to play hi fi quality music. Maybe some buffering issues. It seems I can trigger it faster when skipping trough a youtube video with the arrow keys, and often start and stop playing sounds. But yeah, maybe the issue is somewhere in pipewire idk. Anyone else with a redmibook 16 that has this now ? I was on bazzite before (fedora atomic spin with custom kernel) with kernel 6.10, and the sof files from march. So for me its hard to say what introduced this on my side...

    Same issues on Arch Linux (linux=6.10.8, sof-firmware=2024.06, pipewire 1:1.2.3).

    Steps to reproduce robotic sound:

    • change microphone level => gets robotic sound until toggle card on/off or switch card profile

    Steps to reproduce missed sound:

    • start play sound on user1 and tty1
    • switch to the user2 on tty2 and play something sound too
    • return to the user1 on tt1 => gets missed sound in any application until toggle card profile
  19. ujfalusi commented on Sep 11, 2024

    @ujfalusi
    Collaborator

    @johndoe3535, @malvery, can you describe or better provide a recording of the 'robotic' sound?
    The robotic sound is on the playback or capture direction?

  20. OrelSokolov commented on Sep 12, 2024

    @OrelSokolov
    Author

    @ujfalusi I can confirm this issue. This is completely random issue. I have this issue while using Chrome browser. Restarting application process helps.
    Bug just adds glitches to the original sound, so it sounds similar to original sound just with glitches.

  21. ujfalusi commented on Sep 13, 2024

    @ujfalusi
    Collaborator

    @OrelSokolov, so it is with playback?
    Pipewire/Pulseaudio keeps the audio open for few more seconds after the last user is gone, stopping/restarting application 'fast' enough will still use the same stream the audio was opened with (the sound servers are playing silence when no client is around).

    If the issue is easy to reproduce, can you make a recording of it with a phone for example for us to hear it? A video is also good so we could see what is going on in the UI.

    I think we will need to collect firmware logs to have cleaner picture and more data points.

  22. malvery commented on Sep 15, 2024

    @malvery

    @johndoe3535, @malvery, can you describe or better provide a recording of the 'robotic' sound? The robotic sound is on the playback or capture direction?

    Recorded "robotic" sound on the attached video
    https://github.com/user-attachments/assets/6221b976-dbba-4026-ba7d-f3011afe3804

    How can I help in collecting firmware logs ?

  23. ujfalusi commented on Feb 28, 2025

    @ujfalusi
    Collaborator

    @OrelSokolov, I lost track of this... Is it fixed with the firmware/kernel updates since last time or still persist?

  24. OrelSokolov commented on Feb 28, 2025

    @OrelSokolov
    Author

    @ujfalusi Yes! It is fixed!
    Thank you all for your help!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    MTLdmicduplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions