升级至 20.04 后前面板音频插孔不工作

升级至 20.04 后前面板音频插孔不工作

我在华硕 HM81-PLUS 主板上运行 Kubuntu。它有一个 RealTek ACL887 音频芯片。在昨天升级到 20.04 之前,我从未遇到过音频问题。现在前面板插孔(麦克风和耳机)不工作。具体来说,等离子音频混音器应用程序无法检测何时插入麦克风或耳机,因此它们无法与任何应用程序一起使用。Alsamixer 显示前置麦克风未静音且增益最大,耳机静音。如果我取消耳机静音,它们可以工作,但重启后无法继续工作。如果我将麦克风插入后面板插孔,它会被检测到并工作。(我已经从记忆棒运行了实时 Kubuntu 18.04,一切正常。)

我花了很多时间在网上搜索,但没找到任何有用的方法。我尝试过的方法包括:

  1. 使用 hdajackretask 覆盖设置。
  2. “arecord -l” 显示的是备用声卡,因此我将“load-module module-alsa-source device=hw:1,2”插入到 /etc/pulse/default.pa 中。Plasma 混音器中出现了一个麦克风,但它没有在 Zoom 或 Skype 中产生音频信号。
  3. 我尝试使用 libpulse-mainloop-glib0 libpulse0 libpulsedsp pulseaudio pulseaudio-module-bluetooth pulseaudio-utils 版本 3 和 3.2(而不是 3.6)

我想我可以使用后置插孔,但我不喜欢一直插着麦克风,而且在 20.04 之前一切都正常!

在此先感谢您的帮助。

一些输出:

消息 | grep snd

[    3.232493] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.267957] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    3.267959] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.267960] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    3.267961] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.267962] snd_hda_codec_realtek hdaudioC1D0:    dig-out=0x11/0x0
[    3.267963] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.267964] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    3.267966] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    3.267967] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[    7.751169] snd_hda_codec_hdmi hdaudioC0D0: HDMI: pin nid 6 not registered
[    7.766586] snd_hda_codec_hdmi hdaudioC0D0: HDMI: pin nid 6 not registered

记录-l

**** List of CAPTURE Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

cat /proc/asound/card*/codec* | grep Codec

Codec: Intel Haswell HDMI
Codec: Realtek ALC887-VD

我跑了

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999

输出保存在https://termbin.com/3h0z(但我不知道要多久)。

更新:

我突然想到可以运行“curlhttps://gitlab.freedesktop.org/pulseaudio...”命令来自实时 Kubuntu 18.04 发行版并查看输出中的差异。有相当多的差异。其中大多数对我来说看起来微不足道。例外情况如下所列。

alsactl 输出:之间的差异:

  • 控制.13:值.0,值.1
  • 控制.14:值.0,值.1
  • 控制.20:值

Ubuntu20.04:

    control.13 {
        iface MIXER
        name 'Front Mic Playback Volume'
        value.0 31
        value.1 31
        comment {
            access 'read write'
            type INTEGER
            count 2
            range '0 - 31'
            dbmin -3450
            dbmax 1200
            dbvalue.0 1200
            dbvalue.1 1200
        }
    }

Ubuntu18.04:

    control.13 {
        iface MIXER
        name 'Front Mic Playback Volume'
        value.0 0
        value.1 0
        comment {
            access 'read write'
            type INTEGER
            count 2
            range '0 - 31'
            dbmin -3450
            dbmax 1200
            dbvalue.0 -3450
            dbvalue.1 -3450
        }
    }

Ubuntu20.04:

    control.14 {
        iface MIXER
        name 'Front Mic Playback Switch'
        value.0 true
        value.1 true
        comment {
            access 'read write'
            type BOOLEAN
            count 2
        }
    }

Ubuntu18.04:

    control.14 {
        iface MIXER
        name 'Front Mic Playback Switch'
        value.0 false
        value.1 false
        comment {
            access 'read write'
            type BOOLEAN
            count 2
        }
    }

Ubuntu20.04:

    control.20 {
        iface MIXER
        name 'Input Source'
        value 'Rear Mic'
        comment {
            access 'read write'
            type ENUMERATED
            count 1
            item.0 'Front Mic'
            item.1 'Rear Mic'
            item.2 Line
        }
    }

Ubuntu18.04:

    control.20 {
        iface MIXER
        name 'Input Source'
        value 'Front Mic'
        comment {
            access 'read write'
            type ENUMERATED
            count 1
            item.0 'Front Mic'
            item.1 'Rear Mic'
            item.2 Line
        }
    }

pactl 列表:“来源 #1” 之间的差异

Kubuntu20.04:[无]

Ubuntu18.04:

Source #1
    State: SUSPENDED
    Name: alsa_input.pci-0000_00_1b.0.analog-stereo
    Description: Built-in Audio Analog Stereo
    Driver: module-alsa-card.c
    Sample Specification: s16le 2ch 44100Hz
    Channel Map: front-left,front-right
    Owner Module: 8
    Mute: no
    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
    Monitor of Sink: n/a
    Latency: 0 usec, configured 0 usec
    Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
    Properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "ALC887-VD Analog"
        alsa.id = "ALC887-VD Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xf7e10000 irq 37"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "8c20"
        device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
        device.form_factor = "internal"
        device.string = "front:1"
        device.buffering.buffer_size = "65536"
        device.buffering.fragment_size = "32768"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        alsa.mixer_name = "Realtek ALC887-VD"
        alsa.components = "HDA:10ec0887,10438576,00100302"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    Ports:
        analog-input-front-mic: Front Microphone (priority: 8500, not available)
        analog-input-rear-mic: Rear Microphone (priority: 8200, not available)
        analog-input-linein: Line In (priority: 8100, not available)
    Active Port: analog-input-front-mic
    Formats:
        pcm

amixer 输出:“简单混频器控制‘输入源’,0:Item0”中的差异

Ubuntu20.04:

Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Rear Mic'

Ubuntu18.04:

Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'

另一个更新

我开始怀疑我的问题与内核有关。命令“sudo hdajacksensetest -c 1”给出

Pin 0x14 (Green Line Out, Rear side): present = Yes
Pin 0x18 (Pink Mic, Rear side): present = No
Pin 0x19 (Pink Mic, Front side): present = No
Pin 0x1a (Blue Line In, Rear side): present = No
Pin 0x1b (Green Headphone, Front side): present = No

因此插孔检测过程不会检测到前面板麦克风。我对后面板的麦克风运行了相同的命令,并且运行正常。

相关内容