15

I have a little Sony VAIO P series computer on which is installed Ubuntu 15.10 running LXDE. I've found that all audio played on the device is choppy, everything from MP4 videos played on VLC, to Skype, to Festival, is choppy. Here is a sound recording to illustrate:

https://clyp.it/vp1j2q2j

From aplay -l, I can see that the hardware playback device is HDA Intel MID ALC275. What could be going wrong and how could I try to fix it?

5
23

Edit the file /etc/pulse/default.pa.

Find the following line:

load-module module-udev-detect

Change the line to the following:

load-module module-udev-detect tsched=0

Restart PulseAudio:

pulseaudio -k

Should do the trick.

7
  • 1
    Aw yeah! That solved the problem. I've been wanting that solved for more than a year now. Thanks!
    – d3pd
    Dec 12 '16 at 21:23
  • Thanks for this solution :) Wonder what this option actually does - and why it is not set by default?
    – Joerg S
    Sep 14 '17 at 15:37
  • Thanks! It helped me, with a more horrible audio distortion issue. See also askubuntu.com/questions/371595/…
    – miguev
    Nov 2 '17 at 16:26
  • 1
    can you provide an explanation of the commands and why they are needed? Jan 22 '20 at 13:43
  • 1
    @PedroRodrigues The answer you are looking for is described here: askubuntu.com/questions/371595/… Sep 7 '20 at 7:59
5

The solution for me was to edit /etc/pulse/daemon.conf

sudo -H gedit /etc/pulse/daemon.conf

Find the line

; resample-method = 

uncomment (remove the ;) and change to

resample-method = src-sinc-best-quality

If the line is not there at all, then add it.

Reboot for changes to take effect.

1
  • It worked on Kubuntu 20.04 for me, Kernel version 5.4.0-66 generic, 64 bit OS. Thanks.
    – salep
    Feb 27 at 11:17
3

For me none of the above worked. My issue appears to have been with adb (Android Debugging Bridge). I resolved my issue simply by stopping the adb server with the following command: adb kill-server.

Wanted to share in case anyone else was having the same issue while using adb

This likely does not apply to a lot of people.

2
2

I just ran into a similar issue with Skype 8 (skypeforlinux).

Here are the instructions that solved my pulseaudio configuration problem.

  1. Resolve Choppy sound in (Pulseaudio) -> Skype

In /etc/pulse/daemon.conf two lines has to be also substituted:

; default-sample-rate = 44100

Should become;

; default-sample-rate = 48000

HT: PCFreak.Net

Your mileage may vary. Best of luck!

2
  • My output was really choppy on CM106 like device (using SPDIF out) and it stopped being that way only after using 96000 default sample rate. I am also using the above suggestions but they did not make a difference themselves.
    – hakunin
    Mar 8 '19 at 10:22
  • This seems to have solved it for my RME Babyface and pulseaudio 14.2
    – Juliano
    Jul 17 at 15:38
2

None of the above fixes worked for me (pulseaudio 11.1); what solved it for me was going into /etc/pulse/daemon.conf and turning off realtime-scheduling by adding in the line realtime-scheduling = no beneath the line reading ;realtime-scheduling = yes like so:

;realtime-scheduling = yes
realtime-scheduling = no

This completely fixed the issue for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.