Blame SOURCES/0035-alsa-mixer-Prioritize-hdmi-mappings-over-iec958-mapp.patch

e44045
From 184c28795bb98ad14bdfcef01a475d5ba11e40d5 Mon Sep 17 00:00:00 2001
e44045
From: Kristian Klausen <klausenbusk@hotmail.com>
e44045
Date: Fri, 22 Sep 2017 17:54:14 +0000
e44045
Subject: [PATCH 35/48] alsa-mixer: Prioritize hdmi-* mappings over iec958-*
e44045
 mappings
e44045
e44045
Pulseaudio tries to pick the best profile (on startup or
e44045
hotplugged), the best profile is the profile with the highest
e44045
priority which isn't unavailable.
e44045
Due to the facts that iec958 ports available status always (?)
e44045
is unknown, and that it is generally more likely that a user use
e44045
hdmi than iec958, lets prioritze hdmi over iec958.
e44045
e44045
This patch shift the analog-* mappings +5 and hdmi-* mappings +5.
e44045
---
e44045
 src/modules/alsa/mixer/profile-sets/default.conf | 80 ++++++++++++------------
e44045
 1 file changed, 40 insertions(+), 40 deletions(-)
e44045
e44045
diff --git a/src/modules/alsa/mixer/profile-sets/default.conf b/src/modules/alsa/mixer/profile-sets/default.conf
e44045
index c360e772..f5093830 100644
e44045
--- a/src/modules/alsa/mixer/profile-sets/default.conf
e44045
+++ b/src/modules/alsa/mixer/profile-sets/default.conf
e44045
@@ -106,14 +106,14 @@ device-strings = hw:%f
e44045
 channel-map = mono
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
e44045
 paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headset-mic
e44045
-priority = 2
e44045
+priority = 7
e44045
 
e44045
 [Mapping analog-stereo]
e44045
 device-strings = front:%f
e44045
 channel-map = left,right
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2
e44045
 paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
e44045
-priority = 10
e44045
+priority = 15
e44045
 
e44045
 # If everything else fails, try to use hw:0 as a stereo device.
e44045
 [Mapping stereo-fallback]
e44045
@@ -128,35 +128,35 @@ priority = 1
e44045
 device-strings = surround21:%f
e44045
 channel-map = front-left,front-right,lfe
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 8
e44045
+priority = 13
e44045
 direction = output
e44045
 
e44045
 [Mapping analog-surround-40]
e44045
 device-strings = surround40:%f
e44045
 channel-map = front-left,front-right,rear-left,rear-right
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 7
e44045
+priority = 12
e44045
 direction = output
e44045
 
e44045
 [Mapping analog-surround-41]
e44045
 device-strings = surround41:%f
e44045
 channel-map = front-left,front-right,rear-left,rear-right,lfe
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 8
e44045
+priority = 13
e44045
 direction = output
e44045
 
e44045
 [Mapping analog-surround-50]
e44045
 device-strings = surround50:%f
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 7
e44045
+priority = 12
e44045
 direction = output
e44045
 
e44045
 [Mapping analog-surround-51]
e44045
 device-strings = surround51:%f
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 8
e44045
+priority = 13
e44045
 direction = output
e44045
 
e44045
 [Mapping analog-surround-71]
e44045
@@ -164,7 +164,7 @@ device-strings = surround71:%f
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
 description = Analog Surround 7.1
e44045
 paths-output = analog-output analog-output-lineout analog-output-speaker
e44045
-priority = 7
e44045
+priority = 12
e44045
 direction = output
e44045
 
e44045
 [Mapping iec958-stereo]
e44045
@@ -200,7 +200,7 @@ description = Digital Stereo (HDMI)
e44045
 device-strings = hdmi:%f
e44045
 paths-output = hdmi-output-0
e44045
 channel-map = left,right
e44045
-priority = 4
e44045
+priority = 9
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround]
e44045
@@ -208,7 +208,7 @@ description = Digital Surround 5.1 (HDMI)
e44045
 device-strings = hdmi:%f
e44045
 paths-output = hdmi-output-0
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 3
e44045
+priority = 8
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71]
e44045
@@ -216,7 +216,7 @@ description = Digital Surround 7.1 (HDMI)
e44045
 device-strings = hdmi:%f
e44045
 paths-output = hdmi-output-0
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 3
e44045
+priority = 8
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround]
e44045
@@ -224,7 +224,7 @@ description = Digital Surround 5.1 (HDMI/DTS)
e44045
 device-strings = dcahdmi:%f
e44045
 paths-output = hdmi-output-0
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra1]
e44045
@@ -232,7 +232,7 @@ description = Digital Stereo (HDMI 2)
e44045
 device-strings = hdmi:%f,1
e44045
 paths-output = hdmi-output-1
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra1]
e44045
@@ -240,7 +240,7 @@ description = Digital Surround 5.1 (HDMI 2)
e44045
 device-strings = hdmi:%f,1
e44045
 paths-output = hdmi-output-1
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra1]
e44045
@@ -248,7 +248,7 @@ description = Digital Surround 7.1 (HDMI 2)
e44045
 device-strings = hdmi:%f,1
e44045
 paths-output = hdmi-output-1
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra1]
e44045
@@ -256,7 +256,7 @@ description = Digital Surround 5.1 (HDMI 2/DTS)
e44045
 device-strings = dcahdmi:%f,1
e44045
 paths-output = hdmi-output-1
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra2]
e44045
@@ -264,7 +264,7 @@ description = Digital Stereo (HDMI 3)
e44045
 device-strings = hdmi:%f,2
e44045
 paths-output = hdmi-output-2
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra2]
e44045
@@ -272,7 +272,7 @@ description = Digital Surround 5.1 (HDMI 3)
e44045
 device-strings = hdmi:%f,2
e44045
 paths-output = hdmi-output-2
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra2]
e44045
@@ -280,7 +280,7 @@ description = Digital Surround 7.1 (HDMI 3)
e44045
 device-strings = hdmi:%f,2
e44045
 paths-output = hdmi-output-2
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra2]
e44045
@@ -288,7 +288,7 @@ description = Digital Surround 5.1 (HDMI 3/DTS)
e44045
 device-strings = dcahdmi:%f,2
e44045
 paths-output = hdmi-output-2
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra3]
e44045
@@ -296,7 +296,7 @@ description = Digital Stereo (HDMI 4)
e44045
 device-strings = hdmi:%f,3
e44045
 paths-output = hdmi-output-3
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra3]
e44045
@@ -304,7 +304,7 @@ description = Digital Surround 5.1 (HDMI 4)
e44045
 device-strings = hdmi:%f,3
e44045
 paths-output = hdmi-output-3
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra3]
e44045
@@ -312,7 +312,7 @@ description = Digital Surround 7.1 (HDMI 4)
e44045
 device-strings = hdmi:%f,3
e44045
 paths-output = hdmi-output-3
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra3]
e44045
@@ -320,7 +320,7 @@ description = Digital Surround 5.1 (HDMI 4/DTS)
e44045
 device-strings = dcahdmi:%f,3
e44045
 paths-output = hdmi-output-3
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra4]
e44045
@@ -328,7 +328,7 @@ description = Digital Stereo (HDMI 5)
e44045
 device-strings = hdmi:%f,4
e44045
 paths-output = hdmi-output-4
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra4]
e44045
@@ -336,7 +336,7 @@ description = Digital Surround 5.1 (HDMI 5)
e44045
 device-strings = hdmi:%f,4
e44045
 paths-output = hdmi-output-4
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra4]
e44045
@@ -344,7 +344,7 @@ description = Digital Surround 7.1 (HDMI 5)
e44045
 device-strings = hdmi:%f,4
e44045
 paths-output = hdmi-output-4
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra4]
e44045
@@ -352,7 +352,7 @@ description = Digital Surround 5.1 (HDMI 5/DTS)
e44045
 device-strings = dcahdmi:%f,4
e44045
 paths-output = hdmi-output-4
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra5]
e44045
@@ -360,7 +360,7 @@ description = Digital Stereo (HDMI 6)
e44045
 device-strings = hdmi:%f,5
e44045
 paths-output = hdmi-output-5
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra5]
e44045
@@ -368,7 +368,7 @@ description = Digital Surround 5.1 (HDMI 6)
e44045
 device-strings = hdmi:%f,5
e44045
 paths-output = hdmi-output-5
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra5]
e44045
@@ -376,7 +376,7 @@ description = Digital Surround 7.1 (HDMI 6)
e44045
 device-strings = hdmi:%f,5
e44045
 paths-output = hdmi-output-5
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra5]
e44045
@@ -384,7 +384,7 @@ description = Digital Surround 5.1 (HDMI 6/DTS)
e44045
 device-strings = dcahdmi:%f,5
e44045
 paths-output = hdmi-output-5
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra6]
e44045
@@ -392,7 +392,7 @@ description = Digital Stereo (HDMI 7)
e44045
 device-strings = hdmi:%f,6
e44045
 paths-output = hdmi-output-6
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra6]
e44045
@@ -400,7 +400,7 @@ description = Digital Surround 5.1 (HDMI 7)
e44045
 device-strings = hdmi:%f,6
e44045
 paths-output = hdmi-output-6
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra6]
e44045
@@ -408,7 +408,7 @@ description = Digital Surround 7.1 (HDMI 7)
e44045
 device-strings = hdmi:%f,6
e44045
 paths-output = hdmi-output-6
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra6]
e44045
@@ -416,7 +416,7 @@ description = Digital Surround 5.1 (HDMI 7/DTS)
e44045
 device-strings = dcahdmi:%f,6
e44045
 paths-output = hdmi-output-6
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-stereo-extra7]
e44045
@@ -424,7 +424,7 @@ description = Digital Stereo (HDMI 8)
e44045
 device-strings = hdmi:%f,7
e44045
 paths-output = hdmi-output-7
e44045
 channel-map = left,right
e44045
-priority = 2
e44045
+priority = 7
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround-extra7]
e44045
@@ -432,7 +432,7 @@ description = Digital Surround 5.1 (HDMI 8)
e44045
 device-strings = hdmi:%f,7
e44045
 paths-output = hdmi-output-7
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-surround71-extra7]
e44045
@@ -440,7 +440,7 @@ description = Digital Surround 7.1 (HDMI 8)
e44045
 device-strings = hdmi:%f,7
e44045
 paths-output = hdmi-output-7
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping hdmi-dts-surround-extra7]
e44045
@@ -448,7 +448,7 @@ description = Digital Surround 5.1 (HDMI 8/DTS)
e44045
 device-strings = dcahdmi:%f,7
e44045
 paths-output = hdmi-output-7
e44045
 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
e44045
-priority = 1
e44045
+priority = 6
e44045
 direction = output
e44045
 
e44045
 [Mapping multichannel-output]
e44045
-- 
e44045
2.13.6
e44045