summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander E. Patrakov <patrakov@gmail.com>2012-02-12 17:28:55 +0600
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-02-21 08:52:13 +0530
commit0b421f0d93f691ccd95d3999a1a9045caee76671 (patch)
treef3c6892fff7aa6cc2a42c58754bb3859821da8c7 /src
parent014511310a074a95d10d76f0ea9107ee0b80bed2 (diff)
alsa: add DTS profile
Hi. Could you please apply the attached trivial patch so that I could drop the corresponding instructions from dcaenc's README file in the future? It adds a profile for on-the-fly DTS encoding, similar to the existing AC3 profile. -- Alexander E. Patrakov >From 22310a1c28385acc7ce883e020b9eb2e5b0813b7 Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" <patrakov@gmail.com> Date: Sun, 12 Feb 2012 17:19:48 +0600 Subject: [PATCH] alsa: add DTS profile This requires dcaenc from http://aepatrakov.narod.ru/dcaenc/
Diffstat (limited to 'src')
-rw-r--r--src/modules/alsa/alsa-mixer.c1
-rw-r--r--src/modules/alsa/mixer/profile-sets/default.conf7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index 7e6ef542..0e535503 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -3783,6 +3783,7 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
{ "iec958-passthrough", N_("Digital Passthrough (IEC958)") },
{ "iec958-ac3-surround-40", N_("Digital Surround 4.0 (IEC958/AC3)") },
{ "iec958-ac3-surround-51", N_("Digital Surround 5.1 (IEC958/AC3)") },
+ { "iec958-dts-surround-51", N_("Digital Surround 5.1 (IEC958/DTS)") },
{ "hdmi-stereo", N_("Digital Stereo (HDMI)") },
{ "hdmi-surround-51", N_("Digital Surround 5.1 (HDMI)") }
};
diff --git a/src/modules/alsa/mixer/profile-sets/default.conf b/src/modules/alsa/mixer/profile-sets/default.conf
index fe51bc2b..d1d4ba3c 100644
--- a/src/modules/alsa/mixer/profile-sets/default.conf
+++ b/src/modules/alsa/mixer/profile-sets/default.conf
@@ -169,6 +169,13 @@ paths-output = iec958-stereo-output
priority = 3
direction = output
+[Mapping iec958-dts-surround-51]
+device-strings = dca:%f
+channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
+paths-output = iec958-stereo-output
+priority = 3
+direction = output
+
[Mapping hdmi-stereo]
device-strings = hdmi:%f
channel-map = left,right