Kodi Community Forum

Full Version: HDMI audio misidentified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm running ubuntu on an Apple TV (ATV1). Kernel details are:

Linux atv 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:37:48 UTC 2015 i686 i686 i686 GNU/Linux

I'm also running alsa, but not pulseaudio. The alsa devices are:

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

I'm using the ATV1 HDMI output connected to a Sony KDL40EX700 HDTV.

Alsa speaker-test and aplay work correctly, producing sound as expected from the TV speakers.

I have been running XBMC successfully on this setup for several years, progressively upgrading the operating system and the XBMC version. I most recently ran the Ubuntu Gotham release.

However, I have now installed Kodi, and audio output is no longer functioning. I have tried Kodi from the stable and unstable ppa repositories, with the same result in each case.

I have enabled Kodi audio debugging, and rebooted the system with the log shown in

http://paste.ubuntu.com/10298454/

I note the following log entries, which seem significant to me:

0:11:48 T:2932374336 NOTICE: Thread ActiveAE start, auto delete: false
10:11:48 T:2922380096 NOTICE: Thread AESink start, auto delete: false
10:11:48 T:2922380096 INFO: CActiveAESink::OpenSink - initialize sink
10:11:48 T:2922380096 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=Intel,DEV=0
10:11:48 T:2922380096 INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=Intel,DEV=0"
10:11:48 T:2922380096 INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=Intel,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
10:11:48 T:2922380096 INFO: CAESinkALSA - ALSA: pcm_hw.c:1069Sadsnd_pcm_query_chmaps_from_hw) Cannot read Channel Map TLV
: Cannot allocate memory
10:11:48 T:2922380096 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
10:11:48 T:2922380096 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
10:11:48 T:2922380096 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2048, bufferSize 8192
10:11:48 T:2922380096 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2048, bufferSize 8192
10:11:48 T:2922380096 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 186 ms
10:11:48 T:2922380096 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
10:11:48 T:2922380096 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
10:11:48 T:2922380096 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: UNKNOWN1,UNKNOWN1 (ALSA: UNKNOWN UNKNOWN)
10:11:48 T:2922380096 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
10:11:48 T:2922380096 DEBUG: Output Device : HDA Intel
10:11:48 T:2922380096 DEBUG: Sample Rate : 44100
10:11:48 T:2922380096 DEBUG: Sample Format : AE_FMT_S32NE
10:11:48 T:2922380096 DEBUG: Channel Count : 2
10:11:48 T:2922380096 DEBUG: Channel Layout: UNKNOWN1,UNKNOWN1
10:11:48 T:2922380096 DEBUG: Frames : 2048
10:11:48 T:2922380096 DEBUG: Frame Samples : 4096
10:11:48 T:2922380096 DEBUG: Frame Size : 8

It looks like Kodi is trying to open the alsa HDMI sink using device 0, when it should be device 3.

I would appreciate any suggestions as to how to fix this problem.

Thanks,
Dan