Skip to content

Dell Latitude machine audio can't work -> Internal Mic Recording volume is low #2544

Closed

Description

@KaiChuan-Hsieh

I am checking the audio function with the latest sof-dev kernel which is based on 5.10-rc1. It seems the codec can't probe successfully.

Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw:3:25d:714:1: Probe not complete, timed out
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw-master-3: Update Slave status failed:-110
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw:2:25d:1316:1: Probe not complete, timed out
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw-master-2: Update Slave status failed:-110
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw:0:25d:711:1: Probe not complete, timed out
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw-master-0: Update Slave status failed:-110
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw:1:25d:1316:1: Probe not complete, timed out
Oct 30 04:04:17 ANDW-DVT1-C1 kernel: soundwire sdw-master-1: Update Slave status failed:-110

Some info about the hardware:
ACPI device info:

_SB_.PC00.HDAS.SNDW.SWD0
0x000030025d071101
_SB_.PC00.HDAS.SNDW.SWD1
0x000131025d131601
_SB_.PC00.HDAS.SNDW.SWD2
0x000230025d131601
_SB_.PC00.HDAS.SNDW.SWD3
0x000330025d071401

Audio device info:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Device [8086:a0c8] (rev 20)
Subsystem: Dell Device [1028:0a32]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- SERR- <PERR- INTx-
Latency: 64
Interrupt: pin A routed to IRQ 176
Region 0: Memory at 603e1d8000 (64-bit, non-prefetchable) [size=16K]
Region 4: Memory at 603e000000 (64-bit, non-prefetchable) [size=1M]
Capabilities:
Kernel driver in use: sof-audio-pci
Kernel modules: snd_hda_intel, snd_sof_pci
00: 86 80 c8 a0 06 04 10 00 20 00 01 04 00 40 00 00
10: 04 80 1d 3e 60 00 00 00 00 00 00 00 00 00 00 00
20: 04 00 00 3e 60 00 00 00 00 00 00 00 28 10 32 0a
30: 00 00 00 00 50 00 00 00 00 00 00 00 ff 01 00 00

The full kernel log,
sof-dev-kernel.log

Activity

  1. changed the title [-]Dell Latitude 9420 audio can't work[/-] [+]Dell Latitude machine audio can't work[/+] on Oct 30, 2020
  2. plbossart commented on Oct 30, 2020

    @plbossart
    Member

    @KaiChuan-Hsieh did you change the Kconfig to enable those codecs? You need

    CONFIG_SND_SOC_RT711_SDCA_SDW=m
    CONFIG_SND_SOC_RT1316_SDW=m
    CONFIG_SND_SOC_RT715_SDCA_SDW=m

  3. KaiChuan-Hsieh commented on Oct 31, 2020

    @KaiChuan-Hsieh
    Author

    @plbossart

    Thanks for your reply, indeed, the config is not enabled.
    After enable the config, found this error.
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 4
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 5
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 6
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 7
    Oct 31 00:46:36 ANDW-DVT1-C1 kernel: sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 8

    Do you have other clue what might be wrong?

    Here is the full log
    sof-dev-HDMI-converter.logOct 31 00:46:36

  4. KaiChuan-Hsieh commented on Nov 2, 2020

    @KaiChuan-Hsieh
    Author

    When I try to run BootSequence by "alsaucm set _boot """, I get the error.

    ALSA lib utils.c:335:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm2//sof-soundwire/rt1316-4.conf
    ALSA lib parser.c:95:(uc_mgr_config_load_file) error: failed to open file /usr/share/alsa/ucm2//sof-soundwire/rt1316-4.conf : -2
    ALSA lib main.c:983:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
    alsaucm: error failed to open sound card hw:0: No such file or directory

    it seems the initial config file doesn't exist in /usr/share/alsa/ucm2, should I open a bug to alsa-ucm-config repo?

  5. added
    SDWApplies to SoundWire bus for codec connection
    TGLApplies to Tiger Lake platform
    bugSomething isn't working
    on Nov 2, 2020
  6. added
    UCMRestriction of UCM configuration files
    and removed on Nov 2, 2020
  7. libinyang commented on Nov 2, 2020

    @libinyang
  8. added
    P2Critical bugs or normal features
    on Nov 2, 2020
  9. KaiChuan-Hsieh commented on Nov 2, 2020

    @KaiChuan-Hsieh
    Author

    Hello,
    After applying config thesofproject/alsa-ucm-conf#45, here is the test result

    1. internal speaker/mic works ok
    2. headset input/output works ok
    3. HDMI output works ok

    But the internal mic volume is a bit low even tough I enlarge the volume.

    Thanks,

  10. 27 remaining items

  11. keyonjie commented on Dec 16, 2020

    @keyonjie

    Thanks for clarification @plbossart , I have 0 knowledge about SDW and SDCA.

    So we need to wait for the acceptance of #2615 and then upstream the UCM file, before we can close this issue here, right?

  12. libinyang commented on Dec 17, 2020

    @libinyang

    Libin will submit SDCA UCM files to upstream once it is finalized (need #2615 merged in upstream).

    @keyonjie #2615 is not for SDCA codec. I didn't submit the SDCA UCM patches because I'm waiting @GoPerry 's answer whether we will have similar change in SDCA driver. @GoPerry Could you confirm?

  13. GoPerry commented on Dec 24, 2020

    @GoPerry

    Libin will submit SDCA UCM files to upstream once it is finalized (need #2615 merged in upstream).

    @keyonjie #2615 is not for SDCA codec. I didn't submit the SDCA UCM patches because I'm waiting @GoPerry 's answer whether we will have similar change in SDCA driver. @GoPerry Could you confirm?

    Hi @libinyang
    The rt715 sdca driver use "FU02 Capture Switch" for local mic mute/unmute operation.
    I have the same micmute led code for sdca and non sdca rt715 driver.

    '
    RT715_SDCA_FU_CTRL("FU02 Capture Switch",
    SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC8_9_VOL,
    RT715_SDCA_FU_MUTE_CTRL, CH_01),
    SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC8_9_VOL,
    RT715_SDCA_FU_MUTE_CTRL, CH_02),
    0, 1, 1),
    '

    UCM for rt715 sdca ,I guess we can duplicate like this.

    '
    SectionDevice."Mic" {
    Comment "SoundWire microphones"

        EnableSequence [
                cset "name='rt715 FU02 Capture Switch' 1"
        ]                                     
    
        DisableSequence [
                cset "name='rt715 FU02 Capture Switch' 0"
        ]                                     
                                 
        Value {                       
              CapturePriority 100     
              CapturePCM "hw:${CardId},4"
              CaptureSwitch "rt715 FU02 Capture Switch"
              CaptureVolume "rt715 FU02 Capture Volume"
        }                                      
    

    }
    '

  14. libinyang commented on Dec 28, 2020

    @libinyang

    Libin will submit SDCA UCM files to upstream once it is finalized (need #2615 merged in upstream).

    @keyonjie #2615 is not for SDCA codec. I didn't submit the SDCA UCM patches because I'm waiting @GoPerry 's answer whether we will have similar change in SDCA driver. @GoPerry Could you confirm?

    Hi @libinyang
    The rt715 sdca driver use "FU02 Capture Switch" for local mic mute/unmute operation.
    I have the same micmute led code for sdca and non sdca rt715 driver.

    '
    RT715_SDCA_FU_CTRL("FU02 Capture Switch",
    SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC8_9_VOL,
    RT715_SDCA_FU_MUTE_CTRL, CH_01),
    SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC8_9_VOL,
    RT715_SDCA_FU_MUTE_CTRL, CH_02),
    0, 1, 1),
    '

    UCM for rt715 sdca ,I guess we can duplicate like this.

    '
    SectionDevice."Mic" {
    Comment "SoundWire microphones"

        EnableSequence [
                cset "name='rt715 FU02 Capture Switch' 1"
        ]                                     
    
        DisableSequence [
                cset "name='rt715 FU02 Capture Switch' 0"
        ]                                     
                                 
        Value {                       
              CapturePriority 100     
              CapturePCM "hw:${CardId},4"
              CaptureSwitch "rt715 FU02 Capture Switch"
              CaptureVolume "rt715 FU02 Capture Volume"
        }                                      
    

    }
    '

    @GoPerry On my platform, it shows "RT714 FU02 Capture Switch/Volume". Have we updated the sdca codec driver?

  15. mengdonglin commented on Jan 4, 2021

    @mengdonglin

    Ongoing upstream discussion about 'ASoC: rt715: add main capture switch and main capture volume control'
    https://mailman.alsa-project.org/pipermail/alsa-devel/2020-December/178306.html

  16. mengdonglin commented on Jan 11, 2021

    @mengdonglin

    Upstreaming of UCM for TGL-U device with SDCA codecs is in progress: alsa-project/alsa-ucm-conf#71 by @libinyang

  17. libinyang commented on Jan 25, 2021

    @libinyang

    Jaroslav doesn't like our current codec driver solution. After discussing with Realtek, they will update the codec driver and I will update the UCM correspondingly.

  18. KaiChuan-Hsieh commented on Mar 16, 2021

    @KaiChuan-Hsieh
    Author

    @jack-cy-yu

    Hello,

    May I know if jack-cy-yu@6759435 is ready?
    I'd like to validate alsa-project/alsa-ucm-conf#71 (comment), it seems it has dependency of your change.

    Thanks,

  19. jack-cy-yu commented on Mar 16, 2021

    @jack-cy-yu
  20. bardliao commented on May 7, 2021

    @bardliao
    Collaborator

    @KaiChuan-Hsieh Is this issue solved? Can we close this issue?

  21. KaiChuan-Hsieh commented on May 7, 2021

    @KaiChuan-Hsieh
    Author

    @bardliao yes, the issue is solved. Thanks for all of you kindly support.

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

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featuresSDWApplies to SoundWire bus for codec connectionTGLApplies to Tiger Lake platformUCMRestriction of UCM configuration filesbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions