Hi,
just played a lot around and found that the following changes in pulseaudio configuration does help to support passthrough, in
/etc/pulse/default.pa:
Code: Select all
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect tsched=0
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
where I have added the "tsched=0"
in /etc/pulse/daemon.conf I'm using
Code: Select all
enable-shm = yes
shm-size-bytes = 0
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
enable-remixing = no
enable-lfe-remixing = no
resample-method = src-sinc-best-quality
together with an /etc/asound.conf:
Code: Select all
defaults.pcm.dmix.rate 96000
pcm.hdmi0 {
type hw
card=0
device=3
}
pcm.hdmi_direct {
type route
slave {
pcm hdmi0
}
slave.channels 8
ttable.0.0 1
ttable.4.4 1
ttable.1.1 1
ttable.6.2 1
ttable.2.6 1
ttable.3.7 1
ttable.7.3 1
ttable.5.5 1
}
with this I can play WAV/DTS even with pulseaudio as well as MultiChannel PCM.
Last but not least the new /etc/pulse/extra-hdmi.conf
Code: Select all
[General]
auto-profiles = yes
[Mapping hdmi-stereo]
#device-strings = hdmi:0 dmix:0,3 plughw:0,3 hw:0
#device-strings = hw:0,3 hdmi:0
device-strings = hdmi:0,0
description = Digital Stereo (HDMI)
paths-output = hdmi-output-0
channel-map = front-left,front-right
priority = 2
direction = output
[Mapping hdmi-surround40]
description = Digital Quadrophonic (HDMI)
device-strings = hdmi:0,0
paths-output = hdmi-output-0
channel-map = front-left,front-right,rear-left,rear-right
priority = 1
direction = output
[Mapping hdmi-surround51]
description = Digital Surround 5.1 (HDMI)
device-strings = hdmi:0,0
paths-output = hdmi-output-0
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 3
direction = output
[Mapping hdmi-surround71]
description = Digital Surround 7.1 (HDMI)
device-strings = hdmi:0,0
paths-output = hdmi-output-0
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
priority = 4
direction = output
which enables pulseaudio due the /etc/udev/rules.d/95-local-pulseaudio.rules
Code: Select all
# Local udev rule to get HDMI digital surround passthrough
ATTRS{vendor}=="0x8086", ATTRS{device}=="0x0f04", ENV{PULSE_PROFILE_SET}="/etc/pulse/extra-hdmi.conf"
to create the passthrough capable hdmi-stereo.
Nontheless, kodi 16.1 does not support DTS in WAV anymore:
Code: Select all
14:37:12 T:139926528387072 DEBUG: Loading settings for /share/Multimedia/Music/Soundtrack/Erich Kunzel (Cincinnati Pops Orchestra)/Big Picture [DTS]/Soundtrack_Erich Kunzel (Cincinnati Pops Orchestra)_Big Picture [DTS]_01_Mission Impossible.wav
14:37:12 T:139926528387072 DEBUG: Open - probing detected format [dts]
14:37:12 T:139926528387072 DEBUG: Open - avformat_find_stream_info starting
14:37:12 T:139926528387072 WARNING: could not find codec parameters for /share/Multimedia/Music/Soundtrack/Erich Kunzel (Cincinnati Pops Orchestra)/Big Picture [DTS]/Soundtrack_Erich Kunzel (Cincinnati Pops Orchestra)_Big Picture [DTS]_01_Mission Impossible.wav
14:37:12 T:139926528387072 ERROR: Init: Error creating demuxer