From 610704d225675d1d112cf1973bde9edb420ec37e Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sun, 7 Sep 2014 15:20:18 +0300 Subject: [PATCH] alsa-mixer: Mark "Line HP Swap" as required-any In the (theoretical) case that no other elements exists but "Line HP Swap", the presence of that element signals that there are headphone and line-out outputs, otherwise there would be nothing to swap. --- src/modules/alsa/mixer/paths/analog-output-headphones.conf | 1 + src/modules/alsa/mixer/paths/analog-output-lineout.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf index 89d794fbe..5222c2302 100644 --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf @@ -77,6 +77,7 @@ override-map.2 = all-left,all-right [Element Line HP Swap] switch = on +required-any = any ; This profile path is intended to control the first headphones, not ; the second headphones. But it should not hurt if we leave the second diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.conf index d5e24b118..40af69966 100644 --- a/src/modules/alsa/mixer/paths/analog-output-lineout.conf +++ b/src/modules/alsa/mixer/paths/analog-output-lineout.conf @@ -82,6 +82,7 @@ volume = off [Element Line HP Swap] switch = off +required-any = any ; This profile path is intended to control the default output, not the ; headphones. But it should not hurt if we leave the headphone jack