Kodi Community Forum

Full Version: XBMC not finding third HDMI port
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a fresh install of 12.2 (2:12.2~git20130525.1043-vpp-0precis) on Ubuntu 12.04LTS. I'm using ALC898 sound hardware through the HDMI port powered by an Intel HD 4000 GPU.

Video is working fine using HDMI3, but the problem I'm having is with audio over HDMI. In the Audio set up I'm only given options for HDMI #0 and HDMI #1 - but I need an option for HDMI #2. From the log it looks like XBMC isn't enumerating the third port from ALSA.

Playing audio via: aplay -D plughw:0,8 /usr/share/sounds/alsa/Front_Center.wav
works just fine.

Does anyone have suggestions? xbmc.log and aplay -L output are below...

Code:
21:47:19 T:139673386002304   ERROR: CAESinkOSS::EnumerateDevicesEx - Failed to open mixer: /dev/mixer
21:47:19 T:139673386002304  NOTICE: Found 1 Lists of Devices
21:47:19 T:139673386002304  NOTICE: Enumerated ALSA devices:
21:47:19 T:139673386002304  NOTICE:     Device 1
21:47:19 T:139673386002304  NOTICE:         m_deviceName      : @
21:47:19 T:139673386002304  NOTICE:         m_displayName     : Default (HDA Intel PCH ALC898 Analog)
21:47:19 T:139673386002304  NOTICE:         m_displayNameExtra:
21:47:19 T:139673386002304  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
21:47:19 T:139673386002304  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE
21:47:19 T:139673386002304  NOTICE:         m_sampleRates     : 44100,48000,88200,96000,192000
21:47:19 T:139673386002304  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
21:47:19 T:139673386002304  NOTICE:     Device 2
21:47:19 T:139673386002304  NOTICE:         m_deviceName      : @:CARD=PCH,DEV=0
21:47:19 T:139673386002304  NOTICE:         m_displayName     : HDA Intel PCH
21:47:19 T:139673386002304  NOTICE:         m_displayNameExtra: ALC898 Analog
21:47:19 T:139673386002304  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
21:47:19 T:139673386002304  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE
21:47:19 T:139673386002304  NOTICE:         m_sampleRates     : 44100,48000,88200,96000,192000
21:47:19 T:139673386002304  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
21:47:19 T:139673386002304  NOTICE:     Device 3
21:47:19 T:139673386002304  NOTICE:         m_deviceName      : iec958:CARD=PCH,DEV=0
21:47:19 T:139673386002304  NOTICE:         m_displayName     : HDA Intel PCH
21:47:19 T:139673386002304  NOTICE:         m_displayNameExtra: ALC898 Digital S/PDIF
21:47:19 T:139673386002304  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
21:47:19 T:139673386002304  NOTICE:         m_channels        : FL,FR
21:47:19 T:139673386002304  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,192000
21:47:19 T:139673386002304  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
21:47:19 T:139673386002304  NOTICE:     Device 4
21:47:19 T:139673386002304  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=0
21:47:19 T:139673386002304  NOTICE:         m_displayName     : HDA Intel PCH
21:47:19 T:139673386002304  NOTICE:         m_displayNameExtra: HDMI #0
21:47:19 T:139673386002304  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
21:47:19 T:139673386002304  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR
21:47:19 T:139673386002304  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
21:47:19 T:139673386002304  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
21:47:19 T:139673386002304  NOTICE:     Device 5
21:47:19 T:139673386002304  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=1
21:47:19 T:139673386002304  NOTICE:         m_displayName     : HDA Intel PCH
21:47:19 T:139673386002304  NOTICE:         m_displayNameExtra: HDMI #1
21:47:19 T:139673386002304  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
21:47:19 T:139673386002304  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR
21:47:19 T:139673386002304  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
21:47:19 T:139673386002304  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE

root@fe-lroom:/home/xbmc/.xbmc/temp# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
sysdefault:CARD=PCH
    HDA Intel PCH, ALC898 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC898 Digital
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC898 Digital
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC898 Digital
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC898 Digital
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
Try to delay your xbmc start, if you are doing it via a script, it might very well be that the Sound card is not yet fully up and therefore enumeration fails. There are multiple posts in this forum, that handle the problem. Fix is just to wait until udev process has finished, then start xbmc.