Created
February 22, 2024 23:37
-
-
Save karawitan/e79cf006dd31e30d2c0602a3d5da37b7 to your computer and use it in GitHub Desktop.
using raspberry pi with an onboard dac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpv --no-video --audio-device=/dev/dsp | |
pacmd list-sinks | grep -B 1 'name: <tunnel' | |
pacmd set-default-sink 2 | |
alsa-info output | |
http://alsa-project.org/db/?f=ec63c66f3a1fb8683407c92d5f9ecf20f251c4d8 | |
cat /proc/asound/cards | |
cat > /etc/asound.conf << EOT | |
defaults.pcm.card 1 | |
defaults.ctl.card 1 | |
EOT | |
APLAY | |
**** List of PLAYBACK Hardware Devices **** | |
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0] | |
Subdevices: 1/1 | |
Subdevice #0: subdevice #0 | |
cat >/etc/modules <<EOF | |
snd_soc_bcm2708_i2s | |
bcm2708_dmaengine | |
snd_soc_pcm5102a | |
snd_soc_hifiberry_dac | |
EOF | |
sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment