Solved Sound via HDMI on Haswell CPU
#1
I am having trouble getting sound over HDMI,
HDMI is selectable as the output but not as the output device or the pass through device further down.

http://wiki.xbmc.org/index.php?title=Int...F_.26_HDMI

Code:
root@xbmc:~# aplay -L | grep -i iec958
iec958:CARD=PCH,DEV=0
    IEC958 (S/PDIF) Digital Audio Output
Code:
root@xbmc:/etc# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=MID,DEV=0
    HDA Intel MID, HDMI 0
    HDMI Audio Output
dmix:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct sample mixing device
dsnoop:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct sample snooping device
hw:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=MID,DEV=3
    HDA Intel MID, HDMI 0
    Hardware device with all software conversions
default:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1150 Digital
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1150 Digital
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1150 Digital
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC1150 Digital
    Hardware device with all software conversions

Code:
Module                  Size  Used by
rfcomm                 42641  0
bluetooth             228667  3 rfcomm
snd_hda_codec_realtek    78399  1
snd_hda_codec_hdmi     36913  1
kvm_intel             132891  0
kvm                   443165  1 kvm_intel
ghash_clmulni_intel    13259  0
aesni_intel            55399  0
aes_x86_64             17255  1 aesni_intel
xts                    12885  1 aesni_intel
lrw                    13257  1 aesni_intel
gf128mul               14951  2 lrw,xts
ablk_helper            13597  1 aesni_intel
cryptd                 20373  3 ghash_clmulni_intel,aesni_intel,ablk_helper
joydev                 17377  0
lirc_xbox              17809  0
lirc_dev               19166  4 lirc_xbox
psmouse                95870  0
microcode              22881  0
serio_raw              13215  0
snd_hda_intel          39619  0
snd_hda_codec         136453  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
w83627ehf              43051  0
hwmon_vid              12783  1 w83627ehf
snd_pcm                97451  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
coretemp               13355  0
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_seq_midi           13324  0
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30180  1 snd_seq_midi
snd_seq                61554  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              29425  2 snd_pcm,snd_seq
lib80211_crypt_tkip    17379  0
i915                  600396  4
mac_hid                13205  0
snd                    68876  10 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device
video                  19390  1 i915
drm_kms_helper         49394  1 i915
drm                   286028  5 i915,drm_kms_helper
wl                   4117250  0
lpc_ich                17061  0
lib80211               14352  2 wl,lib80211_crypt_tkip
mei                    41158  0
cfg80211              510937  1 wl
soundcore              12680  1 snd
i2c_algo_bit           13413  1 i915
lp                     17759  0
parport                46345  1 lp
hid_logitech_dj        18604  0
usbhid                 47074  1 hid_logitech_dj
hid                   101002  2 usbhid,hid_logitech_dj
raid10                 48127  0
raid456                65844  1
async_raid6_recov      12795  1 raid456
async_memcpy           12529  1 raid456
async_pq               12912  1 raid456
async_xor              12777  2 async_pq,raid456
xor                    17116  1 async_xor
async_tx               13291  5 async_pq,raid456,async_xor,async_memcpy,async_raid6_recov
e1000e                198832  0
ahci                   25731  4
libahci                31364  1 ahci
raid6_pq               97812  2 async_pq,async_raid6_recov
raid1                  35316  0
raid0                  17159  0
multipath              13145  0
linear                 12894  0

3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Reply
#2
Solved!

Fix is in kernel
Linux 3.10.5-031005-generic #201308040618 SMP Sun Aug 4 10:19:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Reply
#3
Hehe - you are a lucky man. I rewrote that wiki page yesterday night :-)
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
I can confirm that HDMI Audio on Haswell doesn't on any kernels older than 3.10.

None of the workarounds in the linked wiki page had any effect with Haswell, an upgrade to a newer kernel is the only way to make HDMI Audio work, at least for me.

Another interesting note is that, when I turned HDMI Control OFF, as suggested by that page, the HDMI output is not recognized by XBMC, but when it's turned ON it works. Also, if the AVR gets turned off and back on without rebooting the HTPC, it stops working.

Other issues:
No/distorted surround sound through PulseAudio (Ubuntu sound settings), only stereo mode works. Pass-through still works though.
Kernels >= 3.9 gets defaulted to RGB Limited colorspace (16-235). Fix with sudo xrandr --output HDMI2 --auto --set "Broadcast RGB" "Full". Has to be done after every reboot.
Loosing HDCP handshake after AVR power cycle or display mode change (sometimes).

As of right now HDMI support for Haswell i Linux seems to be very buggy, to say the least.
Reply
#5
Just wanted to pop in and thank you guys. Been trying to get HDMI audio working for 2 days on my new Intel NUC.. this thread fixed my issue. Updating kernel to 3.10.x fixed it for me. Currently enjoying some Bob Dylan on my TV Smile

Adding some keywords for stray googlers: d54250wyk d54250wyb hdmi audio haswell hd5000 intel NUC
Reply

Logout Mark Read Team Forum Stats Members Help
Sound via HDMI on Haswell CPU0