PulseAudio loopback module with crackling sound / noise under Kubuntu 17.10

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I tried to get audio from my second monitor into Kubuntu through the line-in stereo jack which is now basically working after fiddling with alsamixer (un-mute Line & getting volume settings right) and adding load-module module-loopback to my /etc/pulse/default.pa



My current and biggest problem with this setup is the crackling sound / noise I get while playing audio - even after adjusting the line-in volume to ~5% (everything above that is just painful) and increasing volume on my external amplifier. (Under Windows 10 I have no crackling / sound problems with this setup even with line-in volume of 100%)



What I've tried so far:



1) Having load-module module-udev-detect tsched=0 (adding the tsched=0)
in /etc/pulse/default.pa for deactivating timer-based scheduling in PulseAudio which helped other people with crackling sound.



2) Combining 1) with modifications in /etc/pulse/daemon.conf for setting the default fragment number and buffer size in PulseAudio (like here: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Static_noise_when_using_headphones)



3) Explicitly writing the loopback source & sink with its rate and channels:



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


And 4) modifying /etc/modprobe.d/alsa-base.conf with options snd-hda-intel position_fix=1 or options snd-hda-intel position_fix=2 which was suggested here: https://wiki.ubuntu.com/Audio/PositionReporting



My system:



  • Kubuntu 17.10, 64 Bit

  • Kernel-Version 4.13.0-36-generic

  • AMD Ryzen 7 1700X CPU

  • 16 GB RAM

  • ASRock X370 Taichi motherboard

  • Nvidia GTX 1070 GPU


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


My basic audio setup:



Inputs:



  • audio coming from second monitor into computer line-in

  • all other audio is coming from the system / applications / music

Output:



  • USB-DAC/AMP which my headphone is connected to









share|improve this question





















  • What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
    – Vanessa Deagan
    Mar 13 at 17:38










  • At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
    – Vorkosik
    Mar 14 at 12:30










  • Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
    – Michal Przybylowicz
    Mar 14 at 22:09










  • Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
    – Vorkosik
    Mar 15 at 0:12














up vote
0
down vote

favorite












I tried to get audio from my second monitor into Kubuntu through the line-in stereo jack which is now basically working after fiddling with alsamixer (un-mute Line & getting volume settings right) and adding load-module module-loopback to my /etc/pulse/default.pa



My current and biggest problem with this setup is the crackling sound / noise I get while playing audio - even after adjusting the line-in volume to ~5% (everything above that is just painful) and increasing volume on my external amplifier. (Under Windows 10 I have no crackling / sound problems with this setup even with line-in volume of 100%)



What I've tried so far:



1) Having load-module module-udev-detect tsched=0 (adding the tsched=0)
in /etc/pulse/default.pa for deactivating timer-based scheduling in PulseAudio which helped other people with crackling sound.



2) Combining 1) with modifications in /etc/pulse/daemon.conf for setting the default fragment number and buffer size in PulseAudio (like here: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Static_noise_when_using_headphones)



3) Explicitly writing the loopback source & sink with its rate and channels:



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


And 4) modifying /etc/modprobe.d/alsa-base.conf with options snd-hda-intel position_fix=1 or options snd-hda-intel position_fix=2 which was suggested here: https://wiki.ubuntu.com/Audio/PositionReporting



My system:



  • Kubuntu 17.10, 64 Bit

  • Kernel-Version 4.13.0-36-generic

  • AMD Ryzen 7 1700X CPU

  • 16 GB RAM

  • ASRock X370 Taichi motherboard

  • Nvidia GTX 1070 GPU


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


My basic audio setup:



Inputs:



  • audio coming from second monitor into computer line-in

  • all other audio is coming from the system / applications / music

Output:



  • USB-DAC/AMP which my headphone is connected to









share|improve this question





















  • What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
    – Vanessa Deagan
    Mar 13 at 17:38










  • At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
    – Vorkosik
    Mar 14 at 12:30










  • Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
    – Michal Przybylowicz
    Mar 14 at 22:09










  • Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
    – Vorkosik
    Mar 15 at 0:12












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I tried to get audio from my second monitor into Kubuntu through the line-in stereo jack which is now basically working after fiddling with alsamixer (un-mute Line & getting volume settings right) and adding load-module module-loopback to my /etc/pulse/default.pa



My current and biggest problem with this setup is the crackling sound / noise I get while playing audio - even after adjusting the line-in volume to ~5% (everything above that is just painful) and increasing volume on my external amplifier. (Under Windows 10 I have no crackling / sound problems with this setup even with line-in volume of 100%)



What I've tried so far:



1) Having load-module module-udev-detect tsched=0 (adding the tsched=0)
in /etc/pulse/default.pa for deactivating timer-based scheduling in PulseAudio which helped other people with crackling sound.



2) Combining 1) with modifications in /etc/pulse/daemon.conf for setting the default fragment number and buffer size in PulseAudio (like here: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Static_noise_when_using_headphones)



3) Explicitly writing the loopback source & sink with its rate and channels:



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


And 4) modifying /etc/modprobe.d/alsa-base.conf with options snd-hda-intel position_fix=1 or options snd-hda-intel position_fix=2 which was suggested here: https://wiki.ubuntu.com/Audio/PositionReporting



My system:



  • Kubuntu 17.10, 64 Bit

  • Kernel-Version 4.13.0-36-generic

  • AMD Ryzen 7 1700X CPU

  • 16 GB RAM

  • ASRock X370 Taichi motherboard

  • Nvidia GTX 1070 GPU


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


My basic audio setup:



Inputs:



  • audio coming from second monitor into computer line-in

  • all other audio is coming from the system / applications / music

Output:



  • USB-DAC/AMP which my headphone is connected to









share|improve this question













I tried to get audio from my second monitor into Kubuntu through the line-in stereo jack which is now basically working after fiddling with alsamixer (un-mute Line & getting volume settings right) and adding load-module module-loopback to my /etc/pulse/default.pa



My current and biggest problem with this setup is the crackling sound / noise I get while playing audio - even after adjusting the line-in volume to ~5% (everything above that is just painful) and increasing volume on my external amplifier. (Under Windows 10 I have no crackling / sound problems with this setup even with line-in volume of 100%)



What I've tried so far:



1) Having load-module module-udev-detect tsched=0 (adding the tsched=0)
in /etc/pulse/default.pa for deactivating timer-based scheduling in PulseAudio which helped other people with crackling sound.



2) Combining 1) with modifications in /etc/pulse/daemon.conf for setting the default fragment number and buffer size in PulseAudio (like here: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Static_noise_when_using_headphones)



3) Explicitly writing the loopback source & sink with its rate and channels:



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


And 4) modifying /etc/modprobe.d/alsa-base.conf with options snd-hda-intel position_fix=1 or options snd-hda-intel position_fix=2 which was suggested here: https://wiki.ubuntu.com/Audio/PositionReporting



My system:



  • Kubuntu 17.10, 64 Bit

  • Kernel-Version 4.13.0-36-generic

  • AMD Ryzen 7 1700X CPU

  • 16 GB RAM

  • ASRock X370 Taichi motherboard

  • Nvidia GTX 1070 GPU


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


My basic audio setup:



Inputs:



  • audio coming from second monitor into computer line-in

  • all other audio is coming from the system / applications / music

Output:



  • USB-DAC/AMP which my headphone is connected to






sound kubuntu pulseaudio alsa






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 13 at 16:12









Vorkosik

11




11











  • What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
    – Vanessa Deagan
    Mar 13 at 17:38










  • At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
    – Vorkosik
    Mar 14 at 12:30










  • Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
    – Michal Przybylowicz
    Mar 14 at 22:09










  • Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
    – Vorkosik
    Mar 15 at 0:12
















  • What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
    – Vanessa Deagan
    Mar 13 at 17:38










  • At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
    – Vorkosik
    Mar 14 at 12:30










  • Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
    – Michal Przybylowicz
    Mar 14 at 22:09










  • Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
    – Vorkosik
    Mar 15 at 0:12















What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
– Vanessa Deagan
Mar 13 at 17:38




What kernel are you running? I had a similar problem a while ago with a Z97 motherboard, and updating the kernel fixed it for me (at the time the Z97 was a new board/chipset). Perhaps try upgrading to the 4.15 kernel?
– Vanessa Deagan
Mar 13 at 17:38












At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
– Vorkosik
Mar 14 at 12:30




At the moment I'm using 4.13.0-36 (generic, newest from the standard repo). I'm not that versed in Linux, but from what I gathered upgrading to a mainline kernel is kind of risky or rather 'advanced stuff' and can probably excavate/generate new problems? My motherboard is not that new (first Ryzen-generation) so I'd hope any normal fixes should already be included in the current kernel. But nevertheless I thank you for the suggestion! :)
– Vorkosik
Mar 14 at 12:30












Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
– Michal Przybylowicz
Mar 14 at 22:09




Run in terminal alsamixer, hit f5 to select all controls and mute Mic Boost (+20db) if enabled.
– Michal Przybylowicz
Mar 14 at 22:09












Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
– Vorkosik
Mar 15 at 0:12




Thanks for the suggestion - I already did that first whilst trying to get the line-in to work. Currently I have all boosts (2x Mic Boosts and 1x Line Boost) at '0' (no mute-option there) and a setting named Capture at 5 (the aforementioned 5% volume). In fact I tried muting all options not related to line-in but no constellation got rid of the problem.
– Vorkosik
Mar 15 at 0:12















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014632%2fpulseaudio-loopback-module-with-crackling-sound-noise-under-kubuntu-17-10%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014632%2fpulseaudio-loopback-module-with-crackling-sound-noise-under-kubuntu-17-10%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error