Estou tendo EXATAMENTE o mesmo problema descrito nesta pergunta: Saída de som do fone de ouvido fica misturada com a saída de saída de linha . Infelizmente, essa pergunta não tem uma resposta publicada. Não tenho certeza se postar uma pergunta dessa forma é apropriado (sou novo nesses fóruns), mas estou tentando descobrir isso sem sucesso há algumas semanas.
O sistema em que estou tendo esse problema usa um CS4207 com três saídas analógicas. Apenas duas das três saídas estão conectadas: Fones de ouvido e Saída de linha. Testei o hardware de áudio no Windows e verifiquei que todo o hardware está funcionando conforme o esperado (o que, junto com alguns outros testes que fiz, me leva a acreditar que este é um problema de driver com Alsa ou pulseaudio).
O problema que estou vendo é o seguinte: quando a saída de linha é selecionada como saída de som, o som funciona como esperado (ou seja, o som só sai dos alto-falantes conectados à porta de saída de linha); no entanto, quando os fones de ouvido são selecionados como saída de som, o som sai tanto dos alto-falantes conectados à porta de fones de ouvido quanto dos alto-falantes conectados à porta de saída de linha.
Visualizar as configurações de som via Alsamixer enquanto altera o dispositivo de saída selecionado ajuda a ilustrar o problema.
Quando Line Out é a saída selecionada:
Quando Fones de ouvido é a saída selecionada:
Como você pode ver aqui, quando a saída de linha é selecionada, os fones de ouvido são automaticamente silenciados e ajustados para um volume zero. No entanto, quando os fones de ouvido são a saída selecionada, as configurações de volume e silenciamento da saída de linha não são alteradas.
Para resolver esse problema, fiz alterações /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
e, embora eu possa ver que as alterações estão sendo aplicadas (as configurações de som mudam e o alsamixer muda), não encontrei uma modificação que tenha o efeito desejado.
Não tenho certeza se algum dos seguintes será útil, mas reproduzirei as saídas geradas no post original que chamou a atenção para esse problema (as saídas a seguir são do meu sistema, estou apenas executando os mesmos comandos do post original). Observe que reverti todas as modificações para analog-output-headphones.conf antes de executá-las.
sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CS4207 Analog [CS4207 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CS4207 Digital [CS4207 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [DELL U2713HM]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [BenQ LCD]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
Quando o problema está ocorrendo (fones de ouvido selecionados como saída):
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: 27022 / 41% / -23.09 dB, front-right: 27023 / 41% / -23.08 dB
balance 0.00
base volume: 52057 / 79% / -6.00 dB
volume steps: 65537
muted: no
current latency: 4.86 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 4
linked by: 4
configured latency: 4.00 ms; range is 4.00 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 21
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CS4207 Analog"
alsa.id = "CS4207 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 0x6001110000 irq 155"
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 = "51ca"
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: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>
Quando o problema está ocorrendo (fones de ouvido selecionados como saída)
pactl list sink-inputs
Sink Input #1
Driver: protocol-native.c
Owner Module: 10
Client: 10
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4851 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4710"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_espeak-ng"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #2
Driver: protocol-native.c
Owner Module: 10
Client: 11
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4839 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4724"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_cicero"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #3
Driver: protocol-native.c
Owner Module: 10
Client: 12
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4829 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4728"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_dummy"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #4
Driver: protocol-native.c
Owner Module: 10
Client: 13
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4818 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4731"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_generic"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Quando o problema não está ocorrendo (Line Out selecionado como saída):
pactl list sink-inputs
Sink Input #1
Driver: protocol-native.c
Owner Module: 10
Client: 10
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 3734 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4710"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_espeak-ng"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #2
Driver: protocol-native.c
Owner Module: 10
Client: 11
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4804 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4724"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_cicero"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #3
Driver: protocol-native.c
Owner Module: 10
Client: 12
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4794 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4728"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_dummy"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"
Sink Input #4
Driver: protocol-native.c
Owner Module: 10
Client: 13
Sink: 1
Sample Specification: s16le 1ch 44100Hz
Channel Map: mono
Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "1" format.channel_map = "\"mono\""
Corked: no
Mute: no
Volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
Buffer Latency: 0 usec
Sink Latency: 4788 usec
Resample method: copy
Properties:
media.name = "playback"
application.name = "speech-dispatcher"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "34"
application.process.id = "4731"
application.process.user = [removed]
application.process.host = "localhost.localdomain"
application.process.binary = "sd_generic"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "cbd63041d9194224ad624e9ddb6a37da"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher"