You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add yourself to the audio group; log out and back in again.
Checks:
ben@raspberrypi ~ $ lsusb -t1-1.5:1.2: No such file or directory/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 480M |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M |__ Port 5: Dev 4, If 0, Class=audio, Driver=snd-usb-audio, 480M |__ Port 5: Dev 4, If 1, Class=audio, Driver=snd-usb-audio, 480M |__ Port 5: Dev 4, If 2, Class=app., Driver=, 480Mben@raspberrypi ~ $ aplay -l**** List of PLAYBACK Hardware Devices ****card 0: DAC [Meridian Explorer USB DAC], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0ben@raspberrypi ~ $ aplay /usr/share/sounds/alsa/Front_Center.wavPlaying WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Monoben@raspberrypi ~ $
Volume controls:
amixer cget numid=2 # show acceptable values (0-60 for Meridian Explorer)
amixer cset numid=2 -- 25 # set volume to 25
Performance:
The most important fix:
Add the parameter smsc95xx.turbo_mode=N to /boot/cmdline.txt - this prevents ethernet bursts messing with the USB bandwidth. For me, this prevents clicks and pops when streaming high-res audio.
Optionally:
Use raspi-config to set the overclocking to 'High' (don't go over core freq of 250 GHz), then permanantly set the scaling governer to 'performance':
Shairport is an easy way to turn the Pi into an (audio-only) AirPlay device. Following the README gets you as far as testing that it works. To set it up as a service:
sudo make install
sudo cp scripts/debian/init.d/shairport /etc/init.d
sudo cp scripts/debian/default/shairport /etc/default
sudo chmod +x /etc/init.d/shairport
sudo useradd -g audio shairport
sudo update-rc.d shairport defaults # you may not want this unless you want to dedicate the audio device to airplay duty# Fire-up the AirPlay
sudo service shairport start
Set these values in /etc/default/shairport to use the hardware (headphone) volume control on a Meridian Explorer:
Note to self, try tweaking fstab a la
from this article