Eu tentei colocar o áudio do meu segundo monitor no Kubuntu através do jack estéreo de entrada de linha que agora está basicamente funcionando depois de mexer com alsamixer
(desabilitar a linha e obter as configurações de volume) e adicionar load-module module-loopback
ao meu /etc/pulse/default.pa
Meu problema atual e maior com essa configuração é o som / ruído de estalidos que recebo durante a reprodução de áudio - mesmo depois de ajustar o volume de entrada para ~ 5% (tudo acima disso é doloroso) e aumentar o volume no meu amplificador externo . (No Windows 10 não tenho problemas de crackling / som com esta configuração, mesmo com o volume de entrada de linha de 100%)
O que eu tentei até agora:
1) Tendo load-module module-udev-detect tsched=0
(adicionando o tsched=0
)
em /etc/pulse/default.pa
para desativar o agendamento baseado em temporizador no PulseAudio, que ajudou outras pessoas com o som de crackling.
2) Combinando 1) com modificações em /etc/pulse/daemon.conf
para definir o número do fragmento padrão e o tamanho do buffer no PulseAudio (como aqui: link )
3) Escrevendo explicitamente a fonte de loopback & afundar com sua taxa e canais:
load-module module-loopback source=alsa_input.pci-0000_12_00.3.analog-stereo sink=alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo rate=44100 channels=2
E 4) modificando /etc/modprobe.d/alsa-base.conf
com options snd-hda-intel position_fix=1
ou options snd-hda-intel position_fix=2
que foi sugerido aqui: link
Meu sistema:
lspci -nnk | grep -i audio -A2
0e:00.1 Audio device [0403]: NVIDIA Corporation GP104 High Definition Audio Controller [10de:10f0] (rev a1)
Subsystem: CardExpert Technology GP104 High Definition Audio Controller [10b0:1b81]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
--
12:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:1457]
Subsystem: ASRock Incorporation Device [1849:1220]
Kernel driver in use: snd_hda_intel
cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfd080000 irq 329
1 [Audio ]: USB-Audio - DigiHug USB Audio
FiiO DigiHug USB Audio at usb-0000:11:00.3-2, full speed
2 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfd900000 irq 331
pactl list sources
Quelle #0
Status: RUNNING
Name: alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo.monitor
Beschreibung: Monitor of DigiHug USB Audio Analog Stereo
Treiber: module-alsa-card.c
Abtastwert-Angabe: s16le 2ch 44100Hz
Kanalzuordnung: front-left,front-right
Besitzer-Modul: 7
Stumm: ja
Lautstärke: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
Verteilung 0,00
Basis-Lautstärke: 65536 / 100% / 0,00 dB
Ziel-Monitor: alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo
Latenz: 0 usec, eingestellt 40000 usec
Flags: DECIBEL_VOLUME LATENCY
Eigenschaften:
device.description = "Monitor of DigiHug USB Audio Analog Stereo"
device.class = "monitor"
alsa.card = "1"
alsa.card_name = "DigiHug USB Audio"
alsa.long_card_name = "FiiO DigiHug USB Audio at usb-0000:11:00.3-2, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:11:00.3-usb-0:2:1.1"
sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:11:00.3/usb3/3-2/3-2:1.1/sound/card1"
udev.id = "usb-FiiO_DigiHug_USB_Audio-01"
device.bus = "usb"
device.vendor.id = "1852"
device.vendor.name = "GYROCOM C&C Co., LTD"
device.product.id = "7022"
device.product.name = "DigiHug USB Audio"
device.serial = "FiiO_DigiHug_USB_Audio"
device.string = "1"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Formate:
pcm
Quelle #1
Status: RUNNING
Name: alsa_input.pci-0000_12_00.3.analog-stereo
Beschreibung: HD-Audio Generic Analog Stereo
Treiber: module-alsa-card.c
Abtastwert-Angabe: s16le 2ch 44100Hz
Kanalzuordnung: front-left,front-right
Besitzer-Modul: 8
Stumm: nein
Lautstärke: front-left: 6554 / 10% / -60,00 dB, front-right: 6554 / 10% / -60,00 dB
Verteilung 0,00
Basis-Lautstärke: 6554 / 10% / -60,00 dB
Ziel-Monitor: k. A.
Latenz: 30 usec, eingestellt 40000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Eigenschaften:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC1220 Analog"
alsa.id = "ALC1220 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfd900000 irq 331"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:12:00.3"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:12:00.3/sound/card2"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1457"
device.string = "front:2"
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 = "HD-Audio Generic Analog Stereo"
alsa.mixer_name = "Realtek ALC1220"
alsa.components = "HDA:10ec1220,18491220,00100003"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-input-front-mic: Vorderes Mikrofon (priority: 8500, not available)
analog-input-rear-mic: Rückwärtiges Mikrofon (priority: 8200, not available)
analog-input-linein: Eingang (priority: 8100, available)
Aktiver Port: analog-input-linein
Formate:
pcm
pactl list sinks
Ziel #0
Status: RUNNING
Name: alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo
Beschreibung: DigiHug USB Audio Analog Stereo
Treiber: module-alsa-card.c
Abtastwert-Angabe: s16le 2ch 44100Hz
Kanalzuordnung: front-left,front-right
Besitzer-Modul: 7
Stumm: nein
Lautstärke: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
Verteilung 0,00
Basis-Lautstärke: 65536 / 100% / 0,00 dB
Quellen-Monitor: alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo.monitor
Latenz: 46296 usec, eingestellt 40000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Eigenschaften:
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 = "DigiHug USB Audio"
alsa.long_card_name = "FiiO DigiHug USB Audio at usb-0000:11:00.3-2, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:11:00.3-usb-0:2:1.1"
sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:11:00.3/usb3/3-2/3-2:1.1/sound/card1"
udev.id = "usb-FiiO_DigiHug_USB_Audio-01"
device.bus = "usb"
device.vendor.id = "1852"
device.vendor.name = "GYROCOM C&C Co., LTD"
device.product.id = "7022"
device.product.name = "DigiHug USB Audio"
device.serial = "FiiO_DigiHug_USB_Audio"
device.string = "front:1"
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 = "DigiHug USB Audio Analog Stereo"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB1852:7022"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Ports:
analog-output: Analoge Ausgabe (priority: 9900)
Aktiver Port: analog-output
Formate:
pcm
Minha configuração básica de áudio:
Entradas:
Saída: