HDMI sound through PulseAudio

In config.txt add:
HDMI cable
hdmi_drive=2

Then open: /etc/alsa/pulse-default.conf
And add:
pcm.!default {
       type hw
       card 0
}

ctl.!default {
      type hw
      card 0
}

And in: /etc/pulse/default.pa
Add this:
### Load analog device
load-module module-alsa-sink device=hw:0,0
load-module module-combine-sink sink_name=combined
set-default-sink combined

In: /usr/lib/modules-load.d/rpi.conf
Add: snd_bcm2835
Then reboot your Raspberry Pi2

And then: “aplay /usr/share/sounds/alsa/Front_Center.wav in the Terminal

Advertisements

2 thoughts on “HDMI sound through PulseAudio

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s