问题摘要
当选择线路输出扬声器作为声音输出时,声音很好。声音来自仅有的连接到线路输出端口的扬声器发出声音。但是,当选择耳机作为输出设备时,声音会从两个都来自耳机和扬声器。
(编辑1)我在 Windows 10 中测试过(使用实时 USB),问题没有出现。所以,这肯定是软件问题。
细节
我的台式计算机有三个声音输出选项:
- HDMI/显示端口(未使用)
- 前置耳机端口(连接耳机)
- 背面的线路输出端口(连接扬声器)
当选择线路输出作为输出设备时,只能从连接到线路输出端口的扬声器听到声音。这没有问题。
但是,当选择耳机作为输出设备时,会听到声音两个都从耳机和连接至线路输出端口的扬声器。
这真的很奇怪,违背了耳机的初衷,即保护隐私和不打扰他人。
当前的设置
我找到的声卡如下。
sudo aplay -l
**** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC3234 Analog [ALC3234 Analog]
其余部分
我甚至尝试在设置中将线路输出的音量设置为零。这对线路输出扬声器有效。但是,当选择耳机时,这似乎对音量没有任何影响。即使将音量设置为零,线路输出扬声器的声音也同样响亮。
我不确定输出是否alsamixer
有用。但无论如何,还是给出来。
编辑1
我使用实时 USB 启动了 Windows 10 中的 PC。并再次测试了声音输出。问题没有出现。所以,这肯定是软件(某个配置文件?)问题。
编辑2
输出pacmd list-sinks
(问题发生时产生的)
1 sink(s) available. * 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: 18352 / 28% / -33.17 dB, front-right: 18352 / 28% / -33.17 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 22.61 ms max request: 4 KiB max rewind: 4 KiB monitor source: 1 sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo used by: 1 linked by: 1 configured latency: 23.22 ms; range is 0.50 .. 2000.00 ms card: 0 <alsa_card.pci-0000_00_1f.3> module: 23 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "ALC3234 Analog" alsa.id = "ALC3234 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 0xf7040000 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 = "a170" device.product.name = "100 Series/C230 Series Chipset Family HD Audio Controller" device.form_factor = "internal" device.string = "front:0" device.buffering.buffer_size = "352800" device.buffering.fragment_size = "176400" 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-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes) properties: 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: unknown) properties: device.icon_name = "audio-headphones" active port: <analog-output-headphones>
编辑3
输出pactl list sink-inputs
(通过扬声器播放时,无问题场景)
Sink Input #20 Driver: protocol-native.c Owner Module: 10 Client: 34 Sink: 1 Sample Specification: float32le 2ch 44100Hz Channel Map: front-left,front-right Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\"" Corked: no Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Buffer Latency: 42811 usec Sink Latency: 23180 usec Resample method: copy Properties: application.icon_name = "google-chrome" media.name = "Playback" application.name = "Google Chrome" native-protocol.peer = "UNIX socket client" native-protocol.version = "34" application.process.id = "3091" application.process.user = "masroor" application.process.host = "masroor-OptiPlex-5040" application.process.binary = "chrome" application.language = "en_US.UTF-8" window.x11.display = ":0" application.process.machine_id = "749ee17244e440b5b766e258f177b412" module-stream-restore.id = "sink-input-by-application-name:Google Chrome"
输出pactl list sink-inputs
(通过耳机播放时,问题场景,声音从耳机和扬声器中同时发出,虽然应该从仅有的耳机中的声音)
Sink Input #20 Driver: protocol-native.c Owner Module: 10 Client: 34 Sink: 1 Sample Specification: float32le 2ch 44100Hz Channel Map: front-left,front-right Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\"" Corked: no Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Buffer Latency: 45714 usec Sink Latency: 22927 usec Resample method: copy Properties: application.icon_name = "google-chrome" media.name = "Playback" application.name = "Google Chrome" native-protocol.peer = "UNIX socket client" native-protocol.version = "34" application.process.id = "3091" application.process.user = "masroor" application.process.host = "masroor-OptiPlex-5040" application.process.binary = "chrome" application.language = "en_US.UTF-8" window.x11.display = ":0" application.process.machine_id = "749ee17244e440b5b766e258f177b412" module-stream-restore.id = "sink-input-by-application-name:Google Chrome"
答案1
您可以尝试启用同步输出功能,检查其工作情况,然后禁用它。也许这可以解决您的问题。
安装paprefs
、运行并启用同时输出。然后运行pavucontrol
并转到输出设备,并尝试修改选项(你应该看到同时输出...)或前往设置->声音->输出->同时输出...,并对其进行修补。
与此同时,你可以检查一下是否有任何奇怪的事情发生
pavucontrol
->配置。
来源: