11

I'm having problems getting audio over HDMI working correctly (running ArchARM). I have in my /boot/config.txt:

hdmi_drive=2

I compiled hello_audio.bin and ran it with 0 and 1 as args, both work (through the TV and the jack)

Sound over the analogue jack works fine with aplay when I switch with:

amixer cset numid=3 1

But I can't get aplay to play wav files over HDMI (I switched to hdmi with amixer cset numid=3 2)


Just to update: I can play mp3 files in mpg123/mplayer over HDMI but still no luck with wavs.

Adam Lear
  • 101
  • 4
Munkeh
  • 681
  • 4
  • 9

2 Answers2

3

this worked for me:

omxplayer -o hdmi audiofile.wav

it seems that aplay doesn't really do a good job sending audio through hdmi in other formats either, it turns everything to mono, 8bit, and 8000hz or something. Anyway, that worked for me!

Athan Clark
  • 150
  • 7
2

I'm pretty sure you have to specify the device with aplay like this:

aplay -D plug:hdmi music.wav
Jivings
  • 22,656
  • 11
  • 94
  • 140