To use raspotify properly with HifiBerry on raspberry pi 2 (kernel 4.19.29-v7)
sudo apt-get install build-essential libasound2-dev
curl https://sh.rustup.rs -sSf | sh
cargo build --release --features alsa-backend
- Point /etc/systemd/system/raspotify.service to compiled binary from (1), e.g.
/home/pi/librespot/target/release/librespot