You are not logged in.

#1 2021-04-02 17:53:55

Sotitsi
Member
Registered: 2019-11-13
Posts: 15

Pulseaudio: Skips n pops

Hello, I have a problem with my audio and it gets frustrating. In the past I used ALSA for all my audio needs. I had a problem with skips and glitches and stuff in any playback. After a lot of searching I managed to fix the problem with a specific asoundrc configuration. To be more specific I set the period size to 1024 and the buffer size to 8192. Also used the softvol plugin. Problem disappeared and I was happy.

Recently I bought a headset and I decided to switch to Pulseaudio for anything audio-related, because it is easier to switch between the speakers, microphones etc. And now the problem is back. While playing audio I hear skips every couple of seconds. It is just for a fraction of a second that the sound skips and is replaced with a pop.

This only happens when playing audio from the speakers. Not when using the sound card of my headset. So I'm pretty sure it's related with the old problem when I was using ALSA.

I tried various things but it's still there, here is what I tried.

1) Disabling Timer-based scheduling

2) Setting default fragments and size to 3 and 5 respectively.

3) Using the following options (options snd-hda-intel vid=8086 pid=8ca0 snoop=0)

Anyone has any idea what should I try next or how to tackle this? Thanks in advance.

Not sure what info would someone needbut here is "pactl list sinks"

Sink #0
	State: SUSPENDED
	Name: alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo
	Description: HyperX 7.1 Audio Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 8
	Mute: yes
	Volume: front-left: 29274 /  45% / -21.00 dB,   front-right: 29274 /  45% / -21.00 dB
	        balance 0.00
	Base Volume: 54094 /  83% / -5.00 dB
	Monitor Source: alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		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 = "2"
		alsa.card_name = "HyperX Virtual Surround Sound"
		alsa.long_card_name = "Kingston HyperX Virtual Surround Sound at usb-0000:00:14.0-3, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:3:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/sound/card2"
		udev.id = "usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00"
		device.bus = "usb"
		device.vendor.id = "0951"
		device.vendor.name = "Kingston Technology"
		device.product.id = "16a4"
		device.product.name = "HyperX 7.1 Audio"
		device.serial = "Kingston_HyperX_Virtual_Surround_Sound_00000000"
		device.string = "front:2"
		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 = "HyperX 7.1 Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	Ports:
		analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
	Active Port: analog-output
	Formats:
		pcm

Sink #2
	State: RUNNING
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 9
	Mute: no
	Volume: front-left: 18350 /  28% / -33.17 dB,   front-right: 18350 /  28% / -33.17 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
	Latency: 99904 usec, configured 99954 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD 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 0xf7210000 irq 32"
		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 = "8ca0"
		device.product.name = "9 Series Chipset Family HD 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 = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-lineout: Line Out (type: Line, priority: 9000, available)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
	Active Port: analog-output-lineout
	Formats:
		pcm

Offline

#2 2021-04-02 18:15:17

Morn
Member
Registered: 2012-09-02
Posts: 708

Re: Pulseaudio: Skips n pops

You could try to install pipewire-pulse and pipewire-alsa and reboot.

If you are lucky, this will magically fix your issue. But if not, at least you are using more stable software than before. I feel more optimistic about debugging potential PipeWire issues than about PulseAudio...

Offline

Board footer

Powered by FluxBB