[pulseaudio-discuss] [PATCH] Add HDMI Surround 7.1 profiles

Alexander E. Patrakov patrakov at gmail.com
Sun Jul 13 02:07:27 PDT 2014


Signed-off-by: Alexander E. Patrakov <patrakov at gmail.com>
---
Untested.

P.S. should I also upstream profiles that allow sending software-DTS-encoded
stream to HDMI? The git version of dcaenc supports this, and that's how
I test it. Here is what my README file tells the users about this
(slightly rephrased):

"""
The plugin should normally not be used with HDMI connections, because the
HDMI standard defines enough bandwidth so that the uncompressed 5.1 PCM
stream fits even at 192 kHz sample rate. So, attempting to encode that into
DTS in the majority of cases is only a waste of CPU time and sound quality.
There are, however, at least two valid use cases.

1. Radeon HD 6xxx video cards with open-source driver on old kernels do not
   support more than two channels of PCM audio over HDMI. Encoding the
   output to DTS provides a useful workaround to the lack of multichannel
   capability in the driver.

2. Some soundbars and receivers are supposed to get the audio signal from
   the TV via the optical cable, while the TV itself is connected to the
   computer using HDMI.
"""

.../alsa/mixer/profile-sets/extra-hdmi.conf        | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf b/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
index b1af2fa..6c32182 100644
--- a/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
+++ b/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
@@ -122,6 +122,14 @@ channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
 priority = 3
 direction = output
 
+[Mapping hdmi-surround-71]
+description = Digital Surround 7.1 (HDMI)
+device-strings = hdmi:%f
+paths-output = hdmi-output-0
+channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
+priority = 3
+direction = output
+
 [Mapping hdmi-stereo-extra1]
 description = Digital Stereo (HDMI 2)
 device-strings = hdmi:%f,1
@@ -138,6 +146,14 @@ channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
 priority = 1
 direction = output
 
+[Mapping hdmi-surround-71-extra1]
+description = Digital Surround 7.1 (HDMI 2)
+device-strings = hdmi:%f,1
+paths-output = hdmi-output-1
+channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
+priority = 1
+direction = output
+
 [Mapping hdmi-stereo-extra2]
 description = Digital Stereo (HDMI 3)
 device-strings = hdmi:%f,2
@@ -154,6 +170,14 @@ channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
 priority = 1
 direction = output
 
+[Mapping hdmi-surround-71-extra2]
+description = Digital Surround 7.1 (HDMI 3)
+device-strings = hdmi:%f,2
+paths-output = hdmi-output-2
+channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
+priority = 1
+direction = output
+
 [Mapping hdmi-stereo-extra3]
 description = Digital Stereo (HDMI 4)
 device-strings = hdmi:%f,3
@@ -169,3 +193,11 @@ paths-output = hdmi-output-3
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
 priority = 1
 direction = output
+
+[Mapping hdmi-surround-71-extra3]
+description = Digital Surround 7.1 (HDMI 4)
+device-strings = hdmi:%f,3
+paths-output = hdmi-output-3
+channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
+priority = 1
+direction = output
-- 
2.0.0



More information about the pulseaudio-discuss mailing list