Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RaspberryPi] audio clicks #923

Closed
Dmole opened this issue Jul 8, 2012 · 14 comments
Closed

[RaspberryPi] audio clicks #923

Dmole opened this issue Jul 8, 2012 · 14 comments
Milestone

Comments

@Dmole
Copy link

Dmole commented Jul 8, 2012

Raspberrypi
The audio clicks pops on AV start stop
The sound is perfect for blowing a speaker if the volume is cranked

@olivier8509
Copy link

I would also add that sound by HDMI is also clicking sometimes. It is not smooth.

@mdjong
Copy link

mdjong commented Jul 11, 2012

I'm also hearing clicks while playing sound by HDMI. The clicks are on the same time when I rewind and play again.

@Kampie
Copy link

Kampie commented Jul 12, 2012

Using: 12.0-ALPHA3 Git:39c680e
I am also hearing click/pops when playing audio only (mp3/flac). A bit like playing a scratched record.
Also i think ReplayGain is not working or somehow RPi hdmi sound is way louder then from my ION hdmi.

@Joshfindit
Copy link

When the Raspberry 'clicks', to me this sounds like resetting the hardware before sending audio data to it.
Sound due to voltage spike during this reset.

Since I have no way to measure and confirm, this is only an impression based on years of previous experience with audio gear.

@Dmole
Copy link
Author

Dmole commented Jul 22, 2012

yah that's exactly what is sounds like, only most systems I have used do that only on boot or shutdown. So why is the rpi doing it before and after every video, and seemingly at random during the navigation.
need to find that line of code and comment it out.

@Dmole
Copy link
Author

Dmole commented Jul 22, 2012

grep -R -i reset . | grep -i rpi

found this:

./packages/linux/patches/linux-3.2.23-601-RPi_support-f23da7f.patch

which among other things patches this:

linux-3.2.23/sound/arm/bcm2835.c

which contains this:

+/* HACKY global pointers needed for successive probes to work : ssp

  • * But compared against the changes we will have to do in VC audio_ipc code
  • * to export 8 audio_ipc devices as a single IPC device and then monitor all
  • * four devices in a thread, this gets things done quickly and should be easier
  • * to debug if we run into issues
  • */

so maybe that's a place to start

@2226cc
Copy link

2226cc commented Jul 23, 2012

Dmole, this does seem like a classic DC problem on the audio output. I was thinking of popping some DC blocking cap on the analogue audio output. If the issue stops then to me that says it is definitely a DC issue most likely because audio hardware/amp is being toggled during pause/resume. Don't know why that would be getting done at the driver level.

@Joshfindit
Copy link

As a semi-wild guess, possibly it's opening the driver before checking if it should be playing navigation sounds, resulting in the pop.

I'm very curious to see the the differences in this issue and the downsampling issue when Raspbmc RC4 release comes out: there may be a good amount of work that can be shared :)
Edit: Just ran across this: http://forum.stmlabs.com/showthread.php?tid=202 "Fixed in rc4"

@2226cc
Copy link

2226cc commented Jul 24, 2012

Would be nice if USB audio devices were supported.

@Dmole
Copy link
Author

Dmole commented Jul 26, 2012

I like the Raspbmc builds more because it's not as stripped down (still has apt) and it does not use 100% cpu all the time, but at the same time it's a bit backwards using private svn hosting instead of github, Raspbmc claims that this bug is fixed but there is no build to prove it yet... neither project has had a nightly build in 3 weeks, so good things might come with the next one.

@sraue
Copy link
Contributor

sraue commented Sep 13, 2012

@Dmole if OpenELEC is to "stripped down" then no one stops you from using other distros. thats no issue, OpenELEC is a embedded OS and not a desktop distro!

@sraue
Copy link
Contributor

sraue commented Sep 13, 2012

If this issue is still present with our latest builds please report XBMC related bugs to http://trac.xbmc.org because RPi support is now merged to XBMC officially.

@sraue sraue closed this as completed Sep 13, 2012
@Dmole
Copy link
Author

Dmole commented Feb 11, 2013

I would rather not use trac. This is still an issue. Maybe I'll add it to the rpi kernel~

@tohojo
Copy link

tohojo commented Mar 17, 2013

There's a reference to an updated firmware version at the issue linked in the previous comment, which seems to fix the clicking sound issue. Any chance of having that update folded into openelec? Or is updating the firmware something that needs to be done outside of openelec?

Edit: Seems the clicking issue is gone in the RC5 build. Yay! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants