Random Crackling in Audio

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Random Crackling in Audio

Post by Bauerbyter »

Hey,
After I switched from Ubuntu to Mint I have the strange behaviour, that when I listen to audio (youtube, spotify, direct...) I have some small random crackling/blobbing. This is not very big or loud but drives my insane :-)
I have a Steinberg UR22, but it also occurs with my build in Soundcard and on Headphones and Speakers.
Sound a bit like bufferproblem or timing problem, but I am not a expert.

Do you have some ideas how I can resolve this?
Thanks in advance.
Bauerbyter.

User avatar
SSpooky
Level 2
Level 2
Posts: 77
Joined: Thu Aug 15, 2019 6:53 am
Location: BE

Re: Random Crackling in Audio

Post by SSpooky »

Start by trying these fixes Bauerbyter.
http://mreen.epizy.com/SoundFixTips.html

If no luck, post the outputs here of...

Code: Select all

inxi -Fxz

Code: Select all

aplay -l

Code: Select all

pacmd list-sinks
Proud owner of...
CLEVO W670SC (6 years young) with LM 19.3 Cinnamon
MSI GT70.........(7 years young) with LM 19.3 Cinnamon

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

Thanks for your help!
I did everything under "Bad Sound Fix Tips"
5 and 6 were already disabled/off, changing to tsched= 0 and changing the sample rate, did nothing.
Btw: my main output is the UR22

Code: Select all

System:    Host: BauerbyterTop Kernel: 5.3.0-42-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 
           Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:   Type: Laptop System: LENOVO product: 23493A1 v: ThinkPad T430 serial: <filter> 
           Mobo: LENOVO model: 23493A1 serial: <filter> UEFI [Legacy]: LENOVO v: G1ETA8WW (2.68 ) 
           date: 03/06/2015 
Battery:   ID-1: BAT0 charge: 78.7 Wh condition: 78.8/85.9 Wh (92%) model: SANYO 45N1173 status: Unknown 
CPU:       Topology: Quad Core model: Intel Core i7-3720QM bits: 64 type: MT MCP arch: Ivy Bridge rev: 9 
           L2 cache: 6144 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 41502 
           Speed: 1197 MHz min/max: 1200/3600 MHz Core speeds (MHz): 1: 1197 2: 1197 3: 1197 4: 1197 
           5: 1197 6: 1197 7: 1197 8: 1196 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 v: kernel 
           bus ID: 00:02.0 
           Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1600x900~60Hz, 1920x1200~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile v: 4.2 Mesa 19.2.8 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 
           Device-2: Yamaha type: USB driver: snd-usb-audio bus ID: 2-1.8.3:7 
           Device-3: Roland type: USB driver: snd-usb-audio bus ID: 2-1.8.1:8 
           Sound Server: ALSA v: k5.3.0-42-generic 
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e v: 3.2.6-k port: 4080 
           bus ID: 00:19.0 
           IF: enp0s25 state: down mac: <filter> 
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel port: efa0 
           bus ID: 03:00.0 
           IF: wlp3s0 state: up mac: <filter> 
           IF-ID-1: wwp0s20u4i6 state: down mac: <filter> 
Drives:    Local Storage: total: 670.70 GiB used: 109.76 GiB (16.4%) 
           ID-1: /dev/sda vendor: SanDisk model: Ultra II 240GB size: 223.57 GiB 
           ID-2: /dev/sdb vendor: Kingston model: SA400S37480G size: 447.13 GiB 
Partition: ID-1: / size: 219.06 GiB used: 109.76 GiB (50.1%) fs: ext4 dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 55.0 C mobo: 0.0 C 
           Fan Speeds (RPM): cpu: 3968 
Info:      Processes: 273 Uptime: 5h 10m Memory: 7.48 GiB used: 3.90 GiB (52.1%) Init: systemd runlevel: 5 
           Compilers: gcc: 7.5.0 Shell: bash v: 4.4.20 inxi: 3.0.32 

Code: Select all

**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: ALC3202 Analog [ALC3202 Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: UR22 [Steinberg UR22], Gerät 0: USB Audio [USB Audio]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Karte 2: KATANA [KATANA], Gerät 0: USB Audio [USB Audio]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

Code: Select all

3 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9039
	volume: front-left: 5358 /   8% / -65,25 dB,   front-right: 5358 /   8% / -65,25 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	fixed latency: 99,95 ms
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC3202 Analog"
		alsa.id = "ALC3202 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 0xf1530000 irq 34"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "17632"
		device.buffering.fragment_size = "4408"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Eingebautes Tongerät Analog Stereo"
		alsa.mixer_name = "Realtek ALC3202"
		alsa.components = "HDA:10ec0269,17aa21f3,00100203 HDA:80862806,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Lautsprecher (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-speaker>
    index: 1
	name: <alsa_output.usb-BOSS_KATANA-01.analog-surround-40>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY 
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9049
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB,   rear-left: 65536 / 100% / 0,00 dB,   rear-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s32le 4ch 44100Hz
	channel map: front-left,front-right,rear-left,rear-right
	             Surround 4.0
	used by: 0
	linked by: 0
	fixed latency: 99,95 ms
	card: 1 <alsa_card.usb-BOSS_KATANA-01>
	module: 8
	properties:
		alsa.resolution_bits = "32"
		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 = "2"
		alsa.card_name = "KATANA"
		alsa.long_card_name = "BOSS KATANA at usb-0000:00:1d.0-1.8.1, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.0-usb-0:1.8.1:1.1"
		sysfs.path = "/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.1/2-1.8.1:1.1/sound/card2"
		udev.id = "usb-BOSS_KATANA-01"
		device.bus = "usb"
		device.vendor.id = "0582"
		device.vendor.name = "Roland Corp."
		device.product.id = "01d8"
		device.product.name = "KATANA"
		device.serial = "BOSS_KATANA"
		device.string = "surround40:2"
		device.buffering.buffer_size = "70528"
		device.buffering.fragment_size = "17632"
		device.access_mode = "mmap"
		device.profile.name = "analog-surround-40"
		device.profile.description = "Analog Surround 4.0"
		device.description = "KATANA Analog Surround 4.0"
		alsa.components = "USB0582:01d8"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-output: Analoge Ausgabe (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-output>
  * index: 2
	name: <alsa_output.usb-Yamaha_Corporation_Steinberg_UR22-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: 
	priority: 9049
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 106,50 ms
	max request: 25 KiB
	max rewind: 25 KiB
	monitor source: 4
	sample spec: s24le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	fixed latency: 99,95 ms
	card: 2 <alsa_card.usb-Yamaha_Corporation_Steinberg_UR22-00>
	module: 9
	properties:
		alsa.resolution_bits = "24"
		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 = "Steinberg UR22"
		alsa.long_card_name = "Yamaha Corporation Steinberg UR22 at usb-0000:00:1d.0-1.8.3, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.0-usb-0:1.8.3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8/2-1.8.3/2-1.8.3:1.0/sound/card1"
		udev.id = "usb-Yamaha_Corporation_Steinberg_UR22-00"
		device.bus = "usb"
		device.vendor.id = "0499"
		device.vendor.name = "Yamaha Corp."
		device.product.id = "1509"
		device.product.name = "Steinberg UR22"
		device.serial = "Yamaha_Corporation_Steinberg_UR22"
		device.string = "front:1"
		device.buffering.buffer_size = "26448"
		device.buffering.fragment_size = "6612"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Steinberg UR22 Analog Stereo"
		alsa.components = "USB0499:1509"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-output: Analoge Ausgabe (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-output>


User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Hi Bauerbyter, and welcome to the forum.

See if this helps:

Code: Select all

sudo tee /etc/modprobe.d/snd-hda-intel.conf <<<'options snd-hda-intel power_save=0'
Reboot when done.

Also, the tsched=0 tweak has no space after the = sign in the file, correct?

If it's still the same, install and run PulseAudio Volume Control (pavucontrol) and on the Configuration tab set the BOSS device to Off instead of Analog Surround 4.0 Output at least for testing.

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

Thanks :-)

tried everything and yes there is no space.
The Boss Katana is a Guitar Amplifier and most of the time not connected, but I changed it.

Same behaviour -.-

this is very strange, its sounds a bit like there is a timing problem or something. I am a Musician, but not familiar with Linux Sound.

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

As I'm struggling to think what it might be, let's see the output of this:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
The last line will have a URL that will point to a comprehensive overview of your sound setup. Maybe that'll point us in the right direction.

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

Thats a cool script :-)
here is the link: https://termbin.com/9s9f

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

I've just started going through the output and realized you may not have tried this. Delete the files in /home/YourUserName/.config/pulse then run pulseaudio -k in the terminal. Could be just a little config hiccup.

I'll continue looking through the output for anything else worth trying.

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

Thanks a lot that you do this work for me! Much appreciated. :oops:

deleted everything and restarted pulseaudio, same behaviour -.-

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Hmm, everything looked pretty good. Going to try a few stabs-in-the-dark now. In the terminal run alsamixer. The will open to the settings for your built-in sound card. Arrow over to each column and press the m key to mute them. Muted column will show MM at the bottom. Some won't be mute-able. Also use the down arrow to drop their levels down to zero. I'm sort of hoping there's some kind of feedback loop type of thing happening that this might fix.

I'm betting you may have already tried this, but also try a different USB port if possible. Speaking of which, are you using a hub? Or is it connected directly to the computer?

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

sooo i checked everything twice again. And the problem is only when the usb soundcard is connected (UR22), if its disconnected everything works fine. Is there something I can change in the settings of this soundcard?

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Well damn, I'm now wondering if there's a shielding issue or grounding issue causing this, and that's not an area I'm comfortable in.

Although, I saw you have a Dock Microphone as one of your inputs on the built-in sound card. Is the UR22 connected to a dock or directly to the laptop?

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

I have a Dock Mic? I think I only have a internal microphone.
Yes i am using a Dockingstation, but i already made tests, without the docking station, another cable and plugged in ONLY the UR22 -> same result.

I have a second SSD with my Windows Partition, which is only there for Music Recording and there the Soundcard is working flawlessly. So I Thought it has to be the driver of the UR22.

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Most likely the fact you were connected to a dock automatically added a Dock Mic to your options.

I'm just about out of ideas. Try cleaning the ports of the UR22. A little piece of crud in there could cause something like this. I'm doubting that will help with Windows having no issue, but it's worth a shot.

After that all I can think of is to create a bug report against the snd-usb-audio driver and see if that leads anywhere. Here's how to get started.

P.S. You did lower the Capture column in alsamixer, correct? You need to press F4 when alsamixer is open to see it.

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

Thanks for all your work!
I will do that. The Problem occurs in different linux distros (checked it right now).

And yes I did this, checked it again.

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Sorry we couldn't fix this here. It's probably some weird USB issue that the developers can hopefully figure out. I do see device specific settings/tweaks get added to the code for snd-usb-audio on a somewhat regular basis.

Bauerbyter
Level 1
Level 1
Posts: 9
Joined: Thu Mar 26, 2020 10:21 am

Re: Random Crackling in Audio

Post by Bauerbyter »

I filled out a bug request. Hope I did it right :-)
https://bugzilla.kernel.org/show_bug.cgi?id=207037

User avatar
MrEen
Level 18
Level 18
Posts: 8086
Joined: Mon Jun 12, 2017 8:39 pm

Re: Random Crackling in Audio

Post by MrEen »

Bauerbyter wrote:
Tue Mar 31, 2020 5:43 am
I filled out a bug request. Hope I did it right :-)
https://bugzilla.kernel.org/show_bug.cgi?id=207037
Looks great to me! Jaroslav Kysela or others may ask for additional outputs, but you did good.

Good luck! :D

Post Reply

Return to “Sound, Multimedia, & Codecs”