You are not logged in.

#1 2021-04-30 20:38:54

Allexj
Member
Registered: 2015-07-11
Posts: 61

Microphone in the jack earbuds is not recognized

I have a Huawei Matebook D 14, and it has a single jack input. When I plug in my PS4 stock earbuds (they are single jack) I can hear the audio but the microphone is not active and not recognized (it doesn't show up in audio settings or pavucontrol. The computer microphone is used). I have this issue with every distro that I've used. Only in Windows it works.

Here are some useful info (they are output when I connect the earbud)

$ pacmd list-sinks
1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_03_00.6.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 62259 /  95% / -1,34 dB,   front-right: 62259 /  95% / -1,34 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le ch 2 48000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 1
        configured latency: 0,00 ms; range is 0,50 .. 1837,33 ms
        card: 1 <alsa_card.pci-0000_03_00.6>
        module: 7
        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 0xc05c0000 irq 71"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03: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 = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Stereo analogico"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Stereo analogico"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-headphones>

diff of list-sinks when I have connected earbuds and when they aren't connected:

9c9
<       volume: front-left: 58986 /  90% / -2,74 dB,   front-right: 58986 /  90% / -2,74 dB
---
>       volume: front-left: 62259 /  95% / -1,34 dB,   front-right: 62259 /  95% / -1,34 dB
58c58
<               analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
---
>               analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
61c61
<               analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
---
>               analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
64c64
<       active port: <analog-output-speaker>
---
>       active port: <analog-output-headphones>




Other less-useful logs (they have NO diff when I have earbuds connected and disconnected):

$ pacmd list-sink-inputs
1 sink input(s) available.
    index: 1079
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: CORKED
        sink: 0 <alsa_output.pci-0000_03_00.6.analog-stereo>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: no
        current latency: 129,89 ms
        requested latency: 75,01 ms
        sample spec: float32le ch 2 44100 Hz
        channel map: front-left,front-right
                     Stereo
        resample method: speex-float-1
        module: 12
        client: 32 <Firefox>
        properties:
                media.name = "AudioStream"
                application.name = "Firefox"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "34"
                application.process.id = "1423"
                application.process.user = "allexj"
                application.process.host = "Archy"
                application.process.binary = "firefox"
                application.language = "it_IT.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "90ae5431b97c441fa86b755b5c3f996d"
                application.process.session_id = "2"
                application.icon_name = "firefox"
                module-stream-restore.id = "sink-input-by-application-name:Firefox"
$ pacmd list-sources
2 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_03_00.6.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_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 ch 2 48000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1837,33 ms
        monitor_of: 0
        card: 1 <alsa_card.pci-0000_03_00.6>
        module: 7
        properties:
                device.description = "Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Stereo analogico"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xc05c0000 irq 71"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03: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: 1
        name: <alsa_input.pci-0000_03_00.6.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 19730 /  30% / -31,28 dB,   front-right: 19730 /  30% / -31,28 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 ch 2 44100 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        card: 1 <alsa_card.pci-0000_03_00.6>
        module: 7
        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 0xc05c0000 irq 71"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03: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 = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Stereo analogico"
                device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Stereo analogico"
                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.

Last edited by Allexj (2021-05-01 08:34:17)

Offline

#2 2021-05-02 09:25:42

Allexj
Member
Registered: 2015-07-11
Posts: 61

Re: Microphone in the jack earbuds is not recognized

I installed Pipewire and removed Pulseaudio. The problem persists with Pipewire

Last edited by Allexj (2021-05-02 12:35:24)

Offline

#3 2021-07-13 19:28:47

Allexj
Member
Registered: 2015-07-11
Posts: 61

Re: Microphone in the jack earbuds is not recognized

issue still present

Offline

#4 2021-07-13 19:51:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,306

Re: Microphone in the jack earbuds is not recognized

This is a kernel issue that's quite common and irrelevant to what you are using on the upper layers, neither pulse or pipewire can do anything about this.

What you can do is play around with snd_hda_intel config parameters. The most generic one being

options snd_hda_intel model=headset-mic

in some .conf file in /etc/modprobe.d

Offline

#5 2021-07-16 23:07:26

Allexj
Member
Registered: 2015-07-11
Posts: 61

Re: Microphone in the jack earbuds is not recognized

V1del wrote:

This is a kernel issue that's quite common and irrelevant to what you are using on the upper layers, neither pulse or pipewire can do anything about this.

What you can do is play around with snd_hda_intel config parameters. The most generic one being

options snd_hda_intel model=headset-mic

in some .conf file in /etc/modprobe.d

I don't have an intel cpu, should I add these parameters anyway?

EDIT:
I realized they don't have anything related to CPU. It's for audio card.

03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
    Subsystem: Huawei Technologies Co., Ltd. Device 3e19
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

So yeah I have a snd_hda_intel module driver

Last edited by Allexj (2021-07-17 10:21:18)

Offline

Board footer

Powered by FluxBB