[pulseaudio-discuss] [PATCH] Name HDMI outputs uniquely
David Henningsson
david.henningsson at canonical.com
Thu Apr 10 08:05:05 PDT 2014
On 04/10/2014 04:36 PM, Alexander E. Patrakov wrote:
> On Haswell hardware,
...and a lot of other hardware out there,
> there are multiple HDMI outputs capable of
> digital sound output. As they were identically named, KDE's control
> center was unable to distinguish them, restored the wrong profile and
> thus routed sound to the wrong HDMI monitor.
This sounds like a bug in the KDE control panel, not in PulseAudio.
That said, maybe there are cases where this would be good to have
anyway. But if so could you make the naming more like the we've done for
ports? (The first one without suffix, the second one just has "2" as a
suffix, not "Port 2")
> ---
> src/modules/alsa/mixer/profile-sets/extra-hdmi.conf | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf b/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
> index 96652f8..ff40c64 100644
> --- a/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
> +++ b/src/modules/alsa/mixer/profile-sets/extra-hdmi.conf
> @@ -101,14 +101,14 @@ direction = output
>
> [Mapping hdmi-stereo]
> device-strings = hdmi:%f
> -description = Digital Stereo (HDMI)
> +description = Digital Stereo (HDMI), Port 1
> paths-output = hdmi-output-0
> channel-map = left,right
> priority = 4
> direction = output
>
> [Mapping hdmi-surround]
> -description = Digital Surround 5.1 (HDMI)
> +description = Digital Surround 5.1 (HDMI), Port 1
> device-strings = hdmi:%f
> paths-output = hdmi-output-0
> channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
> @@ -116,7 +116,7 @@ priority = 3
> direction = output
>
> [Mapping hdmi-stereo-extra1]
> -description = Digital Stereo (HDMI)
> +description = Digital Stereo (HDMI), Port 2
> device-strings = hdmi:%f,1
> paths-output = hdmi-output-1
> channel-map = left,right
> @@ -124,7 +124,7 @@ priority = 2
> direction = output
>
> [Mapping hdmi-surround-extra1]
> -description = Digital Surround 5.1 (HDMI)
> +description = Digital Surround 5.1 (HDMI), Port 2
> device-strings = hdmi:%f,1
> paths-output = hdmi-output-1
> channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
> @@ -132,7 +132,7 @@ priority = 1
> direction = output
>
> [Mapping hdmi-stereo-extra2]
> -description = Digital Stereo (HDMI)
> +description = Digital Stereo (HDMI), Port 3
> device-strings = hdmi:%f,2
> paths-output = hdmi-output-2
> channel-map = left,right
> @@ -140,7 +140,7 @@ priority = 2
> direction = output
>
> [Mapping hdmi-surround-extra2]
> -description = Digital Surround 5.1 (HDMI)
> +description = Digital Surround 5.1 (HDMI), Port 3
> device-strings = hdmi:%f,2
> paths-output = hdmi-output-2
> channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
> @@ -148,7 +148,7 @@ priority = 1
> direction = output
>
> [Mapping hdmi-stereo-extra3]
> -description = Digital Stereo (HDMI)
> +description = Digital Stereo (HDMI), Port 4
> device-strings = hdmi:%f,3
> paths-output = hdmi-output-3
> channel-map = left,right
> @@ -156,7 +156,7 @@ priority = 2
> direction = output
>
> [Mapping hdmi-surround-extra3]
> -description = Digital Surround 5.1 (HDMI)
> +description = Digital Surround 5.1 (HDMI), Port 4
> device-strings = hdmi:%f,3
> paths-output = hdmi-output-3
> channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
>
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
More information about the pulseaudio-discuss
mailing list