LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 08-29-2021, 07:33 AM   #1
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Rep: Reputation: 40
Raspberry Pi and sound peaks and/or cuts/drops


I was having some sound issues with my Raspberry Pi 4.
Sound peaking, sometimes cutting/dropping randomly.

Slightly disappointed with my Pi 4, but at the same time confused that it worked when using youtube streams throught firefox, and the sound cut/dropped and peaked diffrently when using kodi-gbm and when running kodi-x11 (xorg).

So i came to the conclution that this could not be a hardware issue (Like a cheap or bad soundcard/chip), it had to be some software issue.

Started to wondering if this was some issue using kodi and having problem with streams.
So i started to google, and after hunting diffrent search words i finaly found a guide at kodi wiki and about PulseAudio.

So i tried changing the settings for PulseAudio as decribed and rebooted the system.
Tadaaa, it worked! =)

/etc/pulse/daemon.conf
Code:
default-sample-format = s24le
default-sample-rate = 44100
alternate-sample-rate = 48000
;new with pulseaudio 11
avoid-resampling = true
resample-method = speex-float-5
So i thought i would share my discovery if some one else is having the same kind of issues with choppy sound, sound peaks and sound that drops out/cuts.

By the way, i have to say that i am very surprised and impressed of this Pi and what it actually can do and handle.
Its an amazing, cheap and good device as a media PC, shame it's not very easy to get CDM working.
But i guess one can't have it all right ;-)

Last edited by Minime_2003; 08-31-2021 at 02:56 PM.
 
Old 08-30-2021, 07:30 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,320

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by Minime_2003 View Post
But i guess one can't have it all right ;-)
but you can get close enough.

I like your sticktoitiveness, keep at it!
 
2 members found this post helpful.
Old 09-19-2021, 07:23 AM   #3
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Looks like i forgot to mention that one also has to add a parameter to "/etc/pulse/default.pa"

Change the line:
Code:
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
to this:
Code:
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect tsched=0
.else
What this workaround does is disabling “timer-based audio scheduling” in PulseAudio.

Tried disabling the changes in "/etc/pulse/daemon.conf"
Code:
;default-sample-format = s24le
;default-sample-rate = 44100
;alternate-sample-rate = 48000
;;new with pulseaudio 11
;avoid-resampling = true
;resample-method = speex-float-5
And rebooted the system, sound was still crackle-free after this.
So it might be that one only has to disable timer-based audio scheduling as described above to resolve this.
However if you still get the crackling sound again at some point, then just try to acrivate the lines in "/etc/pulse/daemon.conf" again.

Best regards:
Minime

Last edited by Minime_2003; 09-19-2021 at 07:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools for investigating server crash (% used CPU (by user) suddenly peaks to 100%) rovrider Linux - Software 5 05-07-2012 02:32 PM
Load peaks... but cannot identify the reason jlinkels Linux - Software 2 01-27-2011 08:00 PM
[SOLVED] Will noise beat eavesdroppers looking for peaks of traffic? Ulysses_ Linux - Security 11 03-15-2010 08:29 AM
[sh4][2.6.17] latency peaks with unix sockets on heavy loads granquet Linux - Kernel 0 09-22-2008 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration