Kodi Community Forum

Full Version: HDMI audio sandy bridge not working.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

I've been banging my head for days now without any success. I'm unable to get hdmi audio working between my htpc (i3-2120t + intel DH61AG mobo) to work with my pioneer sc-65 receiver. I've tried everything in the wiki here: http://wiki.xbmc.org/index.php?title=Int...F_.26_HDMI

I've been able to get sound working with the onboard spdif and analog, but not hdmi. HDMI audio works fine in windows, and it worked briefly in a ubuntu live cd. It also works between my htpc and my TV in arch, but not the receiver. I'm running linux kernel 3.7.10-1-ARCH (arch linux x64). Any help would be great!
screenshot of your xbmc audio settings and a debug log of trying to play something please.
nickr,

Thanks for the reply, but this isn't an xbmc specific problem, i'm just posting here hoping someone else has had similar problems. I receive no errors, but also no sound output at all from:

Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
or
speaker-test -D plughw:0,3 -c 2

I've checked alsamixer, none of the channels are muted. I've tried power cycling the a/v receiver, unplugging/plugging in hdmi cables while forcing audio playback, restarting the machine, etc. I found another thread with someone else having the exact same problems on similar hardware here without a resolution either: http://www.avsforum.com/t/1461238/intel-...hdmi-audio
Sorry if you think that what I asked for is irrelevant. No doubt someone will be able to help with so little information.
Show the output of aplay -l and aplay -L.
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output

XBMC debug log output:
Code:
22:01:26 T:140463227119360    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
22:01:26 T:140463227119360    INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02"
22:01:26 T:140463227119360   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 512, periods 16, bufferSize 8192
22:01:26 T:140463227119360   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 512, periods 16, bufferSize 8192
22:01:26 T:140463227119360   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 171 ms
22:01:26 T:140463227119360   DEBUG: CSoftAE::InternalOpenSink - ALSA Initialized:
22:01:26 T:140463227119360   DEBUG:   Output Device : HDA Intel PCH
22:01:26 T:140463227119360   DEBUG:   Sample Rate   : 48000
22:01:26 T:140463227119360   DEBUG:   Sample Format : AE_FMT_S16NE
22:01:26 T:140463227119360   DEBUG:   Channel Count : 2
22:01:26 T:140463227119360   DEBUG:   Channel Layout: FL,FR
22:01:26 T:140463227119360   DEBUG:   Frames        : 512
22:01:26 T:140463227119360   DEBUG:   Frame Samples : 1024
22:01:26 T:140463227119360   DEBUG:   Frame Size    : 4
22:01:26 T:140463227119360   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 2048
22:01:26 T:140461662529280   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
22:01:26 T:140462534944512   DEBUG: CDVDPlayer::HandleMessages - player started 2
22:01:26 T:140462534944512   DEBUG: CDVDPlayer::HandleMessages - player started 1
22:01:26 T:140462534944512   DEBUG: CDVDPlayer::SetCaching - caching state 0
22:01:26 T:140463227119360   DEBUG: CSoftAE::Run - Sink restart flagged
22:01:26 T:140463227119360    INFO: CSoftAE::InternalOpenSink - RAW passthrough enabled
22:01:26 T:140463227119360    INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_AC3, FL,FR, 48000hz
22:01:26 T:140463227119360   DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 2048
22:01:26 T:140461662529280   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
22:01:26 T:140461662529280   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:-180464.036667, should be:-180462.626667, error:1.410000
22:01:26 T:140463545837504   DEBUG: CLinuxRendererGL::UploadVAAPITexture - creating vaapi surface for texture 0
22:01:26 T:140463545837504   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
22:01:30 T:140461670921984   DEBUG: CPullupCorrection: detected pattern of length 1: 33366.67, frameduration: 33366.666667

Evereything works perfectly over HDMI between this system and my TV, it just hates my receiver, and it seems to be something within my Arch install that hates it. Ubuntu and windows work perfectly fine with the receiver out of the box, i'm just not willing to switch to either of them.
(2013-03-10, 02:34)touser Wrote: [ -> ]Hello everyone,

I've been able to get sound working with the onboard spdif and analog, but not hdmi.

How did you get sound working with analog ?

I have a sandy bridge HTPC, I am able to get sound working over HDMI and SPDIF but not analog.

Thanks.