2014-08-11, 23:54
As far as I understand, Kodi does not use information from HDMI audio sink in order to setup audio over HDMI.
I have a setup with pi -> HDMI -> Receiver -> HDMI -> TV.
My kids normally does not turn on the receiver when watching movies. The receiver is then in standby mode and the HDMI signal is just passed on to the TV, which is only capable of stereo input.
When receiver is in standby, Command "tvservice -a" returns:
PCM supported: Max channels: 2, Max samplerate: 48kHz, Max samplesize 24 bits.
When I watch a movie I normally have the receiver on, and of course I want 5.1-sound.
When receiver is on, Command "tvservice -a" returns:
PCM supported: Max channels: 8, Max samplerate: 192kHz, Max samplesize 24 bits.
AC3 supported: Max channels: 6, Max samplerate: 48kHz, Max rate 640 kb/s.
DTS supported: Max channels: 7, Max samplerate: 96kHz, Max rate 1536 kb/s.
DTS_HD supported: Max channels: 8, Max samplerate: 192kHz, Max rate 8 kb/s.
Currently, when I go to the audio setting I can choose between two modes:
1. I can set output to be 2.0 sound (with no passthrough). When receiver is in standby, the TV accepts the audio and I'll get sound from TV. However, when receiver in on, I'll only get 2.0 sound from my receiver, which is what I'll expect but not what I want.
2. I can set output to be 5.1 sound (either with multichannel PCM or with passthrough). When receiver is on, I'll get proper 5.1 sound. However, when receiver is in standby, Kodi will still send out 5.1 sound to TV, which is not able to decode, and I have no sound at all.
My proposal is to add support for "downmix audio to HDMI capabilities", meaning if audio is set to be 5.1 (multichannel PCM or passthrough), but HDMI sink is only capable of 2.0, Kodi sends out only 2.0 sound.
I have a setup with pi -> HDMI -> Receiver -> HDMI -> TV.
My kids normally does not turn on the receiver when watching movies. The receiver is then in standby mode and the HDMI signal is just passed on to the TV, which is only capable of stereo input.
When receiver is in standby, Command "tvservice -a" returns:
PCM supported: Max channels: 2, Max samplerate: 48kHz, Max samplesize 24 bits.
When I watch a movie I normally have the receiver on, and of course I want 5.1-sound.
When receiver is on, Command "tvservice -a" returns:
PCM supported: Max channels: 8, Max samplerate: 192kHz, Max samplesize 24 bits.
AC3 supported: Max channels: 6, Max samplerate: 48kHz, Max rate 640 kb/s.
DTS supported: Max channels: 7, Max samplerate: 96kHz, Max rate 1536 kb/s.
DTS_HD supported: Max channels: 8, Max samplerate: 192kHz, Max rate 8 kb/s.
Currently, when I go to the audio setting I can choose between two modes:
1. I can set output to be 2.0 sound (with no passthrough). When receiver is in standby, the TV accepts the audio and I'll get sound from TV. However, when receiver in on, I'll only get 2.0 sound from my receiver, which is what I'll expect but not what I want.
2. I can set output to be 5.1 sound (either with multichannel PCM or with passthrough). When receiver is on, I'll get proper 5.1 sound. However, when receiver is in standby, Kodi will still send out 5.1 sound to TV, which is not able to decode, and I have no sound at all.
My proposal is to add support for "downmix audio to HDMI capabilities", meaning if audio is set to be 5.1 (multichannel PCM or passthrough), but HDMI sink is only capable of 2.0, Kodi sends out only 2.0 sound.