You are not logged in.

#1 2020-10-18 09:18:35

Andr0med4
Member
Registered: 2015-11-02
Posts: 3

Huawei Matebook 14 AMD 2020 - Static and headset mic not recognized

I have just done a fresh install on a Huawei Matebook 14 AMD 2020 with the following configuration:

  • Kernel: 5.8.14-arch1-1

  • CPU: AMD Ryzen 7 4800H

  • GPU:Integrated RX Vega 7

The laptop is running fine using Windows including all audio input/outputs. However, when I plug in any headphone into the combo jack under Linux, I hear significant coil whine-like static while the microphone on the headset is not detected at all. I tried various combinations of

options snd_hda_intel model=[MODEL]

including "auto", "headset-mic" and "dell-headset-multi" as well as any options mentioning the ALC256 codec as was suggested by the wiki and here on this forum. However, none of them showed any improvement. I noticed this possible related thread on a Huawei Matebook D 2020, AMD Ryzen 5 3500U which is another CPU generation but the owner did not report any static and the thread got no updates. I tried on linux-mainline-5.9-1 and noticed that the "acp" listings for card 2 are gone, but with the same results regarding static and headphone mic detection.

$ arecord -l                        
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC256 Analog [ALC256 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: acp [acp], device 0: DMIC capture dmic-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ aplay -l  
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC256 Analog [ALC256 Analog]

  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ pacmd list-cards
3 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_04_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c8000 irq 73"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:04:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.string = "0"
                device.description = "HD-Audio Generic"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:hdmi-stereo>
        sinks:
                alsa_output.pci-0000_04_00.1.hdmi-stereo/#0: HD-Audio Generic Digital Stereo (HDMI)
        sources:
                alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor/#0: Monitor of HD-Audio Generic Digital Stereo (HDMI)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "DELL U2721DE"
    index: 1
        name: <alsa_card.pci-0000_04_00.5-platform-acp_pdm_mach.0>
        driver: <module-alsa-card.c>
        owner module: 7
        properties:
                alsa.card = "2"
                alsa.card_name = "acp"
                alsa.long_card_name = "HUAWEI-KLVL_WXX9-M1040-KLVL_WXX9_PCB"
                alsa.driver_name = "snd_acp3x_rn"
                device.bus_path = "pci-0000:04:00.5-platform-acp_pdm_mach.0"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.5/acp_pdm_mach.0/sound/card2"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e2"
                device.product.name = "Raven/Raven2/FireFlight/Renoir Audio Processor"
                device.string = "2"
                device.description = "Raven/Raven2/FireFlight/Renoir Audio Processor"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:stereo-fallback: Stereo Input (priority 51, available: unknown)
                input:multichannel-input: Multichannel Input (priority 1, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <input:stereo-fallback>
        sources:
                alsa_input.pci-0000_04_00.5-platform-acp_pdm_mach.0.stereo-fallback/#1: Raven/Raven2/FireFlight/Renoir Audio Processor Stereo
        ports:
                analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
                        properties:

                multichannel-input: Multichannel Input (priority 0, latency offset 0 usec, available: unknown)
                        properties:

    index: 2
        name: <alsa_card.pci-0000_04_00.6>
        driver: <module-alsa-card.c>
        owner module: 8
        properties:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 74"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:04:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
                output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
                off: Off (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_04_00.6.analog-stereo/#1: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
        sources:
                alsa_output.pci-0000_04_00.6.analog-stereo.monitor/#2: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
                alsa_input.pci-0000_04_00.6.analog-stereo/#3: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
        ports:
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
$ pacmd list-sources
4 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY 
        state: SUSPENDED
        suspend cause: IDLE
        priority: 1030
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        fixed latency: 100.14 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_04_00.1>
        module: 6
        properties:
                device.description = "Monitor of HD-Audio Generic Digital Stereo (HDMI)"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c8000 irq 73"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:04:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
    index: 1
        name: <alsa_input.pci-0000_04_00.5-platform-acp_pdm_mach.0.stereo-fallback>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY 
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9030
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        fixed latency: 85.33 ms
        card: 1 <alsa_card.pci-0000_04_00.5-platform-acp_pdm_mach.0>
        module: 7
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = ""
                alsa.id = "DMIC capture dmic-hifi-0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "2"
                alsa.card_name = "acp"
                alsa.long_card_name = "HUAWEI-KLVL_WXX9-M1040-KLVL_WXX9_PCB"
                alsa.driver_name = "snd_acp3x_rn"
                device.bus_path = "pci-0000:04:00.5-platform-acp_pdm_mach.0"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.5/acp_pdm_mach.0/sound/card2"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e2"
                device.product.name = "Raven/Raven2/FireFlight/Renoir Audio Processor"
                device.string = "hw:2"
                device.buffering.buffer_size = "32768"
                device.buffering.fragment_size = "8192"
                device.access_mode = "mmap"
                device.profile.name = "stereo-fallback"
                device.profile.description = "Stereo"
                device.description = "Raven/Raven2/FireFlight/Renoir Audio Processor Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
                        properties:

        active port: <analog-input>
    index: 2
        name: <alsa_output.pci-0000_04_00.6.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY 
        state: SUSPENDED
        suspend cause: IDLE
        priority: 1030
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        fixed latency: 100.14 ms
        monitor_of: 1
        card: 2 <alsa_card.pci-0000_04_00.6>
        module: 8
        properties:
                device.description = "Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 74"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:04:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                device.string = "1"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
  * index: 3
        name: <alsa_input.pci-0000_04_00.6.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 10387 /  16% / -48.00 dB,   front-right: 10387 /  16% / -48.00 dB
                balance 0.00
        base volume: 6554 /  10% / -60.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        fixed latency: 100.14 ms
        card: 2 <alsa_card.pci-0000_04_00.6>
        module: 8
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC256 Analog"
                alsa.id = "ALC256 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 74"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:04:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "17664"
                device.buffering.fragment_size = "2944"
                device.access_mode = "mmap"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
        active port: <analog-input-mic>
$ pacmd list-source-outputs
0 source output(s) available.
$ lsmod | grep snd
snd_soc_dmic           16384  1
snd_acp3x_rn           16384  1
snd_acp3x_pdm_dma      16384  1
snd_soc_core          323584  3 snd_acp3x_rn,snd_soc_dmic,snd_acp3x_pdm_dma
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_hda_codec_realtek   143360  1
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  3 snd_hda_codec_generic,huawei_wmi,snd_hda_codec_realtek
snd_hda_codec_hdmi     73728  1
snd_hda_intel          57344  5
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_hda_codec         167936  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               147456  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_acp3x_pdm_dma,snd_pcm_dmaengine
snd_timer              45056  1 snd_pcm
snd_rn_pci_acp3x       20480  0
snd                   114688  22 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
snd_pci_acp3x          20480  0
soundcore              16384  1 snd

I would appreciate any help on this topic. Thank you!

Offline

#2 2020-10-18 10:53:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,831

Re: Huawei Matebook 14 AMD 2020 - Static and headset mic not recognized

With which adjustments regarding modules was the above output produced?

Can you post

amixer -c1

Offline

#3 2020-10-18 11:12:12

Andr0med4
Member
Registered: 2015-11-02
Posts: 3

Re: Huawei Matebook 14 AMD 2020 - Static and headset mic not recognized

Thank you for the swift reply. The above was with

options snd-hda-intel model=dell-headset-multi

set in /etc/modprobe.d/alsa.conf as the only adjustment regarding modules. I can post again without the line if that helps. See below for the output of amixer -c1.

Headphones unplugged:

$ amixer -c1
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 75 [86%] [-9.00dB] [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 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

Headphones plugged in:

$ amixer -c1                   
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 64 [74%] [-17.25dB] [on]
Simple mixer control 'Headphone',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 'Speaker',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 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'

Last edited by Andr0med4 (2020-10-18 11:12:42)

Offline

Board footer

Powered by FluxBB