Home / Linux     frequal.com  RSS Feed

Setting up HDMI Audio on a Raspberry Pi

After reading several posts on the Raspberry Pi forums, these are the steps it took for me to get audio working on my Raspberry Pi running the Raspbian Wheezy image:

Enable HDMI Audio in config.txt

In /boot/config.txt, enable this line by removing the # at the front:

Load the audio driver at login time

In ~/.login, add this line:
sudo modprobe snd-bcm2835

Force ALSA to use only hardware-supported modes

In ~/.asoundrc, add these lines:
pcm.!default {
        type hw
        card 0

ctl.!default {
        type hw
        card 0
In both of the last 2 cases, create the file if it doesn't exist.
Last modified on 25 Jan 2014 by AO

Copyright © 2020 Andrew Oliver