Skip to content

Instantly share code, notes, and snippets.

@Pindar
Last active April 1, 2019 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pindar/536377dfd1c4387d4ea0bc5c9aff0634 to your computer and use it in GitHub Desktop.
Save Pindar/536377dfd1c4387d4ea0bc5c9aff0634 to your computer and use it in GitHub Desktop.
[Unit]
Description=Playing zeros
# https://raspberrypi.stackexchange.com/questions/74456/i2s-dac-device-support-kernel-drivers-and-noise-pop-crackle-on-playbac
After=alsa-restore.service
Requires=alsa-restore.service
[Service]
TimeoutSec=0
User=pi
ExecStart=/usr/bin/aplay -D default -c 2 -f S16 -r 48000 /dev/zero
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment