![内置扬声器不起作用,耳机起作用,USB 扬声器起作用](https://linux22.com/image/190233/%E5%86%85%E7%BD%AE%E6%89%AC%E5%A3%B0%E5%99%A8%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%8C%E8%80%B3%E6%9C%BA%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%8CUSB%20%E6%89%AC%E5%A3%B0%E5%99%A8%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我有一台 HP All-in-one(HP Pavilion All-in-One 24-xa0xxx),除了内置扬声器之外,一切似乎都可以在 Linux 上运行。耳机插孔工作正常。我正在运行 Arch Linux,但这并不是因为 Arch,因为它在 Ubuntu 上不起作用。我尝试过编辑该文件,/usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf
但几乎没有任何作用。上pavucontrol
,它只是说Speakers (Unavailable)
。我也尝试过编辑/etc/modprobe.d/alsa-base.conf
,但也无济于事。现在我有一些 USB 扬声器,它们工作正常,但很麻烦,因为它们占用了额外的 USB 插槽并且声音更差。任何帮助将不胜感激。所有教程或论坛帖子都没有帮助,而且答案也多种多样。
% lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.5 SD Host controller: Intel Corporation Device a375 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 RAID bus controller: Intel Corporation SATA Controller [RAID mode] (rev 10)
00:1c.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #5 (rev f0)
00:1c.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #6 (rev f0)
00:1f.0 ISA bridge: Intel Corporation H370 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
% pacmd list-sinks
2 sink(s) available.
* index: 0
name: <alsa_output.usb-CD002_CD002_CD002-01.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 9049
volume: front-left: 34182 / 52%, front-right: 32897 / 50%
balance -0.04
base volume: 65536 / 100%
volume steps: 256
muted: no
current latency: 1566.65 ms
max request: 375 KiB
max rewind: 375 KiB
monitor source: 0
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.usb-CD002_CD002_CD002-01>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "CD002"
alsa.long_card_name = "CD002 CD002 at usb-0000:00:14.0-2, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:2:1.1"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/sound/card1"
udev.id = "usb-CD002_CD002_CD002-01"
device.bus = "usb"
device.vendor.id = "e2b7"
device.vendor.name = "Jie Li"
device.product.id = "0811"
device.product.name = "CD002"
device.serial = "CD002_CD002_CD002"
device.string = "front:1"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "CD002 Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:
active port: <analog-output>
index: 1
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 62899 / 96% / -1.07 dB, front-right: 62899 / 96% / -1.07 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 58.88 ms
max request: 11 KiB
max rewind: 11 KiB
monitor source: 2
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 60.00 ms; range is 0.50 .. 2000.00 ms
card: 2 <alsa_card.pci-0000_00_1f.3>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC225 Analog"
alsa.id = "ALC225 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xa1398000 irq 129"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a348"
device.product.name = "Cannon Lake PCH cAVS"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
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>
答案1
我意识到这是一个文件的名称,它覆盖了我正在尝试的所有配置。这是我所拥有的有效方法options snd-hda-intel power_save=0 model=generic probe_mask=1
: