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

Shairport-sync on Raspberry Pi 3 report #525

Closed
tvoretz opened this issue May 13, 2017 · 7 comments
Closed

Shairport-sync on Raspberry Pi 3 report #525

tvoretz opened this issue May 13, 2017 · 7 comments

Comments

@tvoretz
Copy link

tvoretz commented May 13, 2017

Hi!
Not an issue, just want to report that my Shairport-sync installation on Raspberry Pi 3 works well. You mentioned on your main page that built-in audio DAC has poor quality. But it seems like RPi team developed a new audio driver (https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445&start=100), so now sound is really not bad from my point of view.

So what i've done:

  1. Upgrade firmware:
    rpi-update
  2. Place this string into /boot/config.txt:
    audio_pwm_mode=2
  3. From command line execute the following to set analog jack as a main audio out:
    amixer cset numid=3 1
  4. In shairport-sync.conf set:
    volume_range_db = 30
  5. And there is an advice to disable wlan adapter power management on RPi (when power management is enabled, it may prevent Shairport-sync to be visible on AirPlay devices list on Apple devices). So you need to edit /etc/network/interfaces like this:
allow-hotplug wlan0
iface wlan0 inet manual
wireless-power off
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

P.S. I don't use soxr.

@mikebrady
Copy link
Owner

Thanks. Do you happen to know if the new audio driver is a full release or is it still in development?

@ChristianOrgs
Copy link

Well the power mgnt off mode works like a charm. I just play around with 'Airfoil' and three Pi's. I own 5 Pi's and one is a 3. This one is my GameStationPi and the sound is way better.

@mikebrady
Copy link
Owner

mikebrady commented May 13, 2017

Wow – many thanks. You are absolutely right – the sound is very much improved by audio_pwm_mode=2. I'm trying it on an original Raspberry Pi Model B over WiFi and the difference is very noticeable.

I didn't need to do the amixer cset numid=3 1. As a temporary measure, I've updated the README.md to point to this issue.

@tvoretz
Copy link
Author

tvoretz commented May 13, 2017

Do you happen to know if the new audio driver is a full release or is it still in development?

I read whole the thread on Pi's forum and found that audio_pwm_mode=2 is still not used by default. So I think it's in development, but works!

By the way, thanks for Shairport-sync. I'm using it now every day 👍

@mikebrady
Copy link
Owner

Super, thanks.

@sebastianwr
Copy link

Thanks @tvoretz for reporting! I performed all the described steps, except for an rpi-update. This fixed the stuttering audio for me. Thank you @mikebrady for this excellent project!

@mikebrady
Copy link
Owner

Thanks for this contribution. Closing the issue. Please open a new one if necessary.

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

No branches or pull requests

4 participants